# Animica FHIR R4 Resource Validator

> Animica FHIR R4 Resource Validator is a paid API for AI agents from animica.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Validates one or a batch of up to 200 FHIR R4 resources and returns structured validation results

## Facts

- Endpoint: POST https://animica.dev/x402/health/fhir/validate
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/animica-fhir-r4-resource-validator-fb0ef969
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g5j-TgtTGiL9kH54qcm_P

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability animica-fhir-r4-resource-validator-fb0ef969 -d '<json body>'
```

Example prompt: Can you validate this FHIR R4 Patient resource JSON I have and tell me if there are any conformance errors before I send it to the EHR?

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call FHIR R4 validation without setting up a full HAPI FHIR server or managing an HL7 validator infrastructure. Ideal for agents, pipelines, or developers who need on-demand FHIR compliance checks at low cost ($0.004/call) with batch support up to 200 resources per request.

## Known failure modes

- Invalid JSON input returns a parse error
- Resource type not recognized as FHIR R4 returns a conformance error
- Batch exceeds 200 resources may be rejected
- Malformed resource object missing required FHIR fields returns validation failure
- Network or upstream service error returns 5xx
- Payment failure via x402 returns 402

## How this service works

Animica Python Cloud: deploy a Python function to animica.dev, get a public endpoint, and earn ANM every time someone runs it. Free AI (OpenAI-compatible, no key), free scheduled Workers, and an 80/20 developer split.

## Output

A JSON response indicating whether each submitted FHIR R4 resource passes validation, along with structured details of any conformance errors, missing required fields, or structural issues found per resource.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "resource": {
   "type": "object",
   "description": "one FHIR R4 resource"
  },
  "resources": {
   "type": "array",
   "description": "up to 200 resources"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/animica-fhir-r4-resource-validator-fb0ef969/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from animica.dev](https://www.zero.xyz/host/animica.dev/llms.txt)
