fhir-resource-state criteria.
How your agent connects
When a benchmark run is created, the response includes the FHIR sandbox’s base URL underendpoints.fhir (or equivalent). All FHIR traffic is proxied through /v1/benchmark-runs/{benchmark_run_id}/fhir/* and authenticated with the run-scoped bearer token. During playground authoring, the sandbox also exposes direct endpoints at /services/{service_id}/fhir/* for local testing.
Under the hood the sandbox is a dedicated FHIR store (one per playground) seeded with the linked dataset’s patients, conditions, medications, encounters, and related resources.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
ALL | /v1/benchmark-runs/{id}/fhir/* | Transparent proxy to the sandbox FHIR store (search, read, create, update, transaction bundles). Authenticated by the run-scoped bearer token. |
/services/{service_id}/fhir/* also exposes SMART on FHIR discovery and token issuance at /services/{service_id}/fhir/.well-known/smart-configuration and /services/{service_id}/fhir/token. See the SMART configuration and FHIR token reference pages.
Driving the rollout
Use the proxied FHIR endpoints with the run token. Search for a patient:Configuration
The FHIR simulator accepts minimal configuration at create time. The interesting shape of the simulator comes from the FHIR dataset linked to it, which defines the patients, encounters, and clinical history that get seeded into the store.POST /sandboxes/{id}/datasets/{dataset_id}.
Verification
Thefhir-resource-state check reads the FHIR store after the rollout and asserts that a search returns resources with expected field values. See the Criteria concept page for the full spec.
Next Steps
Criteria
The full list of typed assertions the verification engine supports.
Simulators overview
How simulators compose into environments and provision into sandboxes.
FHIR API reference
SMART configuration, token issuance, and FHIR request shapes.
Datasets
Seed realistic patient data into the FHIR store.