FHIR support
The FHIR R4 resources, searches and writes a SunCharts EHR installation serves.
Applies to the SunCharts EHR API. Each installation serves FHIR R4 (4.0.1) as JSON under /fhir. It is a bounded surface, described honestly by its own capability statement.
GET /fhir/metadatareturns a draft CapabilityStatement and needs no token.-
Content type is
application/fhir+json. Errors areOperationOutcome. - Needs
clinical.read, orbilling.readfor Coverage.
Resources
| Resource | Read and search | Create and update |
|---|---|---|
| Patient | Yes | Yes |
| Condition | Yes | Yes |
| AllergyIntolerance | Yes | Yes |
| MedicationStatement | Yes | Yes |
| Immunization | Yes | Yes |
| ServiceRequest | Yes | Local single-test drafts only |
| Encounter, Observation, Appointment | Yes | No |
| Practitioner, Location, Coverage | Yes | No |
| Specimen, DiagnosticReport, DocumentReference, MedicationRequest | Yes | No |
| Binary | Read by id only | No |
Search
| Resource | Parameters |
|---|---|
| Patient |
_id, name
(prefix), identifier
(MRN), birthdate
(exact)
|
| Practitioner | _id, name, active |
| Location | _id, name, status |
| Immunization |
_id, patient, status, date (exact)
|
| All other searchable resources | _id, patient |
-
Every search accepts
_count(1 to 100, default 50) and_after, a cursor. -
Results are a
searchsetBundle. Follow thenextlink to page; there is nototal. - An unsupported or repeated parameter is an error. It is not ignored.
Writes
-
POSTcreates and returns 201 with aLocationheader and anETag. -
PUTneedsIf-Matchwith the current version and a non-emptyX-Change-Reasonheader. A stale version returns 412; a missing one returns 428. - Fields the server does not support are rejected, not dropped.
-
Conditional requests are not supported. A plain
POSTis not safe to replay.
What is not claimed
No US Core profiles, SMART App Launch, Bulk Data, EHI export, terminology validation or certification. No _include, chaining, compartments or version history. There is no HL7 v2 interface.
The Connect API has its own FHIR-shaped read routes for a connected EHR; see EHR connections and the resource sections of the Connect reference.