FHIR Mapping
The strategy was originally implemented by Kwateng on 06.08.2017. commit 881e70acf638df9ef8572e4ec96e19e0c5057828
Fields from parent classes are mostly omitted in this table. DB field is not filled in this table.
OpenMRS class DrugOrder extends BaseOpenmrsMetadata
OpenMRS class | OpenMRS field | DB field | FHIR field | Details |
---|---|---|---|---|
BaseOpenmrsObject | uuid : String | id : id | ||
Order | dateActivated : Date, checkDate : Date | status : code | Formula value: OpenmrsUtil.compare(dateActivated, checkDate) | |
- | - | intent : code | Required in FHIR. | |
Order | urgency : Urgency | priority : code | Constant value "ORDER" | |
DrugOrder | drug : Drug | medication : CodeableConcept | Required in FHIR. Formula value : drug concepts codings are put into medication. | |
Order | patient : Patient | subject : Reference(Patient) | Required in FHIR. Only patient reference is put. | |
Order | encounter : Encounter | context : Reference(Encounter) | Encounter ref is put. | |
BaseOpenmrsData | dateCreated : Date | authoredOn : dateTime | ||
Order | orderer : Provider | requester : BackboneElement | Formula value: practitioner Reference. Reference to a practitioner is put. | |
Order | orderer : Provider | recorder : Reference(Practitioner) | Formula value: practitioner Reference. Reference to a practitioner is put. | |
DrugOrder | route : Concept, | dosageInstruction : Dosage | Multiple fields are mapped. See table FHIR Dosage class. | |
DrugOrder | durationUnits : Concept, | dispenseRequest : BackboneElement | Multiple fields are mapped. |
FHIR Dosage class
OpenMRS class | OpenMRS field | DB field | FHIR field | Details |
---|---|---|---|---|
Formula value: codings CodeableConcepts | route : CodeableConcept | |||
DrugOrder | dosingInstructions : String | text : string | ||
- | sequence : integer | Constant int value 1 | ||
timing : Timing | Multiple fields are mapped. See table FHIR Timing class. | |||
dose : SimpleQuantity | ||||
drug.maxiumumDailyDose : Double | maxDosePerAdministration : SimpleQuantity |
FHIR Timing class
OpenMRS class | OpenMRS field | DB field | FHIR field | Details |
---|---|---|---|---|
OrderFrequency | Formula value: list timing codes | code : CodeableConcept |
FHIR SimpleQuantity class
OpenMRS class | OpenMRS field | DB field | FHIR field | Details |
---|---|---|---|---|
DrugOrder | doseUnit.name.name : String | unit : string | Name of dose unit name is put | |
DrugOrder | dose : Double | value : decimal | ||
Drug | maximumDailyDose : Double | maxDosePerAdministration : SimpleQuantity |