# HAPI FHIR R4 Patient Search

> HAPI FHIR R4 Patient Search is a paid API for AI agents from clonecho.builda.company, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Search the public HAPI FHIR R4 test server for Patient resources matching a given family name

## Facts

- Endpoint: POST https://clonecho.builda.company/x402/s/hapi-fhir-patient-search
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hapi-fhir-r4-patient-search-47544dfa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_86hNBxOJGiqbnWn3JzKjE

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 hapi-fhir-r4-patient-search-47544dfa -d '<json body>'
```

Example prompt: Can you search the HAPI FHIR R4 test server for all Patient resources with the family name 'Smith' and show me what comes back?

## When to prefer this

Use this endpoint when you need to search FHIR R4 Patient resources by family name on the public HAPI FHIR test server, especially for healthcare interoperability testing, FHIR integration development, or exploring HL7 FHIR data structures without setting up your own FHIR server.

## Known failure modes

- No patients found matching the family name — returns empty FHIR bundle
- Invalid or missing query parameter — may return an error or empty result
- Public HAPI FHIR test server temporarily unavailable — connection timeout or server error
- Rate limiting or payment failure — HTTP 402 if USDC payment not processed

## How this service works

Search the public HAPI FHIR R4 test server for Patient resources by family name {q}. Query: ?q= Returns JSON.

## Output

A JSON response containing FHIR R4 Patient resource entries matching the queried family name, drawn from the public HAPI FHIR test server, including patient demographics and identifiers as structured FHIR bundles.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hapi-fhir-r4-patient-search-47544dfa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from clonecho.builda.company](https://www.zero.xyz/host/clonecho.builda.company/llms.txt)
