Patient Resource

Patient is a FHIR resource that is used to represent a person "receiving care or other health-related services". FHIR Patients are mapped to OpenMRS Patient objects.

Supported Elements

The following properties are supported by the OpenMRS FHIR Module:

  • Patient.id
  • Patient.identifier
  • Patient.active
  • Patient.name
  • Patient.telecom (phone)
  • Patient.gender
  • Patient.birthDate
  • Patient.deceased[x]
  • Patient.address

OpenMRS ↔ FHIR Mapping

OpenMRS Data ModelFHIR Resource ElementNotes
Patient.uuid
Patient.id

Patient.activeIdentifiers
Patient.identifier

Patient.name
Patient.name

Person.personAttribute 
Person.telecom (phone)
The attribute used is determined by the fhir2.personContactPointAttributeTypeUuid global property
Patient.gender
Patient.gender

Patient.birthdate
Patient.birthDate

Patient.deathDate or Patient.dead
Patient.deceased[x]

Patient.address
Patient.address

not Patient.voided
Patient.active

Available RESTful Endpoints

Note: placeholder "{release}" below must be replaced by the FHIR Release - currently "R3" and "R4" are implemented. See more on the  FHIR Release support  page.

GET

URLDescription
/ws/fhir2/{release}/Patient
Gets all patients
/ws/fhir2/{release}/Patient/{uuid}
Gets a specific patient
/ws/fhir2/{release}/Patient?{query}
Searches for patients matching the provided criteria

Supported Search Parameters

ParameterTypeDescription
name
stringSearches the full name of the patient
given
stringSearches the given name(s) of the patient
family
stringSearches the family name of the patient
identifier
tokenSearches based on the patients identifiers
gender
tokenSearches based on the gender of the patient. Note that this value must be from the AdministrativeGender valueset
birthdate
dateSearches based on the patient's birthdate
death-date
dateSearches based on the death date of the patient (if any)
deceased
tokenSearches based on whether a patient is marked as deceased. Acceptable values are true or false
address-city
stringSearches based on the patient's recorded city/village of address
address-state
stringSearches based on the patient's recorded state/province of address
address-postalcode
stringSearches based on the patient's recorded postal code of address
address-country
stringSearches based on the patient's recorded country of address
_id

Searches based on the exact UUID of the patient record
_lastUpdated
dateSearches based on the the dateCreated or dateUpdated field for the patient record

Supported _revincludes

IncludeDescription
Observation:patient
Includes observations that are about this patient
AllergyIntolerance:patient
Includes allergies of this patient
DiagnosticReport:patient
Includes any diagnostic reports about this patient
Encounter:patient
Includes any encounters involving this patient
MedicationRequest:patient
Includes any drug orders involving this patient
ServiceRequest:patient
Includes any test orders involving this patient

POST

URLDescription
/ws/fhir2/{release}/Patient
Creates a new patient

PUT

URLDescription
/ws/fhir2/{release}/Patient/{uuid}
Updates an existing patient

DELETE

URLDescription
/ws/fhir2/{release}/Patient/{uuid}
Deletes (voids) an existing patient