This is the API documentation for the OpenMRS FHIR Module ,Encounter Resource.
Encounter Resource represents an interaction Encounter is an FHIR resource that is used to represent an Interaction between a patient and healthcare provider(s) for for the purpose of providing healthcare service(s) services or assessing the health status of a patient. For more information please refer http://hl7-fhir.github.io/encounter.html
Shown below is an example of how an OpenMRS Encounter objects would map to FHIR Encounter resource, as proposed by Grahame Grieve.
The left side of the relationship indicates the OpenMRS attribute, while the right indicated the FHIR resource mapping.
Code Block | ||
---|---|---|
| ||
Integer uuid :: n/a - goes in the URL e.g. [base]/Encounter/[encounterId]
Date encounterDatetime :: Encounter.period
Patient patient :: Encounter.subject
Integer patientId :: not mapped
Set<EncounterProvider> encounterProviders :: Encounter.participant
Location location :: Encounter.location
EncounterType encounterType : not mapped
Set<Order> orders :: not mapped
Visit visit :: Encounter.partOf
|
...
title | FHIR Encounter Resource |
---|
...
Encounter FHIR resources are mapped to both OpenMrs Encounter and Visit Objects.
Supported Elements
The following properties are supported by the OpenMrs FHIR Module:
- Encounter.id
- Encounter.status
- Encounter.subject
- Encounter.participant
- Encounter.location
OpenMRS ↔ FHIR Mapping
OpenMrs Data Model | FHIR Resource Element |
---|---|
Encounter.uuid | Encounter.id |
Encounter.status | Always return Encounter.EncounterStatus.UNKNOWN |
Encounter.patient | Encounter.subject |
Encounter.participant | Encounter.encounterProvider |
Encounter.location | Encounter.location |
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
URL | Description |
---|---|
/ws/fhir2/{release}/Encounter/{uuid} | Gets a specific encounter |
/ws/fhir2/{release}/Encounter?patient.identifier={string} | Gets encounters by patient identifier |