Skip to content

Guides

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/metadata returns a draft CapabilityStatement and needs no token.
  • Content type is application/fhir+json. Errors are OperationOutcome.
  • Needs clinical.read, or billing.read for 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
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 searchset Bundle. Follow the next link to page; there is no total.
  • An unsupported or repeated parameter is an error. It is not ignored.

Writes

  • POST creates and returns 201 with a Location header and an ETag.
  • PUT needs If-Match with the current version and a non-empty X-Change-Reason header. 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 POST is 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.