diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6527be0ecf..53cb4d8d18 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,9 +1,6 @@ name: Publish -on: - push: - branches: - - main +on: push jobs: publish: @@ -28,6 +25,9 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: pnpm publish -r --report-summary --publish-branch main --access=public + - run: + pnpm publish -r --report-summary --publish-branch + patch-salesforce-6-0-5 --access=public --tag legacy --no-git-checks - name: Setup GH user run: git config user.name ${{ secrets.GH_USER }} diff --git a/packages/fhir-eswatini/schema/Appointment_SzAppointment.json b/packages/fhir-eswatini/schema/Appointment_SzAppointment.json new file mode 100644 index 0000000000..626e82d2b3 --- /dev/null +++ b/packages/fhir-eswatini/schema/Appointment_SzAppointment.json @@ -0,0 +1,288 @@ +{ + "id": "SzAppointment", + "type": "Appointment", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAppointment", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "External Ids for this item", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "proposed | pending | booked | arrived | fulfilled | cancelled | noshow | entered-in-error | checked-in | waitlist", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/appointmentstatus|4.0.1" + }, + "cancelationReason": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "The coded reason for the appointment being cancelled", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/appointment-cancellation-reason|4.0.1" + }, + "serviceCategory": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "A broad categorization of the service that is to be performed during this appointment", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/service-category|4.0.1" + }, + "serviceType": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "The specific service that is to be performed during this appointment", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/service-type|4.0.1" + }, + "specialty": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "The specialty of a practitioner that would be required to perform the service requested in this appointment", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes|4.0.1" + }, + "appointmentType": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "The style of appointment or patient that has been booked in the slot (not service type)", + "isComposite": false, + "valueSet": "http://terminology.hl7.org/ValueSet/v2-0276" + }, + "reasonCode": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Coded reason this appointment is scheduled", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-reason|4.0.1" + }, + "reasonReference": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Reason the appointment is to take place (resource)", + "isComposite": false + }, + "priority": { + "type": [ + "unsignedInt" + ], + "isArray": false, + "desc": "Used to make informed decisions if needing to re-prioritize", + "isComposite": false + }, + "description": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Shown on a subject line in a meeting request, or appointment list", + "isComposite": false + }, + "supportingInformation": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Additional information to support the appointment", + "isComposite": false + }, + "start": { + "type": [ + "instant" + ], + "isArray": false, + "desc": "When appointment is to take place", + "isComposite": false + }, + "end": { + "type": [ + "instant" + ], + "isArray": false, + "desc": "When appointment is to conclude", + "isComposite": false + }, + "minutesDuration": { + "type": [ + "number" + ], + "isArray": false, + "desc": "Can be less than start/end (e.g. estimate)", + "isComposite": false + }, + "slot": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "The slots that this appointment is filling", + "isComposite": false + }, + "created": { + "type": [ + "dateTime" + ], + "isArray": false, + "desc": "The date that this appointment was initially created", + "isComposite": false + }, + "comment": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Additional comments", + "isComposite": false + }, + "patientInstruction": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Detailed information and instructions for the patient", + "isComposite": false + }, + "basedOn": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "The service request this appointment is allocated to assess", + "isComposite": false + }, + "participant": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Participants involved in appointment", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "type": { + "type": "CodeableConcept", + "desc": "Role of participant in the appointment", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-participant-type|4.0.1" + }, + "actor": { + "type": "Reference", + "desc": "Person, Location/HealthcareService or Device" + }, + "required": { + "type": "string", + "desc": "required | optional | information-only", + "valueSet": "http://hl7.org/fhir/ValueSet/participantrequired|4.0.1" + }, + "status": { + "type": "string", + "desc": "accepted | declined | tentative | needs-action", + "valueSet": "http://hl7.org/fhir/ValueSet/participationstatus|4.0.1" + }, + "period": { + "type": "Period", + "desc": "Participation period of the actor" + } + } + }, + "requestedPeriod": { + "type": [ + "Period" + ], + "isArray": true, + "desc": "Potential date/time interval(s) requested to allocate the appointment within", + "isComposite": false + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Condition_SzCondition.json b/packages/fhir-eswatini/schema/Condition_SzCondition.json new file mode 100644 index 0000000000..d0ca8699fb --- /dev/null +++ b/packages/fhir-eswatini/schema/Condition_SzCondition.json @@ -0,0 +1,261 @@ +{ + "id": "SzCondition", + "type": "Condition", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzCondition", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "External Ids for this condition", + "isComposite": false + }, + "clinicalStatus": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "active | recurrence | relapse | inactive | remission | resolved", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1" + }, + "verificationStatus": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "unconfirmed | provisional | differential | confirmed | refuted | entered-in-error", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1" + }, + "category": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "problem-list-item | encounter-diagnosis", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/condition-category|4.0.1" + }, + "severity": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Subjective severity of condition", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/condition-severity|4.0.1" + }, + "code": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Condition Identification", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/condition-code|4.0.1" + }, + "bodySite": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Anatomical location, if relevant", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "subject": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Who has the condition?", + "isComposite": false + }, + "encounter": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Encounter created as part of", + "isComposite": false + }, + "onset": { + "type": [ + "dateTime" + ], + "isArray": false, + "desc": "Diagnosis date", + "isComposite": true + }, + "abatement": { + "type": [ + "dateTime", + "Age", + "Period", + "Range", + "string" + ], + "isArray": false, + "desc": "When in resolution/remission", + "isComposite": true + }, + "recordedDate": { + "type": [ + "dateTime" + ], + "isArray": false, + "desc": "Date record was first recorded", + "isComposite": false + }, + "recorder": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Who recorded the condition", + "isComposite": false + }, + "asserter": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Person who asserts this condition", + "isComposite": false + }, + "stage": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Stage/grade, usually assessed formally", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "summary": { + "type": "CodeableConcept", + "desc": "Simple summary (disease specific)", + "valueSet": "http://hl7.org/fhir/ValueSet/condition-stage|4.0.1" + }, + "assessment": { + "type": "Reference", + "desc": "Formal record of assessment" + }, + "type": { + "type": "CodeableConcept", + "desc": "Kind of staging", + "valueSet": "http://hl7.org/fhir/ValueSet/condition-stage-type|4.0.1" + } + } + }, + "evidence": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Supporting evidence", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "code": { + "type": "CodeableConcept", + "desc": "Manifestation/symptom", + "valueSet": "http://hl7.org/fhir/ValueSet/manifestation-or-symptom|4.0.1" + }, + "detail": { + "type": "Reference", + "desc": "Supporting information found elsewhere" + } + } + }, + "note": { + "type": [ + "Annotation" + ], + "isArray": true, + "desc": "Additional information about the Condition", + "isComposite": false + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Encounter_SzEncounter.json b/packages/fhir-eswatini/schema/Encounter_SzEncounter.json new file mode 100644 index 0000000000..5a13ce85f6 --- /dev/null +++ b/packages/fhir-eswatini/schema/Encounter_SzEncounter.json @@ -0,0 +1,440 @@ +{ + "id": "SzEncounter", + "type": "Encounter", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "Identifier(s) by which this encounter is known", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "planned | arrived | triaged | in-progress | onleave | finished | cancelled +", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1" + }, + "statusHistory": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "List of past encounter statuses", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "status": { + "type": "string", + "desc": "planned | arrived | triaged | in-progress | onleave | finished | cancelled +", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1" + }, + "period": { + "type": "Period", + "desc": "The time that the episode was in the specified status" + } + } + }, + "class": { + "type": [ + "Coding" + ], + "isArray": false, + "desc": "Department in which the encounter took place", + "isComposite": false, + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEncounterClassificationVS|0.1.0" + }, + "classHistory": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "List of past encounter classes", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "class": { + "type": "Coding", + "desc": "inpatient | outpatient | ambulatory | emergency +", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode|3.0.0" + }, + "period": { + "type": "Period", + "desc": "The time that the episode was in the specified class" + } + } + }, + "type": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Specific type of encounter", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-type|4.0.1" + }, + "serviceType": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Specific type of service", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/service-type|4.0.1" + }, + "priority": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Indicates the urgency of the encounter", + "isComposite": false, + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActPriority|3.0.0" + }, + "subject": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Patient associated with the encounter", + "isComposite": false + }, + "episodeOfCare": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Episode(s) of care that this encounter should be recorded against", + "isComposite": false + }, + "basedOn": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "The ServiceRequest that initiated this encounter", + "isComposite": false + }, + "participant": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "List of participants involved in the encounter", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "type": { + "type": "CodeableConcept", + "desc": "Role of participant in encounter", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-participant-type|4.0.1" + }, + "period": { + "type": "Period", + "desc": "Period of time during the encounter that the participant participated" + }, + "individual": { + "type": "Reference", + "desc": "Clinicians who participated in the encounter" + } + } + }, + "appointment": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "The appointment that scheduled this encounter", + "isComposite": false + }, + "period": { + "type": [ + "Period" + ], + "isArray": false, + "desc": "The start and end time of the encounter", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "start": { + "type": "dateTime", + "desc": "Start date and time of the encounter" + }, + "end": { + "type": "dateTime", + "desc": "End time with inclusive boundary, if not ongoing" + } + } + }, + "length": { + "type": [ + "Duration" + ], + "isArray": false, + "desc": "Quantity of time the encounter lasted (less time absent)", + "isComposite": false + }, + "reasonCode": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Coded reason the encounter takes place", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-reason|4.0.1" + }, + "reasonReference": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Reason the encounter takes place (reference)", + "isComposite": false + }, + "diagnosis": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "The list of diagnosis relevant to this encounter", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "condition": { + "type": "Reference", + "desc": "The diagnosis or procedure relevant to the encounter" + }, + "use": { + "type": "CodeableConcept", + "desc": "Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …)", + "valueSet": "http://hl7.org/fhir/ValueSet/diagnosis-role|4.0.1" + }, + "rank": { + "type": "number", + "desc": "Ranking of the diagnosis (for each role type)" + } + } + }, + "account": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "The set of accounts that may be used for billing for this Encounter", + "isComposite": false + }, + "hospitalization": { + "type": [ + "BackboneElement" + ], + "isArray": false, + "desc": "Details about the admission to a healthcare service", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "preAdmissionIdentifier": { + "type": "Identifier", + "desc": "Pre-admission identifier" + }, + "origin": { + "type": "Reference", + "desc": "The location/organization from which the patient came before admission" + }, + "admitSource": { + "type": "CodeableConcept", + "desc": "From where patient was admitted (physician referral, transfer)", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-admit-source|4.0.1" + }, + "reAdmission": { + "type": "CodeableConcept", + "desc": "The type of hospital re-admission that has occurred (if any). If the value is absent, then this is not identified as a readmission", + "valueSet": "http://terminology.hl7.org/ValueSet/v2-0092|3.0.0" + }, + "dietPreference": { + "type": "CodeableConcept", + "desc": "Diet preferences reported by the patient", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-diet|4.0.1" + }, + "specialCourtesy": { + "type": "CodeableConcept", + "desc": "Special courtesies (VIP, board member)", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-special-courtesy|4.0.1" + }, + "specialArrangement": { + "type": "CodeableConcept", + "desc": "Wheelchair, translator, stretcher, etc.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-special-arrangements|4.0.1" + }, + "destination": { + "type": "Reference", + "desc": "Location/organization to which the patient is discharged" + }, + "dischargeDisposition": { + "type": "CodeableConcept", + "desc": "Category or kind of location after discharge", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition|4.0.1" + } + } + }, + "location": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Encounter location", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "location": { + "type": "Reference", + "desc": "Health facility" + }, + "status": { + "type": "string", + "desc": "planned | active | reserved | completed", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-location-status|4.0.1" + }, + "physicalType": { + "type": "CodeableConcept", + "desc": "The physical type of the location (usually the level in the location hierachy - bed room ward etc.)", + "valueSet": "http://hl7.org/fhir/ValueSet/location-physical-type|4.0.1" + }, + "period": { + "type": "Period", + "desc": "Time period during which the patient was present at the location" + } + } + }, + "serviceProvider": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "The organization (facility) responsible for this encounter", + "isComposite": false + }, + "partOf": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Another Encounter this encounter is part of", + "isComposite": false + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/EpisodeOfCare_SzEpisodeOfCare.json b/packages/fhir-eswatini/schema/EpisodeOfCare_SzEpisodeOfCare.json new file mode 100644 index 0000000000..09f7bb4df1 --- /dev/null +++ b/packages/fhir-eswatini/schema/EpisodeOfCare_SzEpisodeOfCare.json @@ -0,0 +1,212 @@ +{ + "id": "SzEpisodeOfCare", + "type": "EpisodeOfCare", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEpisodeOfCare", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "Business Identifier(s) relevant for this EpisodeOfCare", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "planned | waitlist | active | onhold | finished | cancelled | entered-in-error", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1" + }, + "statusHistory": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Past list of status codes (the current status may be included to cover the start date of the status)", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "status": { + "type": "string", + "desc": "planned | waitlist | active | onhold | finished | cancelled | entered-in-error", + "valueSet": "http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1" + }, + "period": { + "type": "Period", + "desc": "Duration the EpisodeOfCare was in the specified status" + } + } + }, + "type": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Episode of care classification", + "isComposite": false, + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEpisodeOfCareTypeVS" + }, + "diagnosis": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "The list of diagnosis relevant to this episode of care", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "condition": { + "type": "Reference", + "desc": "Conditions/problems/diagnoses this episode of care is for" + }, + "role": { + "type": "CodeableConcept", + "desc": "Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …)", + "valueSet": "http://hl7.org/fhir/ValueSet/diagnosis-role|4.0.1" + }, + "rank": { + "type": "number", + "desc": "Ranking of the diagnosis (for each role type)" + } + } + }, + "patient": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "The patient who is the focus of this episode of care", + "isComposite": false + }, + "managingOrganization": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Organization that assumes care", + "isComposite": false + }, + "period": { + "type": [ + "Period" + ], + "isArray": false, + "desc": "Start and end datest of the Episode of care", + "isComposite": false + }, + "referralRequest": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Originating Referral Request(s)", + "isComposite": false + }, + "careManager": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Care manager/care coordinator for the patient", + "isComposite": false + }, + "team": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Other practitioners facilitating this episode of care", + "isComposite": false + }, + "account": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "The set of accounts that may be used for billing for this EpisodeOfCare", + "isComposite": false + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Extension_SzAuthorizerExtension.json b/packages/fhir-eswatini/schema/Extension_SzAuthorizerExtension.json new file mode 100644 index 0000000000..081c3d7c77 --- /dev/null +++ b/packages/fhir-eswatini/schema/Extension_SzAuthorizerExtension.json @@ -0,0 +1,41 @@ +[ + { + "id": "SzAuthorizerExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzAuthorizerExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + } +] \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Extension_SzChiefdomExtension.json b/packages/fhir-eswatini/schema/Extension_SzChiefdomExtension.json new file mode 100644 index 0000000000..d6a57b31ca --- /dev/null +++ b/packages/fhir-eswatini/schema/Extension_SzChiefdomExtension.json @@ -0,0 +1,81 @@ +[ + { + "id": "SzAuthorizerExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzAuthorizerExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + }, + { + "id": "SzChiefdomExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzChiefdomExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true, + "valueSet": "http://172.209.216.154:3447/fhir/ValueSet/SzChiefdomVS" + } + } + } +] \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Extension_SzLocationCodeExtension.json b/packages/fhir-eswatini/schema/Extension_SzLocationCodeExtension.json new file mode 100644 index 0000000000..fb55f7173d --- /dev/null +++ b/packages/fhir-eswatini/schema/Extension_SzLocationCodeExtension.json @@ -0,0 +1,160 @@ +[ + { + "id": "SzAuthorizerExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzAuthorizerExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + }, + { + "id": "SzChiefdomExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzChiefdomExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true, + "valueSet": "http://172.209.216.154:3447/fhir/ValueSet/SzChiefdomVS" + } + } + }, + { + "id": "SzInkhundlaExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzInkhundlaExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true, + "valueSet": "http://172.209.216.154:3447/fhir/ValueSet/SzTinkhundlaVS" + } + } + }, + { + "id": "SzLocationCodeExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzLocationCodeExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + } +] \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Extension_SzReferralRecipientExtension.json b/packages/fhir-eswatini/schema/Extension_SzReferralRecipientExtension.json new file mode 100644 index 0000000000..13ce128492 --- /dev/null +++ b/packages/fhir-eswatini/schema/Extension_SzReferralRecipientExtension.json @@ -0,0 +1,199 @@ +[ + { + "id": "SzAuthorizerExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzAuthorizerExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + }, + { + "id": "SzChiefdomExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzChiefdomExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true, + "valueSet": "http://172.209.216.154:3447/fhir/ValueSet/SzChiefdomVS" + } + } + }, + { + "id": "SzInkhundlaExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzInkhundlaExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true, + "valueSet": "http://172.209.216.154:3447/fhir/ValueSet/SzTinkhundlaVS" + } + } + }, + { + "id": "SzLocationCodeExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzLocationCodeExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + }, + { + "id": "SzReferralRecipientExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzReferralRecipientExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + } +] \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Extension_SzRegistrationDate.json b/packages/fhir-eswatini/schema/Extension_SzRegistrationDate.json new file mode 100644 index 0000000000..967e5962ec --- /dev/null +++ b/packages/fhir-eswatini/schema/Extension_SzRegistrationDate.json @@ -0,0 +1,238 @@ +[ + { + "id": "SzAuthorizerExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzAuthorizerExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + }, + { + "id": "SzChiefdomExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzChiefdomExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true, + "valueSet": "http://172.209.216.154:3447/fhir/ValueSet/SzChiefdomVS" + } + } + }, + { + "id": "SzInkhundlaExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzInkhundlaExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true, + "valueSet": "http://172.209.216.154:3447/fhir/ValueSet/SzTinkhundlaVS" + } + } + }, + { + "id": "SzLocationCodeExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzLocationCodeExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + }, + { + "id": "SzReferralRecipientExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzReferralRecipientExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + }, + { + "id": "SzRegistrationDate", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzRegistrationDate", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "dateTime" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + } +] \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Extension_SzTestingLabExtension.json b/packages/fhir-eswatini/schema/Extension_SzTestingLabExtension.json new file mode 100644 index 0000000000..895cf1af6e --- /dev/null +++ b/packages/fhir-eswatini/schema/Extension_SzTestingLabExtension.json @@ -0,0 +1,277 @@ +[ + { + "id": "SzAuthorizerExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzAuthorizerExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + }, + { + "id": "SzChiefdomExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzChiefdomExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true, + "valueSet": "http://172.209.216.154:3447/fhir/ValueSet/SzChiefdomVS" + } + } + }, + { + "id": "SzInkhundlaExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzInkhundlaExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true, + "valueSet": "http://172.209.216.154:3447/fhir/ValueSet/SzTinkhundlaVS" + } + } + }, + { + "id": "SzLocationCodeExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzLocationCodeExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + }, + { + "id": "SzReferralRecipientExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzReferralRecipientExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + }, + { + "id": "SzRegistrationDate", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzRegistrationDate", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "dateTime" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + }, + { + "id": "SzTestingLabExtension", + "type": "Extension", + "url": "http://172.209.216.154:3447/fhir/StructureDefinition/SzTestingLabExtension", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Unique id for inter-element referencing", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "url": { + "type": [ + "string" + ], + "isArray": false, + "desc": "identifies the meaning of the extension", + "isComposite": false + }, + "value": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Value of extension", + "isComposite": true + } + } + } +] \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Location_SzLocation.json b/packages/fhir-eswatini/schema/Location_SzLocation.json new file mode 100644 index 0000000000..57945fb409 --- /dev/null +++ b/packages/fhir-eswatini/schema/Location_SzLocation.json @@ -0,0 +1,262 @@ +{ + "id": "SzLocation", + "type": "Location", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "Unique code or number identifying the location to its users", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "active | suspended | inactive", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/location-status|4.0.1" + }, + "operationalStatus": { + "type": [ + "Coding" + ], + "isArray": false, + "desc": "The operational status of the location (typically only for a bed/room)", + "isComposite": false, + "valueSet": "http://terminology.hl7.org/ValueSet/v2-0116|3.0.0" + }, + "name": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Location Name", + "isComposite": false + }, + "alias": { + "type": [ + "string" + ], + "isArray": true, + "desc": "A list of alternate names that the location is known as, or was known as, in the past", + "isComposite": false + }, + "description": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Additional details about the location that could be displayed as further information to identify the location beyond its name", + "isComposite": false + }, + "mode": { + "type": [ + "string" + ], + "isArray": false, + "desc": "instance | kind", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/location-mode|4.0.1" + }, + "type": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Location Type", + "isComposite": false, + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType|3.0.0" + }, + "telecom": { + "type": [ + "ContactPoint" + ], + "isArray": true, + "desc": "Contact details of the location", + "isComposite": false + }, + "address": { + "type": [ + "Address" + ], + "isArray": false, + "desc": "Physical location", + "isComposite": false + }, + "physicalType": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Physical form of the location", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/location-physical-type|4.0.1" + }, + "position": { + "type": [ + "BackboneElement" + ], + "isArray": false, + "desc": "The absolute geographic location", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "longitude": { + "type": "decimal", + "desc": "Longitude with WGS84 datum" + }, + "latitude": { + "type": "decimal", + "desc": "Latitude with WGS84 datum" + }, + "altitude": { + "type": "decimal", + "desc": "Altitude with WGS84 datum" + } + } + }, + "managingOrganization": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Organization responsible for provisioning and upkeep", + "isComposite": false + }, + "partOf": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Another Location this one is physically a part of", + "isComposite": false + }, + "hoursOfOperation": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "What days/times during a week is this location usually open", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "daysOfWeek": { + "type": "string", + "desc": "mon | tue | wed | thu | fri | sat | sun", + "valueSet": "http://hl7.org/fhir/ValueSet/days-of-week|4.0.1" + }, + "allDay": { + "type": "boolean", + "desc": "The Location is open all day" + }, + "openingTime": { + "type": "time", + "desc": "Time that the Location opens" + }, + "closingTime": { + "type": "time", + "desc": "Time that the Location closes" + } + } + }, + "availabilityExceptions": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Description of availability exceptions", + "isComposite": false + }, + "endpoint": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Technical endpoints providing access to services operated for the location", + "isComposite": false + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/MedicationDispense_SzMedicationDispense.json b/packages/fhir-eswatini/schema/MedicationDispense_SzMedicationDispense.json new file mode 100644 index 0000000000..e68da4ff53 --- /dev/null +++ b/packages/fhir-eswatini/schema/MedicationDispense_SzMedicationDispense.json @@ -0,0 +1,317 @@ +{ + "id": "SzMedicationDispense", + "type": "MedicationDispense", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzMedicationDispense", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "External identifier", + "isComposite": false + }, + "partOf": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Event that dispense is part of", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-status|4.0.1" + }, + "statusReason": { + "type": [ + "CodeableConcept", + "Reference" + ], + "isArray": false, + "desc": "Why a dispense was not performed", + "isComposite": true, + "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-status-reason|4.0.1" + }, + "category": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Type of medication dispense", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-category|4.0.1" + }, + "medication": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Supplied Medication", + "isComposite": true, + "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes|4.0.1" + }, + "subject": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Who the dispense is for", + "isComposite": false + }, + "context": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Encounter / Episode associated with event", + "isComposite": false + }, + "supportingInformation": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Information that supports the dispensing of the medication", + "isComposite": false + }, + "performer": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Dispensing Practitioner", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "function": { + "type": "CodeableConcept", + "desc": "Who performed the dispense and what they did", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-performer-function|4.0.1" + }, + "actor": { + "type": "Reference", + "desc": "Individual who was performing" + } + } + }, + "location": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Where the dispense occurred", + "isComposite": false + }, + "authorizingPrescription": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Medication order that authorizes the dispense", + "isComposite": false + }, + "type": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Trial fill, partial fill, emergency fill, etc.", + "isComposite": false, + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType" + }, + "quantity": { + "type": [ + "Quantity" + ], + "isArray": false, + "desc": "Amount dispensed", + "isComposite": false + }, + "daysSupply": { + "type": [ + "Quantity" + ], + "isArray": false, + "desc": "Amount of medication expressed as a timing amount", + "isComposite": false + }, + "whenPrepared": { + "type": [ + "dateTime" + ], + "isArray": false, + "desc": "When product was packaged and reviewed", + "isComposite": false + }, + "whenHandedOver": { + "type": [ + "dateTime" + ], + "isArray": false, + "desc": "When product was given out", + "isComposite": false + }, + "destination": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Where the medication was sent", + "isComposite": false + }, + "receiver": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Who collected the medication", + "isComposite": false + }, + "note": { + "type": [ + "Annotation" + ], + "isArray": true, + "desc": "Information about the dispense", + "isComposite": false + }, + "dosageInstruction": { + "type": [ + "Dosage" + ], + "isArray": true, + "desc": "How the medication is to be used by the patient or administered by the caregiver", + "isComposite": false + }, + "substitution": { + "type": [ + "BackboneElement" + ], + "isArray": false, + "desc": "Whether a substitution was performed on the dispense", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "wasSubstituted": { + "type": "boolean", + "desc": "Whether a substitution was or was not performed on the dispense" + }, + "type": { + "type": "CodeableConcept", + "desc": "Code signifying whether a different drug was dispensed from what was prescribed", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode" + }, + "reason": { + "type": "CodeableConcept", + "desc": "Why was substitution made", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason" + }, + "responsibleParty": { + "type": "Reference", + "desc": "Who is responsible for the substitution" + } + } + }, + "detectedIssue": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Clinical issue with action", + "isComposite": false + }, + "eventHistory": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "A list of relevant lifecycle events", + "isComposite": false + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/MedicationRequest_SzMedicationRequest.json b/packages/fhir-eswatini/schema/MedicationRequest_SzMedicationRequest.json new file mode 100644 index 0000000000..db0f112bfd --- /dev/null +++ b/packages/fhir-eswatini/schema/MedicationRequest_SzMedicationRequest.json @@ -0,0 +1,463 @@ +{ + "id": "SzMedicationRequest", + "type": "MedicationRequest", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzMedicationRequest", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "External ids for this request", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-status|4.0.1" + }, + "statusReason": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Reason for current status", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-status-reason|4.0.1" + }, + "intent": { + "type": [ + "string" + ], + "isArray": false, + "desc": "proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-intent|4.0.1" + }, + "category": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Type of medication usage", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-category|4.0.1" + }, + "priority": { + "type": [ + "string" + ], + "isArray": false, + "desc": "routine | urgent | asap | stat", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1" + }, + "doNotPerform": { + "type": [ + "boolean" + ], + "isArray": false, + "desc": "True if request is prohibiting action", + "isComposite": false + }, + "reported": { + "type": [ + "boolean", + "Reference" + ], + "isArray": false, + "desc": "Reported rather than primary record", + "isComposite": true + }, + "medication": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Medication to be taken", + "isComposite": true, + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzProductCodeVS" + }, + "subject": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Who or group medication request is for", + "isComposite": false + }, + "encounter": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Encounter created as part of encounter/admission/stay", + "isComposite": false + }, + "supportingInformation": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Information to support ordering of the medication", + "isComposite": false + }, + "authoredOn": { + "type": [ + "dateTime" + ], + "isArray": false, + "desc": "Medication Request Date", + "isComposite": false + }, + "requester": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Who/What requested the Request", + "isComposite": false + }, + "performer": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Intended performer of administration", + "isComposite": false + }, + "performerType": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Desired kind of performer of the medication administration", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/performer-role|4.0.1" + }, + "recorder": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Person who entered the request", + "isComposite": false + }, + "reasonCode": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Reason or indication for ordering or not ordering the medication", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/condition-code|4.0.1" + }, + "reasonReference": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Condition or observation that supports why the prescription is being written", + "isComposite": false + }, + "instantiatesCanonical": { + "type": [ + "canonical" + ], + "isArray": true, + "desc": "Instantiates FHIR protocol or definition", + "isComposite": false + }, + "instantiatesUri": { + "type": [ + "string" + ], + "isArray": true, + "desc": "Instantiates external protocol or definition", + "isComposite": false + }, + "basedOn": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "What request fulfills", + "isComposite": false + }, + "groupIdentifier": { + "type": [ + "Identifier" + ], + "isArray": false, + "desc": "Composite request this is part of", + "isComposite": false + }, + "courseOfTherapyType": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Overall pattern of medication administration", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy|4.0.1" + }, + "insurance": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Associated insurance coverage", + "isComposite": false + }, + "note": { + "type": [ + "Annotation" + ], + "isArray": true, + "desc": "Information about the prescription", + "isComposite": false + }, + "dosageInstruction": { + "type": [ + "Dosage" + ], + "isArray": true, + "desc": "Dosage Instruction", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "sequence": { + "type": "integer", + "desc": "The order of the dosage instructions" + }, + "text": { + "type": "string", + "desc": "Dosage Instruction as Text" + }, + "additionalInstruction": { + "type": "CodeableConcept", + "desc": "Supplemental instruction or warnings to the patient - e.g. \"with meals\", \"may cause drowsiness\"", + "valueSet": "http://hl7.org/fhir/ValueSet/additional-instruction-codes|4.0.1" + }, + "patientInstruction": { + "type": "string", + "desc": "Patient or consumer oriented instructions" + }, + "timing": { + "type": "Timing", + "desc": "When medication should be administered" + }, + "asNeeded": { + "type": "boolean", + "desc": "Take \"as needed\" (for x)", + "valueSet": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason|4.0.1" + }, + "site": { + "type": "CodeableConcept", + "desc": "Body site to administer to", + "valueSet": "http://hl7.org/fhir/ValueSet/approach-site-codes|4.0.1" + }, + "route": { + "type": "CodeableConcept", + "desc": "How drug should enter body", + "valueSet": "http://hl7.org/fhir/ValueSet/route-codes|4.0.1" + }, + "method": { + "type": "CodeableConcept", + "desc": "Technique for administering medication", + "valueSet": "http://hl7.org/fhir/ValueSet/administration-method-codes|4.0.1" + }, + "doseAndRate": { + "type": "Ratio", + "desc": "Amount of medication per unit of time" + }, + "maxDosePerPeriod": { + "type": "Ratio", + "desc": "Upper limit on medication per unit of time" + }, + "maxDosePerAdministration": { + "type": "Quantity", + "desc": "Upper limit on medication per administration" + }, + "maxDosePerLifetime": { + "type": "Quantity", + "desc": "Upper limit on medication per lifetime of the patient" + } + } + }, + "dispenseRequest": { + "type": [ + "BackboneElement" + ], + "isArray": false, + "desc": "Medication supply authorization", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "initialFill": { + "type": "Duration", + "desc": "First fill duration" + }, + "dispenseInterval": { + "type": "Duration", + "desc": "Minimum period of time between dispenses" + }, + "validityPeriod": { + "type": "Period", + "desc": "Time period supply is authorized for" + }, + "numberOfRepeatsAllowed": { + "type": "unsignedInt", + "desc": "Number of refills authorized" + }, + "quantity": { + "type": "Quantity", + "desc": "Amount of medication to supply per dispense" + }, + "expectedSupplyDuration": { + "type": "Duration", + "desc": "Number of days supply per dispense" + }, + "performer": { + "type": "Reference", + "desc": "Intended dispenser" + } + } + }, + "substitution": { + "type": [ + "BackboneElement" + ], + "isArray": false, + "desc": "Any restrictions on medication substitution", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "allowed": { + "type": "boolean", + "desc": "Whether substitution is allowed or not", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode" + }, + "reason": { + "type": "CodeableConcept", + "desc": "Why should (not) substitution be made", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason" + } + } + }, + "priorPrescription": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "An order/prescription that is being replaced", + "isComposite": false + }, + "detectedIssue": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Clinical Issue with action", + "isComposite": false + }, + "eventHistory": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "A list of events of interest in the lifecycle", + "isComposite": false + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Medication_SzMedication.json b/packages/fhir-eswatini/schema/Medication_SzMedication.json new file mode 100644 index 0000000000..6a6a6e9a05 --- /dev/null +++ b/packages/fhir-eswatini/schema/Medication_SzMedication.json @@ -0,0 +1,179 @@ +{ + "id": "SzMedication", + "type": "Medication", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzMedication", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "Business identifier for this medication", + "isComposite": false + }, + "code": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "ELMIS Product Code", + "isComposite": false, + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzProductCodeVS" + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "active | inactive | entered-in-error", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/medication-status|4.0.1" + }, + "manufacturer": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Manufacturer of the item", + "isComposite": false + }, + "form": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "powder | tablets | capsule +", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/medication-form-codes|4.0.1" + }, + "amount": { + "type": [ + "Ratio" + ], + "isArray": false, + "desc": "Amount of drug in package", + "isComposite": false + }, + "ingredient": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Active or inactive ingredient", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "item": { + "type": "CodeableConcept", + "desc": "The actual ingredient or content" + }, + "isActive": { + "type": "boolean", + "desc": "Active ingredient indicator" + }, + "strength": { + "type": "Ratio", + "desc": "Quantity of ingredient present" + } + } + }, + "batch": { + "type": [ + "BackboneElement" + ], + "isArray": false, + "desc": "Details about packaged medications", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "lotNumber": { + "type": "string", + "desc": "Identifier assigned to batch" + }, + "expirationDate": { + "type": "dateTime", + "desc": "When batch will expire" + } + } + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Observation_SzCauseOfDeath.json b/packages/fhir-eswatini/schema/Observation_SzCauseOfDeath.json new file mode 100644 index 0000000000..62af8982ae --- /dev/null +++ b/packages/fhir-eswatini/schema/Observation_SzCauseOfDeath.json @@ -0,0 +1,361 @@ +{ + "id": "SzCauseOfDeath", + "type": "Observation", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzCauseOfDeath", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "Business Identifier for observation", + "isComposite": false + }, + "basedOn": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Fulfills plan, proposal or order", + "isComposite": false + }, + "partOf": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Part of referenced event", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "registered | preliminary | final | amended +", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1" + }, + "category": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Classification of type of observation", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-category|4.0.1" + }, + "code": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Cause of death", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1", + "defaults": { + "coding": [ + { + "system": "http://loinc.org", + "code": "79378-6" + } + ] + } + }, + "subject": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "The decedent", + "isComposite": false + }, + "focus": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "What the observation is about, when it is not about the subject of record", + "isComposite": false + }, + "encounter": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Healthcare event during which this observation is made", + "isComposite": false + }, + "effective": { + "type": [ + "dateTime", + "Period", + "Timing", + "instant" + ], + "isArray": false, + "desc": "Clinically relevant time/time-period for observation", + "isComposite": true + }, + "issued": { + "type": [ + "instant" + ], + "isArray": false, + "desc": "Date/Time this version was made available", + "isComposite": false + }, + "performer": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Cause of death certifier (coroner or medical examiner)", + "isComposite": false + }, + "value": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Actual result", + "isComposite": true, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "coding": { + "type": "Coding", + "desc": "Code defined by a terminology system" + }, + "text": { + "type": "string", + "desc": "Cause of death Intermediate | Intermediate I | Intermediat II | Underlying" + } + } + }, + "dataAbsentReason": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Why the result is missing", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "interpretation": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "High, low, normal, etc.", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "note": { + "type": [ + "Annotation" + ], + "isArray": true, + "desc": "Comments about the observation", + "isComposite": false + }, + "bodySite": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Observed body part", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "method": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "How it was done", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods|4.0.1" + }, + "specimen": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Specimen used for this observation", + "isComposite": false + }, + "device": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "(Measurement) Device", + "isComposite": false + }, + "referenceRange": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Provides guide for interpretation", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "low": { + "type": "Quantity", + "desc": "Low Range, if relevant" + }, + "high": { + "type": "Quantity", + "desc": "High Range, if relevant" + }, + "type": { + "type": "CodeableConcept", + "desc": "Reference range qualifier", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1" + }, + "appliesTo": { + "type": "CodeableConcept", + "desc": "Reference range population", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1" + }, + "age": { + "type": "Range", + "desc": "Applicable age range, if relevant" + }, + "text": { + "type": "string", + "desc": "Text based reference range in an observation" + } + } + }, + "hasMember": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Related resource that belongs to the Observation group", + "isComposite": false + }, + "derivedFrom": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Related measurements the observation is made from", + "isComposite": false + }, + "component": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Cause of death time interval for Intermediate, Intermediate I, Intermediat II, Underlying", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "code": { + "type": "CodeableConcept", + "desc": "Disease onset to death interval", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "value": { + "type": "CodeableConcept", + "desc": "Interval Unknown" + }, + "dataAbsentReason": { + "type": "CodeableConcept", + "desc": "Why the component result is missing", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "interpretation": { + "type": "CodeableConcept", + "desc": "High, low, normal, etc.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + } + } + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Observation_SzClinicalObservation.json b/packages/fhir-eswatini/schema/Observation_SzClinicalObservation.json new file mode 100644 index 0000000000..af66352d7e --- /dev/null +++ b/packages/fhir-eswatini/schema/Observation_SzClinicalObservation.json @@ -0,0 +1,349 @@ +{ + "id": "SzClinicalObservation", + "type": "Observation", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzClinicalObservation", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "Business Identifier for observation", + "isComposite": false + }, + "basedOn": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Fulfills plan, proposal or order", + "isComposite": false + }, + "partOf": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Part of referenced event", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "registered | preliminary | final | amended +", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1" + }, + "category": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Classification of type of observation", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-category|4.0.1" + }, + "code": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Observation code", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "subject": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Patient's information", + "isComposite": false + }, + "focus": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "What the observation is about, when it is not about the subject of record", + "isComposite": false + }, + "encounter": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Encounter information", + "isComposite": false + }, + "effective": { + "type": [ + "dateTime", + "Period", + "Timing", + "instant" + ], + "isArray": false, + "desc": "Clinically relevant time/time-period for observation", + "isComposite": true + }, + "issued": { + "type": [ + "instant" + ], + "isArray": false, + "desc": "Date/Time this version was made available", + "isComposite": false + }, + "performer": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Who is responsible for the observation", + "isComposite": false + }, + "value": { + "type": [ + "Quantity", + "CodeableConcept", + "string", + "boolean", + "integer", + "Range", + "Ratio", + "SampledData", + "time", + "dateTime", + "Period" + ], + "isArray": false, + "desc": "Actual result", + "isComposite": true + }, + "dataAbsentReason": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Why the result is missing", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "interpretation": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "High, low, normal, etc.", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "note": { + "type": [ + "Annotation" + ], + "isArray": true, + "desc": "Comments about the observation", + "isComposite": false + }, + "bodySite": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Observed body part", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "method": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "How it was done", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods|4.0.1" + }, + "specimen": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Specimen used for this observation", + "isComposite": false + }, + "device": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "(Measurement) Device", + "isComposite": false + }, + "referenceRange": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Provides guide for interpretation", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "low": { + "type": "Quantity", + "desc": "Low Range, if relevant" + }, + "high": { + "type": "Quantity", + "desc": "High Range, if relevant" + }, + "type": { + "type": "CodeableConcept", + "desc": "Reference range qualifier", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1" + }, + "appliesTo": { + "type": "CodeableConcept", + "desc": "Reference range population", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1" + }, + "age": { + "type": "Range", + "desc": "Applicable age range, if relevant" + }, + "text": { + "type": "string", + "desc": "Text based reference range in an observation" + } + } + }, + "hasMember": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Related resource that belongs to the Observation group", + "isComposite": false + }, + "derivedFrom": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Related measurements the observation is made from", + "isComposite": false + }, + "component": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Component results", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "code": { + "type": "CodeableConcept", + "desc": "Type of component observation (code / type)", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "value": { + "type": "Quantity", + "desc": "Actual component result" + }, + "dataAbsentReason": { + "type": "CodeableConcept", + "desc": "Why the component result is missing", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "interpretation": { + "type": "CodeableConcept", + "desc": "High, low, normal, etc.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + } + } + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Observation_SzLabResult.json b/packages/fhir-eswatini/schema/Observation_SzLabResult.json new file mode 100644 index 0000000000..7ad9e6ff08 --- /dev/null +++ b/packages/fhir-eswatini/schema/Observation_SzLabResult.json @@ -0,0 +1,367 @@ +{ + "id": "SzLabResult", + "type": "Observation", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabResult", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "authorizer": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Lab results authorizer", + "isComposite": false, + "extension": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAuthorizerExtension" + }, + "testingLaboratory": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Testing laboratory", + "isComposite": false, + "extension": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzTestingLabExtension" + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "Business Identifier for observation", + "isComposite": false + }, + "basedOn": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Fulfills plan, proposal or order", + "isComposite": false + }, + "partOf": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Part of referenced event", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "registered | preliminary | final | amended +", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1" + }, + "category": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Classification of type of observation", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-category|4.0.1" + }, + "code": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Local test parameter code", + "isComposite": false, + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestParameterCodeVS" + }, + "subject": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Patient profile", + "isComposite": false + }, + "focus": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "What the observation is about, when it is not about the subject of record", + "isComposite": false + }, + "encounter": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Encounter", + "isComposite": false + }, + "effective": { + "type": [ + "dateTime", + "Period", + "Timing", + "instant" + ], + "isArray": false, + "desc": "Clinically relevant time/time-period for observation", + "isComposite": true + }, + "issued": { + "type": [ + "instant" + ], + "isArray": false, + "desc": "Date/Time this version was made available", + "isComposite": false + }, + "performer": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Who is responsible for the observation", + "isComposite": false + }, + "value": { + "type": [ + "Quantity", + "CodeableConcept", + "string", + "boolean", + "integer", + "Range", + "Ratio", + "SampledData", + "time", + "dateTime", + "Period" + ], + "isArray": false, + "desc": "Actual result", + "isComposite": true + }, + "dataAbsentReason": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Why the result is missing", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "interpretation": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "High, low, normal, etc.", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "note": { + "type": [ + "Annotation" + ], + "isArray": true, + "desc": "Comments about the observation", + "isComposite": false + }, + "bodySite": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Observed body part", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "method": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "How it was done", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods|4.0.1" + }, + "specimen": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Specimen used for this observation", + "isComposite": false + }, + "device": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "(Measurement) Device", + "isComposite": false + }, + "referenceRange": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Provides guide for interpretation", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "low": { + "type": "Quantity", + "desc": "Low Range, if relevant" + }, + "high": { + "type": "Quantity", + "desc": "High Range, if relevant" + }, + "type": { + "type": "CodeableConcept", + "desc": "Reference range qualifier", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1" + }, + "appliesTo": { + "type": "CodeableConcept", + "desc": "Reference range population", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1" + }, + "age": { + "type": "Range", + "desc": "Applicable age range, if relevant" + }, + "text": { + "type": "string", + "desc": "Text based reference range in an observation" + } + } + }, + "hasMember": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Related resource that belongs to the Observation group", + "isComposite": false + }, + "derivedFrom": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Related measurements the observation is made from", + "isComposite": false + }, + "component": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Component results", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "code": { + "type": "CodeableConcept", + "desc": "Type of component observation (code / type)", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "value": { + "type": "Quantity", + "desc": "Actual component result" + }, + "dataAbsentReason": { + "type": "CodeableConcept", + "desc": "Why the component result is missing", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "interpretation": { + "type": "CodeableConcept", + "desc": "High, low, normal, etc.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + } + } + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Observation_SzMannerOfDeath.json b/packages/fhir-eswatini/schema/Observation_SzMannerOfDeath.json new file mode 100644 index 0000000000..ff3cf901e3 --- /dev/null +++ b/packages/fhir-eswatini/schema/Observation_SzMannerOfDeath.json @@ -0,0 +1,347 @@ +{ + "id": "SzMannerOfDeath", + "type": "Observation", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzMannerOfDeath", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "Business Identifier for observation", + "isComposite": false + }, + "basedOn": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Fulfills plan, proposal or order", + "isComposite": false + }, + "partOf": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Part of referenced event", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "registered | preliminary | final | amended +", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1" + }, + "category": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Classification of type of observation", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-category|4.0.1" + }, + "code": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Manner of death", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1", + "defaults": { + "coding": [ + { + "system": "http://loinc.org", + "code": "69449-7" + } + ] + } + }, + "subject": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Who and/or what the observation is about", + "isComposite": false + }, + "focus": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "What the observation is about, when it is not about the subject of record", + "isComposite": false + }, + "encounter": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Healthcare event during which this observation is made", + "isComposite": false + }, + "effective": { + "type": [ + "dateTime", + "Period", + "Timing", + "instant" + ], + "isArray": false, + "desc": "Clinically relevant time/time-period for observation", + "isComposite": true + }, + "issued": { + "type": [ + "instant" + ], + "isArray": false, + "desc": "Date/Time this version was made available", + "isComposite": false + }, + "performer": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Who is responsible for the observation", + "isComposite": false + }, + "value": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Value representing the actual manner of death", + "isComposite": true + }, + "dataAbsentReason": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Why the result is missing", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "interpretation": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "High, low, normal, etc.", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "note": { + "type": [ + "Annotation" + ], + "isArray": true, + "desc": "Comments about the observation", + "isComposite": false + }, + "bodySite": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Observed body part", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "method": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "How it was done", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods|4.0.1" + }, + "specimen": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Specimen used for this observation", + "isComposite": false + }, + "device": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "(Measurement) Device", + "isComposite": false + }, + "referenceRange": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Provides guide for interpretation", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "low": { + "type": "Quantity", + "desc": "Low Range, if relevant" + }, + "high": { + "type": "Quantity", + "desc": "High Range, if relevant" + }, + "type": { + "type": "CodeableConcept", + "desc": "Reference range qualifier", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1" + }, + "appliesTo": { + "type": "CodeableConcept", + "desc": "Reference range population", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1" + }, + "age": { + "type": "Range", + "desc": "Applicable age range, if relevant" + }, + "text": { + "type": "string", + "desc": "Text based reference range in an observation" + } + } + }, + "hasMember": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Related resource that belongs to the Observation group", + "isComposite": false + }, + "derivedFrom": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Related measurements the observation is made from", + "isComposite": false + }, + "component": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Component results", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "code": { + "type": "CodeableConcept", + "desc": "Type of component observation (code / type)", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "value": { + "type": "Quantity", + "desc": "Actual component result" + }, + "dataAbsentReason": { + "type": "CodeableConcept", + "desc": "Why the component result is missing", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "interpretation": { + "type": "CodeableConcept", + "desc": "High, low, normal, etc.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + } + } + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Observation_SzVitalSigns.json b/packages/fhir-eswatini/schema/Observation_SzVitalSigns.json new file mode 100644 index 0000000000..b5e7c84e50 --- /dev/null +++ b/packages/fhir-eswatini/schema/Observation_SzVitalSigns.json @@ -0,0 +1,380 @@ +{ + "id": "SzVitalSigns", + "type": "Observation", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzVitalSigns", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "Business Identifier for observation", + "isComposite": false + }, + "basedOn": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Fulfills plan, proposal or order", + "isComposite": false + }, + "partOf": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Part of referenced event", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "registered | preliminary | final | amended +", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1" + }, + "category": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Classification of type of observation", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-category|4.0.1", + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "coding": { + "type": "boolean", + "desc": "If this coding was chosen directly by the user" + }, + "text": { + "type": "string", + "desc": "Plain text representation of the concept" + } + } + }, + "code": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Specific vital sign being observed", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" + }, + "subject": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Patient related to the vitals being recorded", + "isComposite": false + }, + "focus": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "What the observation is about, when it is not about the subject of record", + "isComposite": false + }, + "encounter": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Visit related to the vitals being recorded", + "isComposite": false + }, + "effective": { + "type": [ + "dateTime", + "Period" + ], + "isArray": false, + "desc": "Often just a dateTime for Vital Signs", + "isComposite": true + }, + "issued": { + "type": [ + "instant" + ], + "isArray": false, + "desc": "Date/Time this version was made available", + "isComposite": false + }, + "performer": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Who is responsible for the observation", + "isComposite": false + }, + "value": { + "type": [ + "Quantity" + ], + "isArray": false, + "desc": "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.", + "isComposite": true, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "value": { + "type": "decimal", + "desc": "Numerical value (with implicit precision)" + }, + "comparator": { + "type": "string", + "desc": "< | <= | >= | > - how to understand the value", + "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1" + }, + "unit": { + "type": "string", + "desc": "Unit representation" + }, + "system": { + "type": "uri", + "desc": "System that defines coded unit form" + }, + "code": { + "type": "string", + "desc": "Coded form of the unit" + } + }, + "hasSystem": true + }, + "dataAbsentReason": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Why the result is missing", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "interpretation": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "High, low, normal, etc.", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "note": { + "type": [ + "Annotation" + ], + "isArray": true, + "desc": "Comments about the observation", + "isComposite": false + }, + "bodySite": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Observed body part", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "method": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "How it was done", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods|4.0.1" + }, + "specimen": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Specimen used for this observation", + "isComposite": false + }, + "device": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "(Measurement) Device", + "isComposite": false + }, + "referenceRange": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Provides guide for interpretation", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "low": { + "type": "Quantity", + "desc": "Low Range, if relevant" + }, + "high": { + "type": "Quantity", + "desc": "High Range, if relevant" + }, + "type": { + "type": "CodeableConcept", + "desc": "Reference range qualifier", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1" + }, + "appliesTo": { + "type": "CodeableConcept", + "desc": "Reference range population", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1" + }, + "age": { + "type": "Range", + "desc": "Applicable age range, if relevant" + }, + "text": { + "type": "string", + "desc": "Text based reference range in an observation" + } + } + }, + "hasMember": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Used when reporting vital signs panel components", + "isComposite": false + }, + "derivedFrom": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Related measurements the observation is made from", + "isComposite": false + }, + "component": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Used when reporting systolic and diastolic blood pressure.", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "code": { + "type": "CodeableConcept", + "desc": "Type of component observation (code / type)", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult|4.0.1" + }, + "value": { + "type": "Quantity", + "desc": "Vital Sign Value recorded with UCUM", + "valueSet": "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1" + }, + "dataAbsentReason": { + "type": "CodeableConcept", + "desc": "Why the component result is missing", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "interpretation": { + "type": "CodeableConcept", + "desc": "High, low, normal, etc.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + } + } + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Organization_SzOrganization.json b/packages/fhir-eswatini/schema/Organization_SzOrganization.json new file mode 100644 index 0000000000..9aec9c07aa --- /dev/null +++ b/packages/fhir-eswatini/schema/Organization_SzOrganization.json @@ -0,0 +1,180 @@ +{ + "id": "SzOrganization", + "type": "Organization", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "Identifies this organization across multiple systems", + "isComposite": false + }, + "active": { + "type": [ + "boolean" + ], + "isArray": false, + "desc": "Whether the organization's record is still in active use", + "isComposite": false + }, + "type": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Organization Type", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/organization-type|4.0.1" + }, + "name": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Organization' name", + "isComposite": false + }, + "alias": { + "type": [ + "string" + ], + "isArray": true, + "desc": "A list of alternate names that the organization is known as, or was known as in the past", + "isComposite": false + }, + "telecom": { + "type": [ + "ContactPoint" + ], + "isArray": true, + "desc": "A contact detail for the organization", + "isComposite": false + }, + "address": { + "type": [ + "Address" + ], + "isArray": true, + "desc": "An address for the organization", + "isComposite": false + }, + "partOf": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "The organization of which this organization forms a part", + "isComposite": false + }, + "contact": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Contact for the organization for a certain purpose", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "purpose": { + "type": "CodeableConcept", + "desc": "The type of contact", + "valueSet": "http://hl7.org/fhir/ValueSet/contactentity-type|4.0.1" + }, + "name": { + "type": "HumanName", + "desc": "A name associated with the contact" + }, + "telecom": { + "type": "ContactPoint", + "desc": "Contact details (telephone, email, etc.) for a contact" + }, + "address": { + "type": "Address", + "desc": "Visiting or postal addresses for the contact" + } + } + }, + "endpoint": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Technical endpoints providing access to services operated for the organization", + "isComposite": false + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Patient_SzPatient.json b/packages/fhir-eswatini/schema/Patient_SzPatient.json new file mode 100644 index 0000000000..5048055843 --- /dev/null +++ b/packages/fhir-eswatini/schema/Patient_SzPatient.json @@ -0,0 +1,436 @@ +{ + "id": "SzPatient", + "type": "Patient", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "nationality": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Nationality.", + "isComposite": false, + "extension": "http://hl7.org/fhir/StructureDefinition/patient-nationality" + }, + "inkhundla": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Extention: Eswatini Inkhundla", + "isComposite": false, + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTinkhundlaVS|0.1.0", + "extension": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzInkhundlaExtension" + }, + "chiefdom": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Extention: Eswatini Chiefdom", + "isComposite": false, + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzChiefdomVS|0.1.0", + "extension": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzChiefdomExtension" + }, + "registrationDate": { + "type": [ + "dateTime" + ], + "isArray": true, + "desc": "Date the patient was registered", + "isComposite": false, + "extension": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzRegistrationDate" + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "Patient's Identification Number", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "use": { + "type": "string", + "desc": "usual | official | temp | secondary | old (If known)", + "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1" + }, + "type": { + "type": "CodeableConcept", + "desc": "Type of patient identifier", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/PersonIdentifiersVS|0.1.0" + }, + "system": { + "type": "uri", + "desc": "The namespace for the identifier value" + }, + "value": { + "type": "string", + "desc": "Patient identier value" + }, + "period": { + "type": "Period", + "desc": "Time period when id is/was valid for use" + }, + "assigner": { + "type": "Reference", + "desc": "Organization that issued id (may be just text)" + } + }, + "hasSystem": true + }, + "active": { + "type": [ + "boolean" + ], + "isArray": false, + "desc": "Whether this patient's record is in active use", + "isComposite": false + }, + "name": { + "type": [ + "HumanName" + ], + "isArray": true, + "desc": "Patient's name", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "use": { + "type": "string", + "desc": "usual | official | temp | nickname | anonymous | old | maiden", + "valueSet": "http://hl7.org/fhir/ValueSet/name-use|4.0.1" + }, + "text": { + "type": "string", + "desc": "Text representation of the full name" + }, + "family": { + "type": "string", + "desc": "Family name (often called 'Surname')" + }, + "given": { + "type": "string", + "desc": "Patient's given name" + }, + "prefix": { + "type": "string", + "desc": "Parts that come before the name" + }, + "suffix": { + "type": "string", + "desc": "Parts that come after the name" + }, + "period": { + "type": "Period", + "desc": "Time period when name was/is in use" + } + } + }, + "telecom": { + "type": [ + "ContactPoint" + ], + "isArray": true, + "desc": "A contact detail for the individual", + "isComposite": false + }, + "gender": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Sex at birth: male | female | other | unknown", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1" + }, + "birthDate": { + "type": [ + "date" + ], + "isArray": false, + "desc": "Date of birth: YYYY-MM-DD", + "isComposite": false + }, + "deceased": { + "type": [ + "boolean", + "dateTime" + ], + "isArray": false, + "desc": "Indicates if the individual is deceased or not", + "isComposite": true + }, + "address": { + "type": [ + "Address" + ], + "isArray": true, + "desc": "An address for the individual", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "use": { + "type": "string", + "desc": "home | work | temp | old | billing - purpose of this address", + "valueSet": "http://hl7.org/fhir/ValueSet/address-use|4.0.1" + }, + "type": { + "type": "string", + "desc": "postal | physical | both", + "valueSet": "http://hl7.org/fhir/ValueSet/address-type|4.0.1" + }, + "text": { + "type": "string", + "desc": "Text representation of the address" + }, + "line": { + "type": "string", + "desc": "Street name, number, direction & P.O. Box etc." + }, + "city": { + "type": "string", + "desc": "Name of city, town etc." + }, + "district": { + "type": "string", + "desc": "District name (aka county)" + }, + "state": { + "type": "string", + "desc": "Sub-unit of country (abbreviations ok)" + }, + "postalCode": { + "type": "string", + "desc": "Postal code for area" + }, + "country": { + "type": "string", + "desc": "Country (e.g. can be ISO 3166 2 or 3 letter code)" + }, + "period": { + "type": "Period", + "desc": "Time period when address was/is in use" + } + } + }, + "maritalStatus": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Marital (civil) status of a patient", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/marital-status|4.0.1" + }, + "multipleBirth": { + "type": [ + "boolean", + "integer" + ], + "isArray": false, + "desc": "Whether patient is part of a multiple birth", + "isComposite": true + }, + "photo": { + "type": [ + "Attachment" + ], + "isArray": true, + "desc": "Image of the patient", + "isComposite": false + }, + "contact": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "A contact party (e.g. guardian, partner, friend) for the patient", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "relationship": { + "type": "CodeableConcept", + "desc": "The kind of relationship", + "valueSet": "http://hl7.org/fhir/ValueSet/patient-contactrelationship|4.0.1" + }, + "name": { + "type": "HumanName", + "desc": "A name associated with the contact person" + }, + "telecom": { + "type": "ContactPoint", + "desc": "A contact detail for the person" + }, + "address": { + "type": "Address", + "desc": "Address for the contact person" + }, + "gender": { + "type": "string", + "desc": "male | female | other | unknown", + "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1" + }, + "organization": { + "type": "Reference", + "desc": "Organization that is associated with the contact" + }, + "period": { + "type": "Period", + "desc": "The period during which this contact person or organization is valid to be contacted relating to this patient" + } + } + }, + "communication": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "A language which may be used to communicate with the patient about his or her health", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "language": { + "type": "CodeableConcept", + "desc": "The language which can be used to communicate with the patient about his or her health", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "preferred": { + "type": "boolean", + "desc": "Language preference indicator" + } + } + }, + "generalPractitioner": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Patient's nominated primary care provider", + "isComposite": false + }, + "managingOrganization": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Organization that is the custodian of the patient record", + "isComposite": false + }, + "link": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Link to another patient resource that concerns the same actual person", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "other": { + "type": "Reference", + "desc": "The other patient or related person resource that the link refers to" + }, + "type": { + "type": "string", + "desc": "replaced-by | replaces | refer | seealso", + "valueSet": "http://hl7.org/fhir/ValueSet/link-type|4.0.1" + } + } + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Practitioner_SzPractitioner.json b/packages/fhir-eswatini/schema/Practitioner_SzPractitioner.json new file mode 100644 index 0000000000..313777a4e0 --- /dev/null +++ b/packages/fhir-eswatini/schema/Practitioner_SzPractitioner.json @@ -0,0 +1,216 @@ +{ + "id": "SzPractitioner", + "type": "Practitioner", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "An identifier for the person as this agent", + "isComposite": false + }, + "active": { + "type": [ + "boolean" + ], + "isArray": false, + "desc": "Whether this practitioner's record is in active use", + "isComposite": false + }, + "name": { + "type": [ + "HumanName" + ], + "isArray": true, + "desc": "Practitioner's name", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "use": { + "type": "string", + "desc": "usual | official | temp | nickname | anonymous | old | maiden", + "valueSet": "http://hl7.org/fhir/ValueSet/name-use|4.0.1" + }, + "text": { + "type": "string", + "desc": "Text representation of the full name" + }, + "family": { + "type": "string", + "desc": "Family name (often called 'Surname')" + }, + "given": { + "type": "string", + "desc": "Practitioner's given name" + }, + "prefix": { + "type": "string", + "desc": "Parts that come before the name" + }, + "suffix": { + "type": "string", + "desc": "Parts that come after the name" + }, + "period": { + "type": "Period", + "desc": "Time period when name was/is in use" + } + } + }, + "telecom": { + "type": [ + "ContactPoint" + ], + "isArray": true, + "desc": "A contact detail for the practitioner (that apply to all roles)", + "isComposite": false + }, + "address": { + "type": [ + "Address" + ], + "isArray": true, + "desc": "Address(es) of the practitioner that are not role specific (typically home address)", + "isComposite": false + }, + "gender": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Sex at birth: male | female | other | unknown", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1" + }, + "birthDate": { + "type": [ + "date" + ], + "isArray": false, + "desc": "The date on which the practitioner was born", + "isComposite": false + }, + "photo": { + "type": [ + "Attachment" + ], + "isArray": true, + "desc": "Image of the person", + "isComposite": false + }, + "qualification": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Certification, licenses, or training pertaining to the provision of care", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "identifier": { + "type": "Identifier", + "desc": "An identifier for this qualification for the practitioner" + }, + "code": { + "type": "CodeableConcept", + "desc": "Coded representation of the qualification", + "valueSet": "http://terminology.hl7.org/ValueSet/v2-2.7-0360|0360" + }, + "period": { + "type": "Period", + "desc": "Period during which the qualification is valid" + }, + "issuer": { + "type": "Reference", + "desc": "Organization that regulates and issues the qualification" + } + } + }, + "communication": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "A language the practitioner can use in patient communication", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Procedure_SzProcedure.json b/packages/fhir-eswatini/schema/Procedure_SzProcedure.json new file mode 100644 index 0000000000..063abd3e04 --- /dev/null +++ b/packages/fhir-eswatini/schema/Procedure_SzProcedure.json @@ -0,0 +1,352 @@ +{ + "id": "SzProcedure", + "type": "Procedure", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzProcedure", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "External Identifiers for this procedure", + "isComposite": false + }, + "instantiatesCanonical": { + "type": [ + "canonical" + ], + "isArray": true, + "desc": "Instantiates FHIR protocol or definition", + "isComposite": false + }, + "instantiatesUri": { + "type": [ + "string" + ], + "isArray": true, + "desc": "Instantiates external protocol or definition", + "isComposite": false + }, + "basedOn": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "A request for this procedure", + "isComposite": false + }, + "partOf": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Part of referenced event", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/event-status|4.0.1" + }, + "statusReason": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Reason for current status", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-not-performed-reason|4.0.1" + }, + "category": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Classification of the procedure", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-category|4.0.1" + }, + "code": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Procedure Code", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code|4.0.1" + }, + "subject": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Who the procedure was performed on", + "isComposite": false + }, + "encounter": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Encounter created as part of", + "isComposite": false + }, + "performed": { + "type": [ + "dateTime", + "Period", + "string", + "Age", + "Range" + ], + "isArray": false, + "desc": "When the procedure was performed", + "isComposite": true + }, + "recorder": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Who recorded the procedure", + "isComposite": false + }, + "asserter": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Person who asserts this procedure", + "isComposite": false + }, + "performer": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "The people who performed the procedure", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "function": { + "type": "CodeableConcept", + "desc": "Type of performance", + "valueSet": "http://hl7.org/fhir/ValueSet/performer-role|4.0.1" + }, + "actor": { + "type": "Reference", + "desc": "The reference to the practitioner" + }, + "onBehalfOf": { + "type": "Reference", + "desc": "Organization the device or practitioner was acting for" + } + } + }, + "location": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Where the procedure happened", + "isComposite": false + }, + "reasonCode": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Coded reason procedure performed", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason|4.0.1" + }, + "reasonReference": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "The justification that the procedure was performed", + "isComposite": false + }, + "bodySite": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Target body sites", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "outcome": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "The result of procedure", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-outcome|4.0.1" + }, + "report": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Any report resulting from the procedure", + "isComposite": false + }, + "complication": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Complication following the procedure", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/condition-code|4.0.1" + }, + "complicationDetail": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "A condition that is a result of the procedure", + "isComposite": false + }, + "followUp": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Instructions for follow up", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-followup|4.0.1" + }, + "note": { + "type": [ + "Annotation" + ], + "isArray": true, + "desc": "Additional information about the procedure", + "isComposite": false + }, + "focalDevice": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Manipulated, implanted, or removed device", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "action": { + "type": "CodeableConcept", + "desc": "Kind of change to device", + "valueSet": "http://hl7.org/fhir/ValueSet/device-action|4.0.1" + }, + "manipulated": { + "type": "Reference", + "desc": "Device that was changed" + } + } + }, + "usedReference": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Items used during procedure", + "isComposite": false + }, + "usedCode": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Coded items used during the procedure", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/device-kind|4.0.1" + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/ServiceRequest_SzLabRequest.json b/packages/fhir-eswatini/schema/ServiceRequest_SzLabRequest.json new file mode 100644 index 0000000000..29a813736b --- /dev/null +++ b/packages/fhir-eswatini/schema/ServiceRequest_SzLabRequest.json @@ -0,0 +1,366 @@ +{ + "id": "SzLabRequest", + "type": "ServiceRequest", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabRequest", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "Identifiers assigned to this order", + "isComposite": false + }, + "instantiatesCanonical": { + "type": [ + "canonical" + ], + "isArray": true, + "desc": "Instantiates FHIR protocol or definition", + "isComposite": false + }, + "instantiatesUri": { + "type": [ + "string" + ], + "isArray": true, + "desc": "Instantiates external protocol or definition", + "isComposite": false + }, + "basedOn": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "What request fulfills", + "isComposite": false + }, + "replaces": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "What request replaces", + "isComposite": false + }, + "requisition": { + "type": [ + "Identifier" + ], + "isArray": false, + "desc": "Composite Request ID", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "draft | active | on-hold | revoked | completed | entered-in-error | unknown", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1" + }, + "intent": { + "type": [ + "string" + ], + "isArray": false, + "desc": "proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1" + }, + "category": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Type of service request", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/servicerequest-category|4.0.1", + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "coding": { + "type": "boolean", + "desc": "If this coding was chosen directly by the user" + }, + "text": { + "type": "string", + "desc": "Plain text representation of the concept" + } + } + }, + "priority": { + "type": [ + "string" + ], + "isArray": false, + "desc": "routine | urgent | asap | stat", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1" + }, + "doNotPerform": { + "type": [ + "boolean" + ], + "isArray": false, + "desc": "True if service/procedure should not be performed", + "isComposite": false + }, + "code": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Local test code", + "isComposite": false, + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestCodeVS" + }, + "orderDetail": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Additional order information", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/servicerequest-orderdetail|4.0.1" + }, + "quantity": { + "type": [ + "Quantity", + "Ratio", + "Range" + ], + "isArray": false, + "desc": "Service amount", + "isComposite": true + }, + "subject": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Patient's information", + "isComposite": false + }, + "encounter": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Encounter information", + "isComposite": false + }, + "occurrence": { + "type": [ + "dateTime", + "Period", + "Timing" + ], + "isArray": false, + "desc": "When service should occur", + "isComposite": true + }, + "asNeeded": { + "type": [ + "boolean", + "CodeableConcept" + ], + "isArray": false, + "desc": "Preconditions for service", + "isComposite": true, + "valueSet": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason|4.0.1" + }, + "authoredOn": { + "type": [ + "dateTime" + ], + "isArray": false, + "desc": "Date request signed", + "isComposite": false + }, + "requester": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Who/what is requesting service", + "isComposite": false + }, + "performerType": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Performer role", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/participant-role|4.0.1" + }, + "performer": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Requested performer", + "isComposite": false + }, + "locationCode": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Requested location", + "isComposite": false, + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType" + }, + "locationReference": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Requested location", + "isComposite": false + }, + "reasonCode": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Explanation/Justification for procedure or service", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason|4.0.1" + }, + "reasonReference": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Explanation/Justification for service or service", + "isComposite": false + }, + "insurance": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Associated insurance coverage", + "isComposite": false + }, + "supportingInfo": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Additional clinical information", + "isComposite": false + }, + "specimen": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Lab test specimen", + "isComposite": false + }, + "bodySite": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Location on Body", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "note": { + "type": [ + "Annotation" + ], + "isArray": true, + "desc": "Comments", + "isComposite": false + }, + "patientInstruction": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Patient or consumer-oriented instructions", + "isComposite": false + }, + "relevantHistory": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Request provenance", + "isComposite": false + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/ServiceRequest_SzReferral.json b/packages/fhir-eswatini/schema/ServiceRequest_SzReferral.json new file mode 100644 index 0000000000..ea23b13ee7 --- /dev/null +++ b/packages/fhir-eswatini/schema/ServiceRequest_SzReferral.json @@ -0,0 +1,410 @@ +{ + "id": "SzReferral", + "type": "ServiceRequest", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferral", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extension", + "isComposite": false + }, + "recipient": { + "type": [ + "base64Binary", + "boolean", + "canonical", + "string", + "date", + "dateTime", + "decimal", + "id", + "instant", + "integer", + "markdown", + "oid", + "number", + "string", + "time", + "unsignedInt", + "string", + "url", + "uuid", + "Address", + "Age", + "Annotation", + "Attachment", + "CodeableConcept", + "Coding", + "ContactPoint", + "Count", + "Distance", + "Duration", + "HumanName", + "Identifier", + "Money", + "Period", + "Quantity", + "Range", + "Ratio", + "Reference", + "SampledData", + "Signature", + "Timing", + "ContactDetail", + "Contributor", + "DataRequirement", + "Expression", + "ParameterDefinition", + "RelatedArtifact", + "TriggerDefinition", + "UsageContext", + "Dosage", + "Meta" + ], + "isArray": true, + "desc": "Health facility receiving the referred patient.", + "isComposite": false, + "extension": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension" + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "Identifiers assigned to this order", + "isComposite": false + }, + "instantiatesCanonical": { + "type": [ + "canonical" + ], + "isArray": true, + "desc": "Instantiates FHIR protocol or definition", + "isComposite": false + }, + "instantiatesUri": { + "type": [ + "string" + ], + "isArray": true, + "desc": "Instantiates external protocol or definition", + "isComposite": false + }, + "basedOn": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "What request fulfills", + "isComposite": false + }, + "replaces": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "What request replaces", + "isComposite": false + }, + "requisition": { + "type": [ + "Identifier" + ], + "isArray": false, + "desc": "Composite Request ID", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "draft | active | on-hold | revoked | completed | entered-in-error | unknown", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1" + }, + "intent": { + "type": [ + "string" + ], + "isArray": false, + "desc": "proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1" + }, + "category": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Classification of service", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/servicerequest-category|4.0.1" + }, + "priority": { + "type": [ + "string" + ], + "isArray": false, + "desc": "routine | urgent | asap | stat", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1" + }, + "doNotPerform": { + "type": [ + "boolean" + ], + "isArray": false, + "desc": "True if service/procedure should not be performed", + "isComposite": false + }, + "code": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "What is being requested/ordered", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code|4.0.1" + }, + "orderDetail": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Additional order information", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/servicerequest-orderdetail|4.0.1" + }, + "quantity": { + "type": [ + "Quantity", + "Ratio", + "Range" + ], + "isArray": false, + "desc": "Service amount", + "isComposite": true + }, + "subject": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Patient associated with the referral", + "isComposite": false + }, + "encounter": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Visit or Encounter associated with the referral", + "isComposite": false + }, + "occurrence": { + "type": [ + "dateTime", + "Period", + "Timing" + ], + "isArray": false, + "desc": "Date the patient is expected to arrive at the reciving facility", + "isComposite": true + }, + "asNeeded": { + "type": [ + "boolean", + "CodeableConcept" + ], + "isArray": false, + "desc": "Preconditions for service", + "isComposite": true, + "valueSet": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason|4.0.1" + }, + "authoredOn": { + "type": [ + "dateTime" + ], + "isArray": false, + "desc": "Date the refferal was created", + "isComposite": false + }, + "requester": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Health facility making the referral", + "isComposite": false + }, + "performerType": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Performer role", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/participant-role|4.0.1" + }, + "performer": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Requested performer", + "isComposite": false + }, + "locationCode": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Requested location", + "isComposite": false, + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType" + }, + "locationReference": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Requested location", + "isComposite": false + }, + "reasonCode": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Reason the patient is being referred", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason|4.0.1" + }, + "reasonReference": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Explanation/Justification for service or service", + "isComposite": false + }, + "insurance": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Associated insurance coverage", + "isComposite": false + }, + "supportingInfo": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Additional clinical information", + "isComposite": false + }, + "specimen": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Procedure Samples", + "isComposite": false + }, + "bodySite": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "Location on Body", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "note": { + "type": [ + "Annotation" + ], + "isArray": true, + "desc": "Comments", + "isComposite": false + }, + "patientInstruction": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Patient or consumer-oriented instructions", + "isComposite": false + }, + "relevantHistory": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Request provenance", + "isComposite": false + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/Specimen_SzLabSpecimen.json b/packages/fhir-eswatini/schema/Specimen_SzLabSpecimen.json new file mode 100644 index 0000000000..4269d6f5a5 --- /dev/null +++ b/packages/fhir-eswatini/schema/Specimen_SzLabSpecimen.json @@ -0,0 +1,283 @@ +{ + "id": "SzLabSpecimen", + "type": "Specimen", + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabSpecimen", + "props": { + "id": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Logical id of this artifact", + "isComposite": false + }, + "meta": { + "type": [ + "Meta" + ], + "isArray": false, + "desc": "Metadata about the resource", + "isComposite": false + }, + "implicitRules": { + "type": [ + "string" + ], + "isArray": false, + "desc": "A set of rules under which this content was created", + "isComposite": false + }, + "language": { + "type": [ + "string" + ], + "isArray": false, + "desc": "Language of the resource content", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "text": { + "type": [ + "Narrative" + ], + "isArray": false, + "desc": "Text summary of the resource, for human interpretation", + "isComposite": false + }, + "contained": { + "type": [ + "Resource" + ], + "isArray": true, + "desc": "Contained, inline Resources", + "isComposite": false + }, + "extension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Additional content defined by implementations", + "isComposite": false + }, + "modifierExtension": { + "type": [ + "Extension" + ], + "isArray": true, + "desc": "Extensions that cannot be ignored", + "isComposite": false + }, + "identifier": { + "type": [ + "Identifier" + ], + "isArray": true, + "desc": "External Identifier", + "isComposite": false + }, + "accessionIdentifier": { + "type": [ + "Identifier" + ], + "isArray": false, + "desc": "Identifier assigned by the lab", + "isComposite": false + }, + "status": { + "type": [ + "string" + ], + "isArray": false, + "desc": "available | unavailable | unsatisfactory | entered-in-error", + "isComposite": false, + "valueSet": "http://hl7.org/fhir/ValueSet/specimen-status|4.0.1" + }, + "type": { + "type": [ + "CodeableConcept" + ], + "isArray": false, + "desc": "Type of specimen being collected", + "isComposite": false, + "valueSet": "http://terminology.hl7.org/CodeSystem/v2-0487|3.0.0" + }, + "subject": { + "type": [ + "Reference" + ], + "isArray": false, + "desc": "Patient associated with the specimen being collected", + "isComposite": false + }, + "receivedTime": { + "type": [ + "dateTime" + ], + "isArray": false, + "desc": "The time when specimen was received for processing", + "isComposite": false + }, + "parent": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Specimen from which this specimen originated", + "isComposite": false + }, + "request": { + "type": [ + "Reference" + ], + "isArray": true, + "desc": "Why the specimen was collected", + "isComposite": false + }, + "collection": { + "type": [ + "BackboneElement" + ], + "isArray": false, + "desc": "Specimen collection information", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "collector": { + "type": "Reference", + "desc": "Specimen collector" + }, + "collected": { + "type": "dateTime", + "desc": "Specimen collection date" + }, + "duration": { + "type": "Duration", + "desc": "How long it took to collect specimen" + }, + "quantity": { + "type": "Quantity", + "desc": "The quantity of specimen collected" + }, + "method": { + "type": "CodeableConcept", + "desc": "Technique used to perform collection", + "valueSet": "http://hl7.org/fhir/ValueSet/specimen-collection-method|4.0.1" + }, + "bodySite": { + "type": "CodeableConcept", + "desc": "Anatomical collection site", + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "fastingStatus": { + "type": "CodeableConcept", + "desc": "Whether or how long patient abstained from food and/or drink", + "valueSet": "http://terminology.hl7.org/ValueSet/v2-0916|3.0.0" + } + } + }, + "processing": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Processing and processing step details", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "description": { + "type": "string", + "desc": "Textual description of procedure" + }, + "procedure": { + "type": "CodeableConcept", + "desc": "Indicates the treatment step applied to the specimen", + "valueSet": "http://hl7.org/fhir/ValueSet/specimen-processing-procedure|4.0.1" + }, + "additive": { + "type": "Reference", + "desc": "Material used in the processing step" + }, + "time": { + "type": "dateTime", + "desc": "Date and time of specimen processing" + } + } + }, + "container": { + "type": [ + "BackboneElement" + ], + "isArray": true, + "desc": "Direct container of specimen (tube/slide, etc.)", + "isComposite": false, + "typeDef": { + "id": { + "type": "string", + "desc": "Unique id for inter-element referencing" + }, + "modifierExtension": { + "type": "Extension", + "desc": "Extensions that cannot be ignored even if unrecognized" + }, + "identifier": { + "type": "Identifier", + "desc": "Id for the container" + }, + "description": { + "type": "string", + "desc": "Textual description of the container" + }, + "type": { + "type": "CodeableConcept", + "desc": "Kind of container directly associated with specimen", + "valueSet": "http://hl7.org/fhir/ValueSet/specimen-container-type|4.0.1" + }, + "capacity": { + "type": "Quantity", + "desc": "Container volume or size" + }, + "specimenQuantity": { + "type": "Quantity", + "desc": "Quantity of specimen within container" + }, + "additive": { + "type": "CodeableConcept", + "desc": "Additive associated with container", + "valueSet": "http://terminology.hl7.org/ValueSet/v2-0371|3.0.0" + } + } + }, + "condition": { + "type": [ + "CodeableConcept" + ], + "isArray": true, + "desc": "State of the specimen", + "isComposite": false, + "valueSet": "http://terminology.hl7.org/ValueSet/v2-0493|3.0.0" + }, + "note": { + "type": [ + "Annotation" + ], + "isArray": true, + "desc": "Comments", + "isComposite": false + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/schema/valuesets.json b/packages/fhir-eswatini/schema/valuesets.json new file mode 100644 index 0000000000..d4756e645c --- /dev/null +++ b/packages/fhir-eswatini/schema/valuesets.json @@ -0,0 +1,19654 @@ +{ + "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS": { + "CD4": { + "code": "CD4", + "display": "CD4 Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AST": { + "code": "AST", + "display": "AST (Aspartate Transaminase)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CREA": { + "code": "CREA", + "display": "Creatinine ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HB": { + "code": "HB", + "display": "Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LFT": { + "code": "LFT", + "display": "Liver Function Tests - Profile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVVL": { + "code": "HIVVL", + "display": "HIV Viral Load (Plasma)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ICUP": { + "code": "ICUP", + "display": "ICU- Profile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GGT": { + "code": "GGT", + "display": "Gamma-Glutamyl Transferase GGT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "KFT": { + "code": "KFT", + "display": "Kidney Function Test - Profile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CARDE": { + "code": "CARDE", + "display": "Cardiac Enzymes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ART": { + "code": "ART", + "display": "ART Baseline - Profile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ELECT": { + "code": "ELECT", + "display": "Electrolytes - Profile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GLUCF": { + "code": "GLUCF", + "display": "Glucose (Fasting)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GLUCR": { + "code": "GLUCR", + "display": "Glucose (Random)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GTT": { + "code": "GTT", + "display": "Glucose Tolerance Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CL": { + "code": "CL", + "display": "S-Chloride", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "K": { + "code": "K", + "display": "S-Potassium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "NA": { + "code": "NA", + "display": "S-Sodium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CO2": { + "code": "CO2", + "display": "S-Carbon Dioxide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UA": { + "code": "UA", + "display": "Uric Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CREAC": { + "code": "CREAC", + "display": "Creatinine Clearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBIL": { + "code": "TBIL", + "display": "Total Bilirubin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BILI": { + "code": "BILI", + "display": "Total and Direct Bilirubin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ALP": { + "code": "ALP", + "display": "Alkaline Phosphatase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ALT": { + "code": "ALT", + "display": "ALT (Alanine Aminotransferase)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ALB": { + "code": "ALB", + "display": "Albumin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TPROT": { + "code": "TPROT", + "display": "Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CK": { + "code": "CK", + "display": "Creatine Kinase (CK)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CKMB": { + "code": "CKMB", + "display": "Creatine Kinase (MB-Frac)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MYOG": { + "code": "MYOG", + "display": "Myoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TROPI": { + "code": "TROPI", + "display": "S-Troponin I", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MAG": { + "code": "MAG", + "display": "S-Magnesium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PO4": { + "code": "PO4", + "display": "Phosphate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CAL": { + "code": "CAL", + "display": "S-Calcium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LDH": { + "code": "LDH", + "display": "Lactate Dehydrogenase (LD)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TRIG": { + "code": "TRIG", + "display": "Triglyceride", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LDL": { + "code": "LDL", + "display": "LDL - Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HDL": { + "code": "HDL", + "display": "HDL - Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CHOL": { + "code": "CHOL", + "display": "Total Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AMY": { + "code": "AMY", + "display": "Serum Amylase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LACT": { + "code": "LACT", + "display": "Lactate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CRP": { + "code": "CRP", + "display": "C-Reactive Protein (CRP)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LIPAS": { + "code": "LIPAS", + "display": "Lipase (Serum)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HBA1C": { + "code": "HBA1C", + "display": "Glycated Haemoglobin (HbA1C)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "M-TP": { + "code": "M-TP", + "display": "Micro Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FBC": { + "code": "FBC", + "display": "FBC (Full Blood Count)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DIFF": { + "code": "DIFF", + "display": "Differential Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ESR": { + "code": "ESR", + "display": "ESR (Westergren)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RET": { + "code": "RET", + "display": "Reticulocyte Studies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "COOMB": { + "code": "COOMB", + "display": "Coombs Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SICKL": { + "code": "SICKL", + "display": "Sickle Cells Screen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MAL": { + "code": "MAL", + "display": "Malaria", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MALPC": { + "code": "MALPC", + "display": "Malaria: PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MALS": { + "code": "MALS", + "display": "Malaria Smear: Parasitemia", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PT": { + "code": "PT", + "display": "Prothrombin Time(INR/PI)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "APTT": { + "code": "APTT", + "display": "Partial Thromboplastin Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PI": { + "code": "PI", + "display": "Prothrombin Time (INR/PI)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BTIME": { + "code": "BTIME", + "display": "Bleeding Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DDIME": { + "code": "DDIME", + "display": "D-Dimer", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TFT": { + "code": "TFT", + "display": "Thyroid Function Tests ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "T3": { + "code": "T3", + "display": "Free Tri-iodothyronine (FT3)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "T4": { + "code": "T4", + "display": "Free Thyroxine (T4)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TSH": { + "code": "TSH", + "display": "Thyroid Stimulating Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LH": { + "code": "LH", + "display": "Luteinising Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FSH": { + "code": "FSH", + "display": "Follicle Stimulating Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "E2": { + "code": "E2", + "display": "17 b Oestradial (E2)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PROG": { + "code": "PROG", + "display": "Progesterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PRL": { + "code": "PRL", + "display": "Prolactin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TESTO": { + "code": "TESTO", + "display": "Testosterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CORT": { + "code": "CORT", + "display": "Cortisol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PTH": { + "code": "PTH", + "display": "Parathyroid Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HCGSU": { + "code": "HCGSU", + "display": "Qualitative -HCG (Urine)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HCGSB": { + "code": "HCGSB", + "display": "Qualitative  -HCG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ABORH": { + "code": "ABORH", + "display": "ABO + Rh Group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RPR": { + "code": "RPR", + "display": "Syphilis RPR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TPHA": { + "code": "TPHA", + "display": "TPHA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PSSA": { + "code": "PSSA", + "display": "ANTIBIOTIC SENS: PSA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BHCG": { + "code": "BHCG", + "display": "Beta-HCG (Pregnancy Test)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AFP": { + "code": "AFP", + "display": "Alfa Feto Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CA153": { + "code": "CA153", + "display": "CA15-3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CA125": { + "code": "CA125", + "display": "CA125", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CEA": { + "code": "CEA", + "display": "Carcino-embryonic Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CA199": { + "code": "CA199", + "display": "CA19-9", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GRAM": { + "code": "GRAM", + "display": "MICROBIOLOGY : GRAM STAIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MCSF": { + "code": "MCSF", + "display": "MICROBIOLOGY : CSF", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CSF": { + "code": "CSF", + "display": "CSF Chem Profile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CRINK": { + "code": "CRINK", + "display": "India Ink Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SEMEN": { + "code": "SEMEN", + "display": "Semen Analysis", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVR": { + "code": "HIVR", + "display": "HIV Rapid Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVE": { + "code": "HIVE", + "display": "HIV ELISA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIPOC": { + "code": "HIPOC", + "display": "Point of Care DNA PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LCRAG": { + "code": "LCRAG", + "display": "LFA Cryptococal Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TOXO": { + "code": "TOXO", + "display": "Toxoplasmosis Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HELIP": { + "code": "HELIP", + "display": "MICROBIOLOGY : H.pylori", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HEAG": { + "code": "HEAG", + "display": "Hepatitis A IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HBCAB": { + "code": "HBCAB", + "display": "Hepatitis B Core Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HEPC": { + "code": "HEPC", + "display": "Hepatitis C Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "QCRPR": { + "code": "QCRPR", + "display": "QC RPR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "WIDAL": { + "code": "WIDAL", + "display": "Widal", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RF": { + "code": "RF", + "display": "Rheumatoid Factor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ASOT": { + "code": "ASOT", + "display": "Anti-Streptolysin O Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "XMAT": { + "code": "XMAT", + "display": "Cross Match", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HLAX": { + "code": "HLAX", + "display": "Grouping/Crossmatch", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ANISC": { + "code": "ANISC", + "display": "Antibody Screening (^Bbloodban", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DCT": { + "code": "DCT", + "display": "Direct Coombs Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ICT": { + "code": "ICT", + "display": "Indirect Coomb's Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "IGGS": { + "code": "IGGS", + "display": "IMMUNOGLOBULINS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ZN1": { + "code": "ZN1", + "display": "Smear Microscopy 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CUBFL": { + "code": "CUBFL", + "display": "Culture : Body Fuilds", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVGE": { + "code": "HIVGE", + "display": "HIV GENE XPERT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TROPT": { + "code": "TROPT", + "display": "Troponin-T", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UCHEM": { + "code": "UCHEM", + "display": "Biochemistry : Urine (Dipstick)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CRAG": { + "code": "CRAG", + "display": "CRAG (CSF)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CRGLF": { + "code": "CRGLF", + "display": "CRAG (LFA) Blood", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLAM": { + "code": "TBLAM", + "display": "TB LAM Ag TEST", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "17OPH": { + "code": "17OPH", + "display": "17 Hydroxyprogesterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "A1ATR": { + "code": "A1ATR", + "display": "Alpha-1-antitrypsin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ACA": { + "code": "ACA", + "display": "Anti-Centromere Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ACE": { + "code": "ACE", + "display": "Angiotensin Converting Enzyme", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ACERA": { + "code": "ACERA", + "display": "Acetylcholine Receptor Ab's", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ACLA": { + "code": "ACLA", + "display": "Anti-Cardiolipin Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ACOLA": { + "code": "ACOLA", + "display": "Anti-Collagen Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ACTH": { + "code": "ACTH", + "display": "Adrenocorticotrophic Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ADENO": { + "code": "ADENO", + "display": "ADENO", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ADNA": { + "code": "ADNA", + "display": "Anti-Double Stranded DNA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ALDOS": { + "code": "ALDOS", + "display": "Aldosterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AMITA": { + "code": "AMITA", + "display": "Anti-Mitochondrial Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AMYU": { + "code": "AMYU", + "display": "Urine Amylase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ANA": { + "code": "ANA", + "display": "Anti-Nuclear Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ANCA": { + "code": "ANCA", + "display": "Anti-Neutrophil Cytoplasmic Ab", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ANDRO": { + "code": "ANDRO", + "display": "Androstenedione", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ANTBG": { + "code": "ANTBG", + "display": "Blood Group + Rh", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ANTE": { + "code": "ANTE", + "display": "Antenatal Screening", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AUR1": { + "code": "AUR1", + "display": "TB Auramine Specimen 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AUR2": { + "code": "AUR2", + "display": "TB Auramine Specimen 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AUR3": { + "code": "AUR3", + "display": "TB Auramine Specimen 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AUR4": { + "code": "AUR4", + "display": "TB Auramine Specimen 4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BFCC": { + "code": "BFCC", + "display": "Cell Count : Body Fluid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BG": { + "code": "BG", + "display": "Blood Group + Rh", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BGAS": { + "code": "BGAS", + "display": "Blood Gases", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BGRP": { + "code": "BGRP", + "display": "Blood grouping", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BHCG2": { + "code": "BHCG2", + "display": "HCG TOTAL BETA 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BM": { + "code": "BM", + "display": "Bone Marrow Report", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BNP": { + "code": "BNP", + "display": "B-Type Natriuretic Peptide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BPARA": { + "code": "BPARA", + "display": "Blood Parasite Investigation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BPARM": { + "code": "BPARM", + "display": "Blood Parasites", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "C/UP": { + "code": "C/UP", + "display": "Cutup", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "C1EST": { + "code": "C1EST", + "display": "C1 Esterase Inhibitor Assay", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CA724": { + "code": "CA724", + "display": "CA 72-4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CAERU": { + "code": "CAERU", + "display": "Caeruloplasmin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CALCI": { + "code": "CALCI", + "display": "Calcitonin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CALCT": { + "code": "CALCT", + "display": "1.25 Dihydroxy Vitamin D", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CARB": { + "code": "CARB", + "display": "S-Carbamazepine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CATS": { + "code": "CATS", + "display": "U-Catecholamines", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CHLAM": { + "code": "CHLAM", + "display": "Antibody test for Chlamydia", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CMP": { + "code": "CMP", + "display": "Calcium,Magnesium,PO4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CMV": { + "code": "CMV", + "display": "CYTOMEGALOVIRUS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CPEPT": { + "code": "CPEPT", + "display": "C-Peptide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CPROT": { + "code": "CPROT", + "display": "CSF PROTEIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CRPS": { + "code": "CRPS", + "display": "CRP Serology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CSFA": { + "code": "CSFA", + "display": "CSF Analysis", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CSFAG": { + "code": "CSFAG", + "display": "BACTERIAL ANTIGEN TESTS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CSFC": { + "code": "CSFC", + "display": "Cell Count : CSF", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CUCSF": { + "code": "CUCSF", + "display": "CULTURE : CSF", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CULFU": { + "code": "CULFU", + "display": "MYCOLOGY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CULMY": { + "code": "CULMY", + "display": "Mycology Culture", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CULPU": { + "code": "CULPU", + "display": "Culture : PUS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CULSP": { + "code": "CULSP", + "display": "Culture : Sputum", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CUTUP": { + "code": "CUTUP", + "display": "Histo Cut Up (Dummy)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CYTCO": { + "code": "CYTCO", + "display": "Gynaecological Detail", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DBILI": { + "code": "DBILI", + "display": "Conjugated Bilirubin (Direct)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DBSGE": { + "code": "DBSGE", + "display": "Dry Blood Spot Gene Xpert", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DCRT": { + "code": "DCRT", + "display": "1:20 Diluted CRT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DIFFM": { + "code": "DIFFM", + "display": "Differential Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DIFFF": { + "code": "DIFFF", + "display": "Diff Micro", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DRUGR": { + "code": "DRUGR", + "display": "Drug Resistance Testing", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DRUGS": { + "code": "DRUGS", + "display": "DRUG SCREEN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "E2M": { + "code": "E2M", + "display": "Oestradiol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "EQAM1": { + "code": "EQAM1", + "display": "Microbiology EQA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FDP": { + "code": "FDP", + "display": "Fibrinogen Deg. Products (FDP)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FE": { + "code": "FE", + "display": "S-Iron", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FERR": { + "code": "FERR", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FERRX": { + "code": "FERRX", + "display": "S-Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FGLU": { + "code": "FGLU", + "display": "Fluid-Glucose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FNA": { + "code": "FNA", + "display": "Fine Needle Biopsy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FPROT": { + "code": "FPROT", + "display": "F-Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GLOB": { + "code": "GLOB", + "display": "Globulin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GLUC": { + "code": "GLUC", + "display": "Glucose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GLUCS": { + "code": "GLUCS", + "display": "Glucose Strip", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GNBST": { + "code": "GNBST", + "display": "GNB Sensitivity Testing", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GPCST": { + "code": "GPCST", + "display": "GPC Sensitivity testing", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GROUP": { + "code": "GROUP", + "display": "Blood Group Serology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GTT2": { + "code": "GTT2", + "display": "GTT - 2 hourly", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GTT4": { + "code": "GTT4", + "display": "GTT Prolonged", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GYN": { + "code": "GYN", + "display": "Gynaecological Cytology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GYNAE": { + "code": "GYNAE", + "display": "MICROSCOPIC EXAMINATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HBELE": { + "code": "HBELE", + "display": "Haemoglobin Electrophoresis", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HBSAB": { + "code": "HBSAB", + "display": "Hepatitis B Surface Antibody", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HBSAG": { + "code": "HBSAG", + "display": "Hepatitis B Surface Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HELIC": { + "code": "HELIC", + "display": "Helicobacter pylori Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HEPAG": { + "code": "HEPAG", + "display": "Hepatitis A (IgG)(Immunity)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HEPAM": { + "code": "HEPAM", + "display": "Hepatitis A IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HEPD": { + "code": "HEPD", + "display": "HEPATITIS D INVESTIGATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HEPE": { + "code": "HEPE", + "display": "HEPATITIS E INVESTIGATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HERP": { + "code": "HERP", + "display": "Herpes simplex virus", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HGH": { + "code": "HGH", + "display": "Human Growth Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HI2DF": { + "code": "HI2DF", + "display": "HIV Viral Load (DBS)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HISIN": { + "code": "HISIN", + "display": "CLINICAL HISTORY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HISSU": { + "code": "HISSU", + "display": "Supplementary Report", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HISTO": { + "code": "HISTO", + "display": "MACROSCOPIC EXAMINATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HISTX": { + "code": "HISTX", + "display": "Histo Extended text", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIV48": { + "code": "HIV48", + "display": "CD4 + CD8*", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVA": { + "code": "HIVA", + "display": "HIV ASANTE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVC": { + "code": "HIVC", + "display": "HIV Ag/Ab Combo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVCW": { + "code": "HIVCW", + "display": "Child Welfare Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVLD": { + "code": "HIVLD", + "display": "HIV Viral Load*", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVPC": { + "code": "HIVPC", + "display": "HIV DNA PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVP": { + "code": "HIVP", + "display": "HIV RAPID TEST", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVST": { + "code": "HIVST", + "display": "HIV EID Information", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVWB": { + "code": "HIVWB", + "display": "HIV DNA PCR : Whole Blood", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HSAGR": { + "code": "HSAGR", + "display": "HepB surface antigen Rapid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HSV": { + "code": "HSV", + "display": "Herpes simplex Virus", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HVART": { + "code": "HVART", + "display": "ART Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HYS": { + "code": "HYS", + "display": "Homocysteine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ICD10": { + "code": "ICD10", + "display": "ICD10", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "IGE": { + "code": "IGE", + "display": "Total IgE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "INR": { + "code": "INR", + "display": "INR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "IRONX": { + "code": "IRONX", + "display": "S-IRON STUDIES", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LALB": { + "code": "LALB", + "display": "ALBUMIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LCHOL": { + "code": "LCHOL", + "display": "S-Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LCOT": { + "code": "LCOT", + "display": "Cotinine ELISA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LCREA": { + "code": "LCREA", + "display": "Creatinine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LESR": { + "code": "LESR", + "display": "ESR (Westergren)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LFBC": { + "code": "LFBC", + "display": "Full Blood Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LGGT": { + "code": "LGGT", + "display": "Gamma Glutamyl Transferase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LGLPF": { + "code": "LGLPF", + "display": "P-Glucose (Fasting)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LGLPR": { + "code": "LGLPR", + "display": "P-Glucose (Random)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LGLUF": { + "code": "LGLUF", + "display": "S-Glucose (Fasting)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LGLUR": { + "code": "LGLUR", + "display": "S-Glucose (Random)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LHBA1": { + "code": "LHBA1", + "display": "HbA1C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LHDL": { + "code": "LHDL", + "display": "HDL Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LI": { + "code": "LI", + "display": "S-Lithium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LIPO": { + "code": "LIPO", + "display": "Lipogram", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LRF": { + "code": "LRF", + "display": "Rheumatoid factor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LUPUS": { + "code": "LUPUS", + "display": "Lupus anticoagulant", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LUR": { + "code": "LUR", + "display": "Urea", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MALB": { + "code": "MALB", + "display": "Micro-albumin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBCAT": { + "code": "MBCAT", + "display": "Microbiology: Catheter Tip", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBCLT": { + "code": "MBCLT", + "display": "Microbiology: Catheter Line Ti", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFAM": { + "code": "MBFAM", + "display": "MICROBIOLOGY:AMNIOTIC FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFAS": { + "code": "MBFAS", + "display": "MICROBIOLOGY : ASCITIC FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFCA": { + "code": "MBFCA", + "display": "MICROBIOLOGY:PERICARDIAL FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFL": { + "code": "MBFL", + "display": "Microbiology:Body Fluid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFLU": { + "code": "MBFLU", + "display": "Microbiology:Body Fluid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFPE": { + "code": "MBFPE", + "display": "MICROBIOLOGY:PERITONEAL FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFPL": { + "code": "MBFPL", + "display": "MICROBIOLOGY:PLEURAL FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFSY": { + "code": "MBFSY", + "display": "MICROBIOLOGY:SYNOVIAL FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBTRA": { + "code": "MBTRA", + "display": "Microbiology: Tracheal Tip", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBUCT": { + "code": "MBUCT", + "display": "Microbiology: Urinary Catheter", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBUMC": { + "code": "MBUMC", + "display": "Microbiology:Umbilical Cathete", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MCES": { + "code": "MCES", + "display": "MICROBIOLOGY : CERVICAL SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MEAS": { + "code": "MEAS", + "display": "MICROBIOLOGY : EAR SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MENDC": { + "code": "MENDC", + "display": "MICROBIOLOGY:ENDOCERVICAL SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MEYE": { + "code": "MEYE", + "display": "MICROBIOLOGY : EYE SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MGAS": { + "code": "MGAS", + "display": "MICROBIOLOGY : GASTRIC ASP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MICBC": { + "code": "MICBC", + "display": "MICROBIOLOGY: BLOOD CULTURE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MICFL": { + "code": "MICFL", + "display": "MICROBIOLOGY : FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MICNS": { + "code": "MICNS", + "display": "MICROBIOLOGY : NASAL SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MICSA": { + "code": "MICSA", + "display": "Microscopy - Sexual Assault", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MICTS": { + "code": "MICTS", + "display": "MICROBIOLOGY : THROAT SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MICU": { + "code": "MICU", + "display": "MICROBIOLOGY: URINE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MONO": { + "code": "MONO", + "display": "Epstein Barr Ser-Mono Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MPEN": { + "code": "MPEN", + "display": "MICROBIOLOGY : PENILE SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MPT64": { + "code": "MPT64", + "display": "MPT64 Rapid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MPUS": { + "code": "MPUS", + "display": "MICROBIOLOGY : PUS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MRCSW": { + "code": "MRCSW", + "display": "MICROBIOLOGY : RECTAL SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MSPUT": { + "code": "MSPUT", + "display": "MICROBIOLOGY : SPUTUM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MSTRS": { + "code": "MSTRS", + "display": "MICROBIOLOGY : STOOL CULTURE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MTISS": { + "code": "MTISS", + "display": "MICROBIOLOGY : TISSUE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MUMPS": { + "code": "MUMPS", + "display": "Mumps Serology (ELISA)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MUPS": { + "code": "MUPS", + "display": "MICROBIOLOGY : URETHRAL SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MWUS": { + "code": "MWUS", + "display": "MICROBILOLOGY: Wound Swab", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MYGT": { + "code": "MYGT", + "display": "Germ Tube Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MYMIC": { + "code": "MYMIC", + "display": "Microscopy for Fungi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MYOB": { + "code": "MYOB", + "display": "Myogloblin (Serum)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "NGYN": { + "code": "NGYN", + "display": "Non-Gynaecological Cytology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MFOB": { + "code": "MFOB", + "display": "Faecal Occult Blood", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PARA": { + "code": "PARA", + "display": "Parasitology:Urine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PBILI": { + "code": "PBILI", + "display": "Neonatal Bilirubin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PBS": { + "code": "PBS", + "display": "Peripheral Blood Smear", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PCRAP": { + "code": "PCRAP", + "display": "Factor V Leiden Mutation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PCTR": { + "code": "PCTR", + "display": "Procalcitonin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PHENB": { + "code": "PHENB", + "display": "Phenobarbitone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PHENY": { + "code": "PHENY", + "display": "S-Phenytoin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PHVS": { + "code": "PHVS", + "display": "PARASITOLOGY: VAGINAL SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PLAT": { + "code": "PLAT", + "display": "Platelets", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PM": { + "code": "PM", + "display": "Post-Mortem Examination", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "POLIO": { + "code": "POLIO", + "display": "Polio Neutralisation Serology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "POSTM": { + "code": "POSTM", + "display": "POST MORTEM REPORT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "POSTX": { + "code": "POSTX", + "display": "Postmorten Supplement", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PRD": { + "code": "PRD", + "display": "Pregnandiol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PROT": { + "code": "PROT", + "display": "Total Protein & Albumin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PRT24": { + "code": "PRT24", + "display": "Urine Protein (24 hr)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PSA": { + "code": "PSA", + "display": "Prostate Specific Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PTT": { + "code": "PTT", + "display": "Part Thromboplastin Time (PTT)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RA": { + "code": "RA", + "display": "RA Latex Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RAPI2": { + "code": "RAPI2", + "display": "HIV Rapid Repeat", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RCCHE": { + "code": "RCCHE", + "display": "Cholinesterase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RH": { + "code": "RH", + "display": "RHESUS FACTOR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ROTA": { + "code": "ROTA", + "display": "Rotavirus Antigen EIA Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ROTPC": { + "code": "ROTPC", + "display": "Rotavirus: PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RUB": { + "code": "RUB", + "display": "Rubella Serology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SADA": { + "code": "SADA", + "display": "Adenosine Deaminase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SCREA": { + "code": "SCREA", + "display": "Creatinine Clearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SEICU": { + "code": "SEICU", + "display": "SENS ICU", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SENFA": { + "code": "SENFA", + "display": "ANTIBIOTIC SUSCEPTIBILITY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SENGN": { + "code": "SENGN", + "display": "ANTIBIOTIC SENS: GN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SENGP": { + "code": "SENGP", + "display": "ANTIBIOTIC SENS: GP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SENSA": { + "code": "SENSA", + "display": "ANTIBIOTIC SENS: STOOL", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SENST": { + "code": "SENST", + "display": "ANTIBIOTIC SENS: STOOL", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SENSU": { + "code": "SENSU", + "display": "ANTIBIOTIC SENS: URINE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SHBG": { + "code": "SHBG", + "display": "Sex Hormone Binding Globulin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "STDM": { + "code": "STDM", + "display": "Direct Microscopy : Stool", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "STOOL": { + "code": "STOOL", + "display": "Stool Microscopy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBA1": { + "code": "TBA1", + "display": "TB Microscopy Auramine 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBA2": { + "code": "TBA2", + "display": "TB Microscopy Auramine 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBA3": { + "code": "TBA3", + "display": "TB Microscopy Specimen 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBBA": { + "code": "TBBA", + "display": "TB Blood Agar (TB Nat Ref)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBCL": { + "code": "TBCL", + "display": "TB Culture", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBCL1": { + "code": "TBCL1", + "display": "TB Culture 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBCL2": { + "code": "TBCL2", + "display": "TB Culture 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBCL3": { + "code": "TBCL3", + "display": "TB Culture 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBCON": { + "code": "TBCON", + "display": "TB Control", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBEQA": { + "code": "TBEQA", + "display": "TB EQA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBGEN": { + "code": "TBGEN", + "display": "TB Genexpert", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBHCG": { + "code": "TBHCG", + "display": "S-HCG Total Beta", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBILI": { + "code": "TBILI", + "display": "S-Total Bilirubin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBINF": { + "code": "TBINF", + "display": "TB Diagnosis Information", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLP1": { + "code": "TBLP1", + "display": "TB Line Probe SP1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLP2": { + "code": "TBLP2", + "display": "TB Line Probe SP2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLP3": { + "code": "TBLP3", + "display": "TB Line Probe SP3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLP": { + "code": "TBLP", + "display": "TB First Line -Line Probe Assay", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLPS": { + "code": "TBLPS", + "display": "TB Second Line -Line Probe Assay", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLSF": { + "code": "TBLSF", + "display": "2nd Line Probe Assay Final", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBPC1": { + "code": "TBPC1", + "display": "TB PCR Specimen 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBPC2": { + "code": "TBPC2", + "display": "TB PCR Specimen 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBPC3": { + "code": "TBPC3", + "display": "TB PCR Specimen 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBRAP": { + "code": "TBRAP", + "display": "TB Capilia Rapid Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBRP1": { + "code": "TBRP1", + "display": "TB Capilia Rapid ID Test SP1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBRP2": { + "code": "TBRP2", + "display": "TB Capilia Rapid ID Test SP2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBRP3": { + "code": "TBRP3", + "display": "TB Capilia Rapid ID Test SP3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSF1": { + "code": "TBSF1", + "display": "TB First Line Sens 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSF2": { + "code": "TBSF2", + "display": "TB First Line Sens 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSF3": { + "code": "TBSF3", + "display": "TB First Line Sens 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSFF": { + "code": "TBSFF", + "display": "TB First Line Sens Final", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSS": { + "code": "TBSS", + "display": "TB Second Line DST", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSS2": { + "code": "TBSS2", + "display": "TB Seconde Line Sens 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSS3": { + "code": "TBSS3", + "display": "TB Seconde Line Sens 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSSF": { + "code": "TBSSF", + "display": "TB Second Line Final", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZ": { + "code": "TBZ", + "display": "TBZN TB National Ref Lab", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZ1": { + "code": "TBZ1", + "display": "TB Direct Microscopy Spec. 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZ2": { + "code": "TBZ2", + "display": "TB Direct Microscopy Spec. 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZ3": { + "code": "TBZ3", + "display": "TB Direct Microscopy Spec. 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZN": { + "code": "TBZN", + "display": "TB Smear Microscopy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZN1": { + "code": "TBZN1", + "display": "TBZN SP1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZN2": { + "code": "TBZN2", + "display": "TBZN SP2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZN3": { + "code": "TBZN3", + "display": "TBZN SP3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "THCGB": { + "code": "THCGB", + "display": "S-TOTAL HCG Beta", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TT3": { + "code": "TT3", + "display": "Total Tri-iodothyronine (TT3)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TTA": { + "code": "TTA", + "display": "Tetanus Serology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LURIC": { + "code": "LURIC", + "display": "Uric Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UBHCG": { + "code": "UBHCG", + "display": "Urine Beta-HCG (Preg Test)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UBJP": { + "code": "UBJP", + "display": "Urine Bence Jones Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UCREA": { + "code": "UCREA", + "display": "Creatine Clearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UCUL": { + "code": "UCUL", + "display": "CULTURE : Urine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UE": { + "code": "UE", + "display": "Urea & electrolytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UECA": { + "code": "UECA", + "display": "Urea, Electrolytes & Creatinin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UECA+": { + "code": "UECA+", + "display": "Urea, Elec, Creat & eGFR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UMAC": { + "code": "UMAC", + "display": "MACROSCOPY : Urine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UMIC": { + "code": "UMIC", + "display": "MICROSCOPY : Urine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UPREG": { + "code": "UPREG", + "display": "Urine Pregnancy Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UPROT": { + "code": "UPROT", + "display": "Total Protein (Urine)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UREA": { + "code": "UREA", + "display": "Urea", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "VALPR": { + "code": "VALPR", + "display": "S-Valproate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "VDRL": { + "code": "VDRL", + "display": "VDRL", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "VLPOC": { + "code": "VLPOC", + "display": "HIV VIRAL LOAD (POC)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "VMAC": { + "code": "VMAC", + "display": "Vanillylmandelic Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "VZV": { + "code": "VZV", + "display": "VARICELLA-ZOSTER SEROLOGY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "WBCP": { + "code": "WBCP", + "display": "White Cell Count + Platelets", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "WCC": { + "code": "WCC", + "display": "White Cell Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "WF": { + "code": "WF", + "display": "WEIL FELIX", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "YELLO": { + "code": "YELLO", + "display": "Yellow Fever", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ZN": { + "code": "ZN", + "display": "TBZN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ZN2": { + "code": "ZN2", + "display": "Smear Microscopy 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ZN3": { + "code": "ZN3", + "display": "TBZN Specimen 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSF": { + "code": "TBSF", + "display": "TB First Line DST", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "QHCG": { + "code": "QHCG", + "display": "Quantitative Beta-HCG (Blood)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CVID": { + "code": "CVID", + "display": "PCR SARS-CoV-2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CVRP": { + "code": "CVRP", + "display": "COVID-19 Ag Rapid Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MEASL": { + "code": "MEASL", + "display": "Measles", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestCodeVS": { + "CD4": { + "code": "CD4", + "display": "CD4 Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AST": { + "code": "AST", + "display": "AST (Aspartate Transaminase)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CREA": { + "code": "CREA", + "display": "Creatinine ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HB": { + "code": "HB", + "display": "Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LFT": { + "code": "LFT", + "display": "Liver Function Tests - Profile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVVL": { + "code": "HIVVL", + "display": "HIV Viral Load (Plasma)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ICUP": { + "code": "ICUP", + "display": "ICU- Profile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GGT": { + "code": "GGT", + "display": "Gamma-Glutamyl Transferase GGT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "KFT": { + "code": "KFT", + "display": "Kidney Function Test - Profile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CARDE": { + "code": "CARDE", + "display": "Cardiac Enzymes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ART": { + "code": "ART", + "display": "ART Baseline - Profile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ELECT": { + "code": "ELECT", + "display": "Electrolytes - Profile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GLUCF": { + "code": "GLUCF", + "display": "Glucose (Fasting)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GLUCR": { + "code": "GLUCR", + "display": "Glucose (Random)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GTT": { + "code": "GTT", + "display": "Glucose Tolerance Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CL": { + "code": "CL", + "display": "S-Chloride", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "K": { + "code": "K", + "display": "S-Potassium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "NA": { + "code": "NA", + "display": "S-Sodium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CO2": { + "code": "CO2", + "display": "S-Carbon Dioxide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UA": { + "code": "UA", + "display": "Uric Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CREAC": { + "code": "CREAC", + "display": "Creatinine Clearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBIL": { + "code": "TBIL", + "display": "Total Bilirubin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BILI": { + "code": "BILI", + "display": "Total and Direct Bilirubin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ALP": { + "code": "ALP", + "display": "Alkaline Phosphatase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ALT": { + "code": "ALT", + "display": "ALT (Alanine Aminotransferase)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ALB": { + "code": "ALB", + "display": "Albumin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TPROT": { + "code": "TPROT", + "display": "Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CK": { + "code": "CK", + "display": "Creatine Kinase (CK)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CKMB": { + "code": "CKMB", + "display": "Creatine Kinase (MB-Frac)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MYOG": { + "code": "MYOG", + "display": "Myoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TROPI": { + "code": "TROPI", + "display": "S-Troponin I", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MAG": { + "code": "MAG", + "display": "S-Magnesium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PO4": { + "code": "PO4", + "display": "Phosphate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CAL": { + "code": "CAL", + "display": "S-Calcium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LDH": { + "code": "LDH", + "display": "Lactate Dehydrogenase (LD)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TRIG": { + "code": "TRIG", + "display": "Triglyceride", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LDL": { + "code": "LDL", + "display": "LDL - Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HDL": { + "code": "HDL", + "display": "HDL - Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CHOL": { + "code": "CHOL", + "display": "Total Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AMY": { + "code": "AMY", + "display": "Serum Amylase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LACT": { + "code": "LACT", + "display": "Lactate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CRP": { + "code": "CRP", + "display": "C-Reactive Protein (CRP)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LIPAS": { + "code": "LIPAS", + "display": "Lipase (Serum)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HBA1C": { + "code": "HBA1C", + "display": "Glycated Haemoglobin (HbA1C)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "M-TP": { + "code": "M-TP", + "display": "Micro Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FBC": { + "code": "FBC", + "display": "FBC (Full Blood Count)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DIFF": { + "code": "DIFF", + "display": "Differential Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ESR": { + "code": "ESR", + "display": "ESR (Westergren)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RET": { + "code": "RET", + "display": "Reticulocyte Studies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "COOMB": { + "code": "COOMB", + "display": "Coombs Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SICKL": { + "code": "SICKL", + "display": "Sickle Cells Screen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MAL": { + "code": "MAL", + "display": "Malaria", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MALPC": { + "code": "MALPC", + "display": "Malaria: PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MALS": { + "code": "MALS", + "display": "Malaria Smear: Parasitemia", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PT": { + "code": "PT", + "display": "Prothrombin Time(INR/PI)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "APTT": { + "code": "APTT", + "display": "Partial Thromboplastin Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PI": { + "code": "PI", + "display": "Prothrombin Time (INR/PI)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BTIME": { + "code": "BTIME", + "display": "Bleeding Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DDIME": { + "code": "DDIME", + "display": "D-Dimer", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TFT": { + "code": "TFT", + "display": "Thyroid Function Tests ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "T3": { + "code": "T3", + "display": "Free Tri-iodothyronine (FT3)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "T4": { + "code": "T4", + "display": "Free Thyroxine (T4)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TSH": { + "code": "TSH", + "display": "Thyroid Stimulating Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LH": { + "code": "LH", + "display": "Luteinising Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FSH": { + "code": "FSH", + "display": "Follicle Stimulating Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "E2": { + "code": "E2", + "display": "17 b Oestradial (E2)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PROG": { + "code": "PROG", + "display": "Progesterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PRL": { + "code": "PRL", + "display": "Prolactin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TESTO": { + "code": "TESTO", + "display": "Testosterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CORT": { + "code": "CORT", + "display": "Cortisol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PTH": { + "code": "PTH", + "display": "Parathyroid Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HCGSU": { + "code": "HCGSU", + "display": "Qualitative -HCG (Urine)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HCGSB": { + "code": "HCGSB", + "display": "Qualitative  -HCG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ABORH": { + "code": "ABORH", + "display": "ABO + Rh Group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RPR": { + "code": "RPR", + "display": "Syphilis RPR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TPHA": { + "code": "TPHA", + "display": "TPHA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PSSA": { + "code": "PSSA", + "display": "ANTIBIOTIC SENS: PSA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BHCG": { + "code": "BHCG", + "display": "Beta-HCG (Pregnancy Test)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AFP": { + "code": "AFP", + "display": "Alfa Feto Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CA153": { + "code": "CA153", + "display": "CA15-3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CA125": { + "code": "CA125", + "display": "CA125", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CEA": { + "code": "CEA", + "display": "Carcino-embryonic Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CA199": { + "code": "CA199", + "display": "CA19-9", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GRAM": { + "code": "GRAM", + "display": "MICROBIOLOGY : GRAM STAIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MCSF": { + "code": "MCSF", + "display": "MICROBIOLOGY : CSF", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CSF": { + "code": "CSF", + "display": "CSF Chem Profile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CRINK": { + "code": "CRINK", + "display": "India Ink Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SEMEN": { + "code": "SEMEN", + "display": "Semen Analysis", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVR": { + "code": "HIVR", + "display": "HIV Rapid Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVE": { + "code": "HIVE", + "display": "HIV ELISA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIPOC": { + "code": "HIPOC", + "display": "Point of Care DNA PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LCRAG": { + "code": "LCRAG", + "display": "LFA Cryptococal Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TOXO": { + "code": "TOXO", + "display": "Toxoplasmosis Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HELIP": { + "code": "HELIP", + "display": "MICROBIOLOGY : H.pylori", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HEAG": { + "code": "HEAG", + "display": "Hepatitis A IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HBCAB": { + "code": "HBCAB", + "display": "Hepatitis B Core Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HEPC": { + "code": "HEPC", + "display": "Hepatitis C Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "QCRPR": { + "code": "QCRPR", + "display": "QC RPR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "WIDAL": { + "code": "WIDAL", + "display": "Widal", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RF": { + "code": "RF", + "display": "Rheumatoid Factor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ASOT": { + "code": "ASOT", + "display": "Anti-Streptolysin O Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "XMAT": { + "code": "XMAT", + "display": "Cross Match", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HLAX": { + "code": "HLAX", + "display": "Grouping/Crossmatch", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ANISC": { + "code": "ANISC", + "display": "Antibody Screening (^Bbloodban", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DCT": { + "code": "DCT", + "display": "Direct Coombs Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ICT": { + "code": "ICT", + "display": "Indirect Coomb's Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "IGGS": { + "code": "IGGS", + "display": "IMMUNOGLOBULINS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ZN1": { + "code": "ZN1", + "display": "Smear Microscopy 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CUBFL": { + "code": "CUBFL", + "display": "Culture : Body Fuilds", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVGE": { + "code": "HIVGE", + "display": "HIV GENE XPERT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TROPT": { + "code": "TROPT", + "display": "Troponin-T", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UCHEM": { + "code": "UCHEM", + "display": "Biochemistry : Urine (Dipstick)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CRAG": { + "code": "CRAG", + "display": "CRAG (CSF)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CRGLF": { + "code": "CRGLF", + "display": "CRAG (LFA) Blood", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLAM": { + "code": "TBLAM", + "display": "TB LAM Ag TEST", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "17OPH": { + "code": "17OPH", + "display": "17 Hydroxyprogesterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "A1ATR": { + "code": "A1ATR", + "display": "Alpha-1-antitrypsin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ACA": { + "code": "ACA", + "display": "Anti-Centromere Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ACE": { + "code": "ACE", + "display": "Angiotensin Converting Enzyme", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ACERA": { + "code": "ACERA", + "display": "Acetylcholine Receptor Ab's", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ACLA": { + "code": "ACLA", + "display": "Anti-Cardiolipin Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ACOLA": { + "code": "ACOLA", + "display": "Anti-Collagen Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ACTH": { + "code": "ACTH", + "display": "Adrenocorticotrophic Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ADENO": { + "code": "ADENO", + "display": "ADENO", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ADNA": { + "code": "ADNA", + "display": "Anti-Double Stranded DNA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ALDOS": { + "code": "ALDOS", + "display": "Aldosterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AMITA": { + "code": "AMITA", + "display": "Anti-Mitochondrial Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AMYU": { + "code": "AMYU", + "display": "Urine Amylase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ANA": { + "code": "ANA", + "display": "Anti-Nuclear Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ANCA": { + "code": "ANCA", + "display": "Anti-Neutrophil Cytoplasmic Ab", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ANDRO": { + "code": "ANDRO", + "display": "Androstenedione", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ANTBG": { + "code": "ANTBG", + "display": "Blood Group + Rh", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ANTE": { + "code": "ANTE", + "display": "Antenatal Screening", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AUR1": { + "code": "AUR1", + "display": "TB Auramine Specimen 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AUR2": { + "code": "AUR2", + "display": "TB Auramine Specimen 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AUR3": { + "code": "AUR3", + "display": "TB Auramine Specimen 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "AUR4": { + "code": "AUR4", + "display": "TB Auramine Specimen 4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BFCC": { + "code": "BFCC", + "display": "Cell Count : Body Fluid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BG": { + "code": "BG", + "display": "Blood Group + Rh", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BGAS": { + "code": "BGAS", + "display": "Blood Gases", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BGRP": { + "code": "BGRP", + "display": "Blood grouping", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BHCG2": { + "code": "BHCG2", + "display": "HCG TOTAL BETA 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BM": { + "code": "BM", + "display": "Bone Marrow Report", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BNP": { + "code": "BNP", + "display": "B-Type Natriuretic Peptide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BPARA": { + "code": "BPARA", + "display": "Blood Parasite Investigation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "BPARM": { + "code": "BPARM", + "display": "Blood Parasites", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "C/UP": { + "code": "C/UP", + "display": "Cutup", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "C1EST": { + "code": "C1EST", + "display": "C1 Esterase Inhibitor Assay", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CA724": { + "code": "CA724", + "display": "CA 72-4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CAERU": { + "code": "CAERU", + "display": "Caeruloplasmin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CALCI": { + "code": "CALCI", + "display": "Calcitonin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CALCT": { + "code": "CALCT", + "display": "1.25 Dihydroxy Vitamin D", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CARB": { + "code": "CARB", + "display": "S-Carbamazepine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CATS": { + "code": "CATS", + "display": "U-Catecholamines", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CHLAM": { + "code": "CHLAM", + "display": "Antibody test for Chlamydia", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CMP": { + "code": "CMP", + "display": "Calcium,Magnesium,PO4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CMV": { + "code": "CMV", + "display": "CYTOMEGALOVIRUS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CPEPT": { + "code": "CPEPT", + "display": "C-Peptide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CPROT": { + "code": "CPROT", + "display": "CSF PROTEIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CRPS": { + "code": "CRPS", + "display": "CRP Serology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CSFA": { + "code": "CSFA", + "display": "CSF Analysis", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CSFAG": { + "code": "CSFAG", + "display": "BACTERIAL ANTIGEN TESTS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CSFC": { + "code": "CSFC", + "display": "Cell Count : CSF", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CUCSF": { + "code": "CUCSF", + "display": "CULTURE : CSF", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CULFU": { + "code": "CULFU", + "display": "MYCOLOGY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CULMY": { + "code": "CULMY", + "display": "Mycology Culture", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CULPU": { + "code": "CULPU", + "display": "Culture : PUS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CULSP": { + "code": "CULSP", + "display": "Culture : Sputum", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CUTUP": { + "code": "CUTUP", + "display": "Histo Cut Up (Dummy)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CYTCO": { + "code": "CYTCO", + "display": "Gynaecological Detail", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DBILI": { + "code": "DBILI", + "display": "Conjugated Bilirubin (Direct)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DBSGE": { + "code": "DBSGE", + "display": "Dry Blood Spot Gene Xpert", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DCRT": { + "code": "DCRT", + "display": "1:20 Diluted CRT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DIFFM": { + "code": "DIFFM", + "display": "Differential Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DIFFF": { + "code": "DIFFF", + "display": "Diff Micro", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DRUGR": { + "code": "DRUGR", + "display": "Drug Resistance Testing", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "DRUGS": { + "code": "DRUGS", + "display": "DRUG SCREEN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "E2M": { + "code": "E2M", + "display": "Oestradiol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "EQAM1": { + "code": "EQAM1", + "display": "Microbiology EQA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FDP": { + "code": "FDP", + "display": "Fibrinogen Deg. Products (FDP)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FE": { + "code": "FE", + "display": "S-Iron", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FERR": { + "code": "FERR", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FERRX": { + "code": "FERRX", + "display": "S-Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FGLU": { + "code": "FGLU", + "display": "Fluid-Glucose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FNA": { + "code": "FNA", + "display": "Fine Needle Biopsy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "FPROT": { + "code": "FPROT", + "display": "F-Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GLOB": { + "code": "GLOB", + "display": "Globulin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GLUC": { + "code": "GLUC", + "display": "Glucose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GLUCS": { + "code": "GLUCS", + "display": "Glucose Strip", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GNBST": { + "code": "GNBST", + "display": "GNB Sensitivity Testing", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GPCST": { + "code": "GPCST", + "display": "GPC Sensitivity testing", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GROUP": { + "code": "GROUP", + "display": "Blood Group Serology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GTT2": { + "code": "GTT2", + "display": "GTT - 2 hourly", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GTT4": { + "code": "GTT4", + "display": "GTT Prolonged", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GYN": { + "code": "GYN", + "display": "Gynaecological Cytology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "GYNAE": { + "code": "GYNAE", + "display": "MICROSCOPIC EXAMINATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HBELE": { + "code": "HBELE", + "display": "Haemoglobin Electrophoresis", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HBSAB": { + "code": "HBSAB", + "display": "Hepatitis B Surface Antibody", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HBSAG": { + "code": "HBSAG", + "display": "Hepatitis B Surface Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HELIC": { + "code": "HELIC", + "display": "Helicobacter pylori Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HEPAG": { + "code": "HEPAG", + "display": "Hepatitis A (IgG)(Immunity)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HEPAM": { + "code": "HEPAM", + "display": "Hepatitis A IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HEPD": { + "code": "HEPD", + "display": "HEPATITIS D INVESTIGATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HEPE": { + "code": "HEPE", + "display": "HEPATITIS E INVESTIGATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HERP": { + "code": "HERP", + "display": "Herpes simplex virus", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HGH": { + "code": "HGH", + "display": "Human Growth Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HI2DF": { + "code": "HI2DF", + "display": "HIV Viral Load (DBS)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HISIN": { + "code": "HISIN", + "display": "CLINICAL HISTORY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HISSU": { + "code": "HISSU", + "display": "Supplementary Report", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HISTO": { + "code": "HISTO", + "display": "MACROSCOPIC EXAMINATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HISTX": { + "code": "HISTX", + "display": "Histo Extended text", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIV48": { + "code": "HIV48", + "display": "CD4 + CD8*", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVA": { + "code": "HIVA", + "display": "HIV ASANTE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVC": { + "code": "HIVC", + "display": "HIV Ag/Ab Combo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVCW": { + "code": "HIVCW", + "display": "Child Welfare Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVLD": { + "code": "HIVLD", + "display": "HIV Viral Load*", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVPC": { + "code": "HIVPC", + "display": "HIV DNA PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVP": { + "code": "HIVP", + "display": "HIV RAPID TEST", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVST": { + "code": "HIVST", + "display": "HIV EID Information", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HIVWB": { + "code": "HIVWB", + "display": "HIV DNA PCR : Whole Blood", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HSAGR": { + "code": "HSAGR", + "display": "HepB surface antigen Rapid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HSV": { + "code": "HSV", + "display": "Herpes simplex Virus", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HVART": { + "code": "HVART", + "display": "ART Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "HYS": { + "code": "HYS", + "display": "Homocysteine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ICD10": { + "code": "ICD10", + "display": "ICD10", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "IGE": { + "code": "IGE", + "display": "Total IgE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "INR": { + "code": "INR", + "display": "INR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "IRONX": { + "code": "IRONX", + "display": "S-IRON STUDIES", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LALB": { + "code": "LALB", + "display": "ALBUMIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LCHOL": { + "code": "LCHOL", + "display": "S-Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LCOT": { + "code": "LCOT", + "display": "Cotinine ELISA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LCREA": { + "code": "LCREA", + "display": "Creatinine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LESR": { + "code": "LESR", + "display": "ESR (Westergren)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LFBC": { + "code": "LFBC", + "display": "Full Blood Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LGGT": { + "code": "LGGT", + "display": "Gamma Glutamyl Transferase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LGLPF": { + "code": "LGLPF", + "display": "P-Glucose (Fasting)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LGLPR": { + "code": "LGLPR", + "display": "P-Glucose (Random)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LGLUF": { + "code": "LGLUF", + "display": "S-Glucose (Fasting)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LGLUR": { + "code": "LGLUR", + "display": "S-Glucose (Random)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LHBA1": { + "code": "LHBA1", + "display": "HbA1C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LHDL": { + "code": "LHDL", + "display": "HDL Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LI": { + "code": "LI", + "display": "S-Lithium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LIPO": { + "code": "LIPO", + "display": "Lipogram", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LRF": { + "code": "LRF", + "display": "Rheumatoid factor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LUPUS": { + "code": "LUPUS", + "display": "Lupus anticoagulant", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LUR": { + "code": "LUR", + "display": "Urea", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MALB": { + "code": "MALB", + "display": "Micro-albumin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBCAT": { + "code": "MBCAT", + "display": "Microbiology: Catheter Tip", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBCLT": { + "code": "MBCLT", + "display": "Microbiology: Catheter Line Ti", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFAM": { + "code": "MBFAM", + "display": "MICROBIOLOGY:AMNIOTIC FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFAS": { + "code": "MBFAS", + "display": "MICROBIOLOGY : ASCITIC FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFCA": { + "code": "MBFCA", + "display": "MICROBIOLOGY:PERICARDIAL FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFL": { + "code": "MBFL", + "display": "Microbiology:Body Fluid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFLU": { + "code": "MBFLU", + "display": "Microbiology:Body Fluid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFPE": { + "code": "MBFPE", + "display": "MICROBIOLOGY:PERITONEAL FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFPL": { + "code": "MBFPL", + "display": "MICROBIOLOGY:PLEURAL FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBFSY": { + "code": "MBFSY", + "display": "MICROBIOLOGY:SYNOVIAL FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBTRA": { + "code": "MBTRA", + "display": "Microbiology: Tracheal Tip", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBUCT": { + "code": "MBUCT", + "display": "Microbiology: Urinary Catheter", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MBUMC": { + "code": "MBUMC", + "display": "Microbiology:Umbilical Cathete", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MCES": { + "code": "MCES", + "display": "MICROBIOLOGY : CERVICAL SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MEAS": { + "code": "MEAS", + "display": "MICROBIOLOGY : EAR SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MENDC": { + "code": "MENDC", + "display": "MICROBIOLOGY:ENDOCERVICAL SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MEYE": { + "code": "MEYE", + "display": "MICROBIOLOGY : EYE SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MGAS": { + "code": "MGAS", + "display": "MICROBIOLOGY : GASTRIC ASP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MICBC": { + "code": "MICBC", + "display": "MICROBIOLOGY: BLOOD CULTURE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MICFL": { + "code": "MICFL", + "display": "MICROBIOLOGY : FLUID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MICNS": { + "code": "MICNS", + "display": "MICROBIOLOGY : NASAL SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MICSA": { + "code": "MICSA", + "display": "Microscopy - Sexual Assault", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MICTS": { + "code": "MICTS", + "display": "MICROBIOLOGY : THROAT SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MICU": { + "code": "MICU", + "display": "MICROBIOLOGY: URINE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MONO": { + "code": "MONO", + "display": "Epstein Barr Ser-Mono Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MPEN": { + "code": "MPEN", + "display": "MICROBIOLOGY : PENILE SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MPT64": { + "code": "MPT64", + "display": "MPT64 Rapid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MPUS": { + "code": "MPUS", + "display": "MICROBIOLOGY : PUS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MRCSW": { + "code": "MRCSW", + "display": "MICROBIOLOGY : RECTAL SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MSPUT": { + "code": "MSPUT", + "display": "MICROBIOLOGY : SPUTUM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MSTRS": { + "code": "MSTRS", + "display": "MICROBIOLOGY : STOOL CULTURE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MTISS": { + "code": "MTISS", + "display": "MICROBIOLOGY : TISSUE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MUMPS": { + "code": "MUMPS", + "display": "Mumps Serology (ELISA)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MUPS": { + "code": "MUPS", + "display": "MICROBIOLOGY : URETHRAL SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MWUS": { + "code": "MWUS", + "display": "MICROBILOLOGY: Wound Swab", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MYGT": { + "code": "MYGT", + "display": "Germ Tube Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MYMIC": { + "code": "MYMIC", + "display": "Microscopy for Fungi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MYOB": { + "code": "MYOB", + "display": "Myogloblin (Serum)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "NGYN": { + "code": "NGYN", + "display": "Non-Gynaecological Cytology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MFOB": { + "code": "MFOB", + "display": "Faecal Occult Blood", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PARA": { + "code": "PARA", + "display": "Parasitology:Urine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PBILI": { + "code": "PBILI", + "display": "Neonatal Bilirubin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PBS": { + "code": "PBS", + "display": "Peripheral Blood Smear", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PCRAP": { + "code": "PCRAP", + "display": "Factor V Leiden Mutation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PCTR": { + "code": "PCTR", + "display": "Procalcitonin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PHENB": { + "code": "PHENB", + "display": "Phenobarbitone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PHENY": { + "code": "PHENY", + "display": "S-Phenytoin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PHVS": { + "code": "PHVS", + "display": "PARASITOLOGY: VAGINAL SWAB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PLAT": { + "code": "PLAT", + "display": "Platelets", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PM": { + "code": "PM", + "display": "Post-Mortem Examination", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "POLIO": { + "code": "POLIO", + "display": "Polio Neutralisation Serology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "POSTM": { + "code": "POSTM", + "display": "POST MORTEM REPORT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "POSTX": { + "code": "POSTX", + "display": "Postmorten Supplement", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PRD": { + "code": "PRD", + "display": "Pregnandiol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PROT": { + "code": "PROT", + "display": "Total Protein & Albumin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PRT24": { + "code": "PRT24", + "display": "Urine Protein (24 hr)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PSA": { + "code": "PSA", + "display": "Prostate Specific Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "PTT": { + "code": "PTT", + "display": "Part Thromboplastin Time (PTT)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RA": { + "code": "RA", + "display": "RA Latex Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RAPI2": { + "code": "RAPI2", + "display": "HIV Rapid Repeat", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RCCHE": { + "code": "RCCHE", + "display": "Cholinesterase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RH": { + "code": "RH", + "display": "RHESUS FACTOR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ROTA": { + "code": "ROTA", + "display": "Rotavirus Antigen EIA Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ROTPC": { + "code": "ROTPC", + "display": "Rotavirus: PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "RUB": { + "code": "RUB", + "display": "Rubella Serology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SADA": { + "code": "SADA", + "display": "Adenosine Deaminase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SCREA": { + "code": "SCREA", + "display": "Creatinine Clearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SEICU": { + "code": "SEICU", + "display": "SENS ICU", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SENFA": { + "code": "SENFA", + "display": "ANTIBIOTIC SUSCEPTIBILITY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SENGN": { + "code": "SENGN", + "display": "ANTIBIOTIC SENS: GN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SENGP": { + "code": "SENGP", + "display": "ANTIBIOTIC SENS: GP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SENSA": { + "code": "SENSA", + "display": "ANTIBIOTIC SENS: STOOL", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SENST": { + "code": "SENST", + "display": "ANTIBIOTIC SENS: STOOL", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SENSU": { + "code": "SENSU", + "display": "ANTIBIOTIC SENS: URINE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "SHBG": { + "code": "SHBG", + "display": "Sex Hormone Binding Globulin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "STDM": { + "code": "STDM", + "display": "Direct Microscopy : Stool", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "STOOL": { + "code": "STOOL", + "display": "Stool Microscopy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBA1": { + "code": "TBA1", + "display": "TB Microscopy Auramine 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBA2": { + "code": "TBA2", + "display": "TB Microscopy Auramine 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBA3": { + "code": "TBA3", + "display": "TB Microscopy Specimen 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBBA": { + "code": "TBBA", + "display": "TB Blood Agar (TB Nat Ref)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBCL": { + "code": "TBCL", + "display": "TB Culture", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBCL1": { + "code": "TBCL1", + "display": "TB Culture 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBCL2": { + "code": "TBCL2", + "display": "TB Culture 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBCL3": { + "code": "TBCL3", + "display": "TB Culture 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBCON": { + "code": "TBCON", + "display": "TB Control", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBEQA": { + "code": "TBEQA", + "display": "TB EQA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBGEN": { + "code": "TBGEN", + "display": "TB Genexpert", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBHCG": { + "code": "TBHCG", + "display": "S-HCG Total Beta", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBILI": { + "code": "TBILI", + "display": "S-Total Bilirubin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBINF": { + "code": "TBINF", + "display": "TB Diagnosis Information", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLP1": { + "code": "TBLP1", + "display": "TB Line Probe SP1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLP2": { + "code": "TBLP2", + "display": "TB Line Probe SP2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLP3": { + "code": "TBLP3", + "display": "TB Line Probe SP3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLP": { + "code": "TBLP", + "display": "TB First Line -Line Probe Assay", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLPS": { + "code": "TBLPS", + "display": "TB Second Line -Line Probe Assay", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBLSF": { + "code": "TBLSF", + "display": "2nd Line Probe Assay Final", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBPC1": { + "code": "TBPC1", + "display": "TB PCR Specimen 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBPC2": { + "code": "TBPC2", + "display": "TB PCR Specimen 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBPC3": { + "code": "TBPC3", + "display": "TB PCR Specimen 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBRAP": { + "code": "TBRAP", + "display": "TB Capilia Rapid Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBRP1": { + "code": "TBRP1", + "display": "TB Capilia Rapid ID Test SP1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBRP2": { + "code": "TBRP2", + "display": "TB Capilia Rapid ID Test SP2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBRP3": { + "code": "TBRP3", + "display": "TB Capilia Rapid ID Test SP3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSF1": { + "code": "TBSF1", + "display": "TB First Line Sens 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSF2": { + "code": "TBSF2", + "display": "TB First Line Sens 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSF3": { + "code": "TBSF3", + "display": "TB First Line Sens 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSFF": { + "code": "TBSFF", + "display": "TB First Line Sens Final", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSS": { + "code": "TBSS", + "display": "TB Second Line DST", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSS2": { + "code": "TBSS2", + "display": "TB Seconde Line Sens 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSS3": { + "code": "TBSS3", + "display": "TB Seconde Line Sens 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSSF": { + "code": "TBSSF", + "display": "TB Second Line Final", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZ": { + "code": "TBZ", + "display": "TBZN TB National Ref Lab", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZ1": { + "code": "TBZ1", + "display": "TB Direct Microscopy Spec. 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZ2": { + "code": "TBZ2", + "display": "TB Direct Microscopy Spec. 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZ3": { + "code": "TBZ3", + "display": "TB Direct Microscopy Spec. 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZN": { + "code": "TBZN", + "display": "TB Smear Microscopy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZN1": { + "code": "TBZN1", + "display": "TBZN SP1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZN2": { + "code": "TBZN2", + "display": "TBZN SP2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBZN3": { + "code": "TBZN3", + "display": "TBZN SP3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "THCGB": { + "code": "THCGB", + "display": "S-TOTAL HCG Beta", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TT3": { + "code": "TT3", + "display": "Total Tri-iodothyronine (TT3)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TTA": { + "code": "TTA", + "display": "Tetanus Serology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "LURIC": { + "code": "LURIC", + "display": "Uric Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UBHCG": { + "code": "UBHCG", + "display": "Urine Beta-HCG (Preg Test)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UBJP": { + "code": "UBJP", + "display": "Urine Bence Jones Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UCREA": { + "code": "UCREA", + "display": "Creatine Clearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UCUL": { + "code": "UCUL", + "display": "CULTURE : Urine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UE": { + "code": "UE", + "display": "Urea & electrolytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UECA": { + "code": "UECA", + "display": "Urea, Electrolytes & Creatinin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UECA+": { + "code": "UECA+", + "display": "Urea, Elec, Creat & eGFR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UMAC": { + "code": "UMAC", + "display": "MACROSCOPY : Urine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UMIC": { + "code": "UMIC", + "display": "MICROSCOPY : Urine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UPREG": { + "code": "UPREG", + "display": "Urine Pregnancy Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UPROT": { + "code": "UPROT", + "display": "Total Protein (Urine)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "UREA": { + "code": "UREA", + "display": "Urea", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "VALPR": { + "code": "VALPR", + "display": "S-Valproate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "VDRL": { + "code": "VDRL", + "display": "VDRL", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "VLPOC": { + "code": "VLPOC", + "display": "HIV VIRAL LOAD (POC)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "VMAC": { + "code": "VMAC", + "display": "Vanillylmandelic Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "VZV": { + "code": "VZV", + "display": "VARICELLA-ZOSTER SEROLOGY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "WBCP": { + "code": "WBCP", + "display": "White Cell Count + Platelets", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "WCC": { + "code": "WCC", + "display": "White Cell Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "WF": { + "code": "WF", + "display": "WEIL FELIX", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "YELLO": { + "code": "YELLO", + "display": "Yellow Fever", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ZN": { + "code": "ZN", + "display": "TBZN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ZN2": { + "code": "ZN2", + "display": "Smear Microscopy 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "ZN3": { + "code": "ZN3", + "display": "TBZN Specimen 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "TBSF": { + "code": "TBSF", + "display": "TB First Line DST", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "QHCG": { + "code": "QHCG", + "display": "Quantitative Beta-HCG (Blood)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CVID": { + "code": "CVID", + "display": "PCR SARS-CoV-2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "CVRP": { + "code": "CVRP", + "display": "COVID-19 Ag Rapid Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + }, + "MEASL": { + "code": "MEASL", + "display": "Measles", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS": { + "tbds": { + "code": "tbds", + "display": "TB DS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS" + }, + "tbdr": { + "code": "tbdr", + "display": "TB DR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS" + }, + "anc": { + "code": "anc", + "display": "ANC", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS" + }, + "fp": { + "code": "fp", + "display": "Family Planning", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS" + }, + "art": { + "code": "art", + "display": "ART", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS" + }, + "prep": { + "code": "prep", + "display": "PrEP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEpisodeOfCareTypeVS": { + "tbds": { + "code": "tbds", + "display": "TB DS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS" + }, + "tbdr": { + "code": "tbdr", + "display": "TB DR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS" + }, + "anc": { + "code": "anc", + "display": "ANC", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS" + }, + "fp": { + "code": "fp", + "display": "Family Planning", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS" + }, + "art": { + "code": "art", + "display": "ART", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS" + }, + "prep": { + "code": "prep", + "display": "PrEP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS": { + "PI": { + "code": "PI", + "display": "Personal ID Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS" + }, + "PA": { + "code": "PA", + "display": "Passport Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS" + }, + "TP": { + "code": "TP", + "display": "Temporary Permit", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS" + }, + "FD": { + "code": "FD", + "display": "Foreign Document", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS" + }, + "MH": { + "code": "MH", + "display": "Ministry of Health Workder ID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS" + }, + "MR": { + "code": "MR", + "display": "Medical Record Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/ValueSet/PersonIdentifiersVS|0.1.0": { + "PI": { + "code": "PI", + "display": "Personal ID Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS" + }, + "PA": { + "code": "PA", + "display": "Passport Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS" + }, + "TP": { + "code": "TP", + "display": "Temporary Permit", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS" + }, + "FD": { + "code": "FD", + "display": "Foreign Document", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS" + }, + "MH": { + "code": "MH", + "display": "Ministry of Health Workder ID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS" + }, + "MR": { + "code": "MR", + "display": "Medical Record Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS": { + "100001": { + "code": "100001", + "display": "Cyclophosphamide Tablets 25mg 100", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100009": { + "code": "100009", + "display": "Amoxycillin Capsules 500mg 500 CAPS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100014": { + "code": "100014", + "display": "Cefaclor Tablets 375mg 10 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100089": { + "code": "100089", + "display": "Albendazole Tablets 200mg (Chewable) 1000 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100221": { + "code": "100221", + "display": "Cloxacillin Suspension 125mg/5ml 100 ML", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100238": { + "code": "100238", + "display": "Cold & Flu Syrup 100 ML", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100304": { + "code": "100304", + "display": "Adrenaline Injection 1:1000 10 AMPS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100449": { + "code": "100449", + "display": "Acyclovir Eye Ointment 3% 4.5 G", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100460": { + "code": "100460", + "display": "Betamethasone Cream 0.1% 15G", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100528": { + "code": "100528", + "display": "Beclomethasone Nasal Spray 27.5mcg/dose (Paeds)Com 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100648": { + "code": "100648", + "display": "Abacavir 300mg Tablets 60 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100651": { + "code": "100651", + "display": "Atazanavir/Ritonavir 300/100mg Tablets 30", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100654": { + "code": "100654", + "display": "Efavirenz 200mg Scored Tablets 90", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100666": { + "code": "100666", + "display": "Raltegravir 400mg Tablets 60 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100686": { + "code": "100686", + "display": "Isoniazid 100mg Tablets 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100689": { + "code": "100689", + "display": "Saquinavir 200mg Capsules 270 CAPS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100700": { + "code": "100700", + "display": "Flucytosine 500mg 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100706": { + "code": "100706", + "display": "Dapsone Tablets 100mg 100", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100707": { + "code": "100707", + "display": "Cotrimoxazole/Isoniazid/Pyridoxine 960/300/25mg 30 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100734": { + "code": "100734", + "display": "Bleomycin Injection 15 Units Vial (With Cold Chain 1 AMP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102263": { + "code": "102263", + "display": "Clofazimine Tablets 100mg 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102266": { + "code": "102266", + "display": "Delamanid FILM COATED Tablets 50mg 48 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102268": { + "code": "102268", + "display": "Ethambutol FILM COATEDTablets 100mg 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102272": { + "code": "102272", + "display": "Ethionamide FILM COATED Capsules 250mg 50 CAPS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102273": { + "code": "102273", + "display": "Isoniazid Tablets 300mg 28 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102276": { + "code": "102276", + "display": "Levofloxacin Tablets 500mg 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102277": { + "code": "102277", + "display": "Linezolid FILM COATED Tablets 600mg 60 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102280": { + "code": "102280", + "display": "Moxifloxacillin FILM COATED Tablets 400mg 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102282": { + "code": "102282", + "display": "Pyrazinamide Tablets 500mg 1000 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102304": { + "code": "102304", + "display": "Amikacin 1g 50 VIALS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102323": { + "code": "102323", + "display": "Levonorgestrel 30mcg Tablets 84 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102324": { + "code": "102324", + "display": "Norgestrel 300mcg/Ethinylestradiol 30mcg Tablets 28 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102327": { + "code": "102327", + "display": "Levonorgestrel +Ethinyl Estradiol 150mcg+30mcg Tab 3 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102332": { + "code": "102332", + "display": "Medroxyprogesterone Acetate 150mg/ml Injection 20 VIALS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102333": { + "code": "102333", + "display": "Norethisterone Enanthate + Estradiol Valerate In O 100 VIALS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102341": { + "code": "102341", + "display": "Intra-Uterine Device (Iucd) T380 ( Polymer Film Po 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102346": { + "code": "102346", + "display": "Strawberry Scented Male Condoms ( natural latex,53mm) 100", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102348": { + "code": "102348", + "display": "Water Based Lubricant (SRH) SATCHET", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102443": { + "code": "102443", + "display": "Cefazolin 1g; 10 Vial 10 VIAL", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102492": { + "code": "102492", + "display": "Paracetamol Tablets 500g (Coloured Green) 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102502": { + "code": "102502", + "display": "T Section; 1 Each 1 EACH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzProductCodeVS": { + "100001": { + "code": "100001", + "display": "Cyclophosphamide Tablets 25mg 100", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100009": { + "code": "100009", + "display": "Amoxycillin Capsules 500mg 500 CAPS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100014": { + "code": "100014", + "display": "Cefaclor Tablets 375mg 10 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100089": { + "code": "100089", + "display": "Albendazole Tablets 200mg (Chewable) 1000 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100221": { + "code": "100221", + "display": "Cloxacillin Suspension 125mg/5ml 100 ML", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100238": { + "code": "100238", + "display": "Cold & Flu Syrup 100 ML", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100304": { + "code": "100304", + "display": "Adrenaline Injection 1:1000 10 AMPS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100449": { + "code": "100449", + "display": "Acyclovir Eye Ointment 3% 4.5 G", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100460": { + "code": "100460", + "display": "Betamethasone Cream 0.1% 15G", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100528": { + "code": "100528", + "display": "Beclomethasone Nasal Spray 27.5mcg/dose (Paeds)Com 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100648": { + "code": "100648", + "display": "Abacavir 300mg Tablets 60 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100651": { + "code": "100651", + "display": "Atazanavir/Ritonavir 300/100mg Tablets 30", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100654": { + "code": "100654", + "display": "Efavirenz 200mg Scored Tablets 90", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100666": { + "code": "100666", + "display": "Raltegravir 400mg Tablets 60 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100686": { + "code": "100686", + "display": "Isoniazid 100mg Tablets 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100689": { + "code": "100689", + "display": "Saquinavir 200mg Capsules 270 CAPS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100700": { + "code": "100700", + "display": "Flucytosine 500mg 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100706": { + "code": "100706", + "display": "Dapsone Tablets 100mg 100", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100707": { + "code": "100707", + "display": "Cotrimoxazole/Isoniazid/Pyridoxine 960/300/25mg 30 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "100734": { + "code": "100734", + "display": "Bleomycin Injection 15 Units Vial (With Cold Chain 1 AMP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102263": { + "code": "102263", + "display": "Clofazimine Tablets 100mg 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102266": { + "code": "102266", + "display": "Delamanid FILM COATED Tablets 50mg 48 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102268": { + "code": "102268", + "display": "Ethambutol FILM COATEDTablets 100mg 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102272": { + "code": "102272", + "display": "Ethionamide FILM COATED Capsules 250mg 50 CAPS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102273": { + "code": "102273", + "display": "Isoniazid Tablets 300mg 28 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102276": { + "code": "102276", + "display": "Levofloxacin Tablets 500mg 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102277": { + "code": "102277", + "display": "Linezolid FILM COATED Tablets 600mg 60 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102280": { + "code": "102280", + "display": "Moxifloxacillin FILM COATED Tablets 400mg 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102282": { + "code": "102282", + "display": "Pyrazinamide Tablets 500mg 1000 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102304": { + "code": "102304", + "display": "Amikacin 1g 50 VIALS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102323": { + "code": "102323", + "display": "Levonorgestrel 30mcg Tablets 84 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102324": { + "code": "102324", + "display": "Norgestrel 300mcg/Ethinylestradiol 30mcg Tablets 28 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102327": { + "code": "102327", + "display": "Levonorgestrel +Ethinyl Estradiol 150mcg+30mcg Tab 3 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102332": { + "code": "102332", + "display": "Medroxyprogesterone Acetate 150mg/ml Injection 20 VIALS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102333": { + "code": "102333", + "display": "Norethisterone Enanthate + Estradiol Valerate In O 100 VIALS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102341": { + "code": "102341", + "display": "Intra-Uterine Device (Iucd) T380 ( Polymer Film Po 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102346": { + "code": "102346", + "display": "Strawberry Scented Male Condoms ( natural latex,53mm) 100", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102348": { + "code": "102348", + "display": "Water Based Lubricant (SRH) SATCHET", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102443": { + "code": "102443", + "display": "Cefazolin 1g; 10 Vial 10 VIAL", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102492": { + "code": "102492", + "display": "Paracetamol Tablets 500g (Coloured Green) 100 TABS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + }, + "102502": { + "code": "102502", + "display": "T Section; 1 Each 1 EACH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS": { + "2": { + "code": "2", + "display": "HHUKWINI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "3": { + "code": "3", + "display": "LOBAMBA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "4": { + "code": "4", + "display": "MADLANGEMPISI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "5": { + "code": "5", + "display": "MAPHALALENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "6": { + "code": "6", + "display": "MAYIWANE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "7": { + "code": "7", + "display": "MBABANE EAST", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "8": { + "code": "8", + "display": "MBABANE WEST", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "9": { + "code": "9", + "display": "MHLANGATANE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "10": { + "code": "10", + "display": "NDZINGENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "11": { + "code": "11", + "display": "NKHABA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "12": { + "code": "12", + "display": "NTFONJENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "13": { + "code": "13", + "display": "PIGGS PEAK", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "14": { + "code": "14", + "display": "SIPHOCOSINI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "15": { + "code": "15", + "display": "TIMPHISINI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "16": { + "code": "16", + "display": "DVOKODVWENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "17": { + "code": "17", + "display": "GILGALI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "18": { + "code": "18", + "display": "LOMAHASHA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "19": { + "code": "19", + "display": "LUBULI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "20": { + "code": "20", + "display": "LUGONGOLWENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "21": { + "code": "21", + "display": "MATSANJENI NORTH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "22": { + "code": "22", + "display": "MHLUME", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "23": { + "code": "23", + "display": "MPOLONJENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "24": { + "code": "24", + "display": "NKILONGO", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "25": { + "code": "25", + "display": "SIPHOFANENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "26": { + "code": "26", + "display": "SITHOBELA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "27": { + "code": "27", + "display": "KUKHANYENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "28": { + "code": "28", + "display": "KWALUSENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "29": { + "code": "29", + "display": "LAMGABHI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "30": { + "code": "30", + "display": "LOBAMBA LOMDZALA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "31": { + "code": "31", + "display": "LUDZELUDZE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "32": { + "code": "32", + "display": "MAFUTSENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "33": { + "code": "33", + "display": "MAHLANGATSHA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "34": { + "code": "34", + "display": "MANGCONGCO", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "35": { + "code": "35", + "display": "MANZINI NORTH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "36": { + "code": "36", + "display": "MANZINI SOUTH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "37": { + "code": "37", + "display": "MHLAMBANYATSI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "38": { + "code": "38", + "display": "MKHIWENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "39": { + "code": "39", + "display": "MTFONGWANENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "40": { + "code": "40", + "display": "NGWEMPISI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "41": { + "code": "41", + "display": "NHLAMBENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "42": { + "code": "42", + "display": "NKOMIYAHLABA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "43": { + "code": "43", + "display": "NTONDOZI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "44": { + "code": "44", + "display": "PHONDO", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "45": { + "code": "45", + "display": "GEGE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "46": { + "code": "46", + "display": "HOSEA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "47": { + "code": "47", + "display": "KUBUTA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "48": { + "code": "48", + "display": "KUMETHULA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "49": { + "code": "49", + "display": "MASEYISINI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "50": { + "code": "50", + "display": "MATSANJENI SOUTH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "51": { + "code": "51", + "display": "MTSAMBAMA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "52": { + "code": "52", + "display": "NGUDZENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "53": { + "code": "53", + "display": "NKWENE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "54": { + "code": "54", + "display": "SANDLENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "55": { + "code": "55", + "display": "SHISELWENI I", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "56": { + "code": "56", + "display": "SHISELWENI II", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "57": { + "code": "57", + "display": "SIGWE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "58": { + "code": "58", + "display": "SOMNTONGO", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "59": { + "code": "59", + "display": "ZOMBODZE EMUVA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "60": { + "code": "60", + "display": "MOTSHANE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "-99": { + "code": "-99", + "display": "Unspecified", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTinkhundlaVS|0.1.0": { + "2": { + "code": "2", + "display": "HHUKWINI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "3": { + "code": "3", + "display": "LOBAMBA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "4": { + "code": "4", + "display": "MADLANGEMPISI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "5": { + "code": "5", + "display": "MAPHALALENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "6": { + "code": "6", + "display": "MAYIWANE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "7": { + "code": "7", + "display": "MBABANE EAST", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "8": { + "code": "8", + "display": "MBABANE WEST", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "9": { + "code": "9", + "display": "MHLANGATANE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "10": { + "code": "10", + "display": "NDZINGENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "11": { + "code": "11", + "display": "NKHABA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "12": { + "code": "12", + "display": "NTFONJENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "13": { + "code": "13", + "display": "PIGGS PEAK", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "14": { + "code": "14", + "display": "SIPHOCOSINI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "15": { + "code": "15", + "display": "TIMPHISINI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "16": { + "code": "16", + "display": "DVOKODVWENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "17": { + "code": "17", + "display": "GILGALI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "18": { + "code": "18", + "display": "LOMAHASHA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "19": { + "code": "19", + "display": "LUBULI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "20": { + "code": "20", + "display": "LUGONGOLWENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "21": { + "code": "21", + "display": "MATSANJENI NORTH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "22": { + "code": "22", + "display": "MHLUME", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "23": { + "code": "23", + "display": "MPOLONJENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "24": { + "code": "24", + "display": "NKILONGO", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "25": { + "code": "25", + "display": "SIPHOFANENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "26": { + "code": "26", + "display": "SITHOBELA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "27": { + "code": "27", + "display": "KUKHANYENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "28": { + "code": "28", + "display": "KWALUSENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "29": { + "code": "29", + "display": "LAMGABHI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "30": { + "code": "30", + "display": "LOBAMBA LOMDZALA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "31": { + "code": "31", + "display": "LUDZELUDZE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "32": { + "code": "32", + "display": "MAFUTSENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "33": { + "code": "33", + "display": "MAHLANGATSHA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "34": { + "code": "34", + "display": "MANGCONGCO", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "35": { + "code": "35", + "display": "MANZINI NORTH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "36": { + "code": "36", + "display": "MANZINI SOUTH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "37": { + "code": "37", + "display": "MHLAMBANYATSI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "38": { + "code": "38", + "display": "MKHIWENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "39": { + "code": "39", + "display": "MTFONGWANENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "40": { + "code": "40", + "display": "NGWEMPISI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "41": { + "code": "41", + "display": "NHLAMBENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "42": { + "code": "42", + "display": "NKOMIYAHLABA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "43": { + "code": "43", + "display": "NTONDOZI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "44": { + "code": "44", + "display": "PHONDO", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "45": { + "code": "45", + "display": "GEGE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "46": { + "code": "46", + "display": "HOSEA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "47": { + "code": "47", + "display": "KUBUTA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "48": { + "code": "48", + "display": "KUMETHULA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "49": { + "code": "49", + "display": "MASEYISINI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "50": { + "code": "50", + "display": "MATSANJENI SOUTH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "51": { + "code": "51", + "display": "MTSAMBAMA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "52": { + "code": "52", + "display": "NGUDZENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "53": { + "code": "53", + "display": "NKWENE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "54": { + "code": "54", + "display": "SANDLENI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "55": { + "code": "55", + "display": "SHISELWENI I", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "56": { + "code": "56", + "display": "SHISELWENI II", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "57": { + "code": "57", + "display": "SIGWE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "58": { + "code": "58", + "display": "SOMNTONGO", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "59": { + "code": "59", + "display": "ZOMBODZE EMUVA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "60": { + "code": "60", + "display": "MOTSHANE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + }, + "-99": { + "code": "-99", + "display": "Unspecified", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS": { + "NIT": { + "code": "NIT", + "display": "Nitrate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UG": { + "code": "UG", + "display": "Glucose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UP": { + "code": "UP", + "display": "Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UPH": { + "code": "UPH", + "display": "pH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UBILI": { + "code": "UBILI", + "display": "Bilirubin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UKET": { + "code": "UKET", + "display": "Ketones", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ULEST": { + "code": "ULEST", + "display": "Leucocyte Esterase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "N/A": { + "code": "N/A", + "display": "Urobilirubin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#BAND": { + "code": "#BAND", + "display": "Band Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#BASO": { + "code": "#BASO", + "display": "Basophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#EOS": { + "code": "#EOS", + "display": "Eosinophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#IG": { + "code": "#IG", + "display": "IG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#LYM": { + "code": "#LYM", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#META": { + "code": "#META", + "display": "Metamyelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#MONO": { + "code": "#MONO", + "display": "Monocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#MYEL": { + "code": "#MYEL", + "display": "Myelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#NEUT": { + "code": "#NEUT", + "display": "Neutrophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#PROM": { + "code": "#PROM", + "display": "Promyelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "%BJP": { + "code": "%BJP", + "display": "% Bence Jones Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "%BSAT": { + "code": "%BSAT", + "display": "Transferrin Saturation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "%HBA1": { + "code": "%HBA1", + "display": "% HBA1C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "%SAT": { + "code": "%SAT", + "display": "Transferrin Saturation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "17AHQ": { + "code": "17AHQ", + "display": "17 Alpha-hydroxyprogesterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "1ST": { + "code": "1ST", + "display": "First Line", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "2ND": { + "code": "2ND", + "display": "Second Line", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "A1ATR": { + "code": "A1ATR", + "display": "S-ƒ -1-antitrypsin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "A1CEL": { + "code": "A1CEL", + "display": "A1 Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "A2CEL": { + "code": "A2CEL", + "display": "A2 Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABAC": { + "code": "ABAC", + "display": "Abacavir (ABC)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABNO": { + "code": "ABNO", + "display": "%Abnormal", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABO": { + "code": "ABO", + "display": "Blood Group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABRH": { + "code": "ABRH", + "display": "or Group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABRH1": { + "code": "ABRH1", + "display": "Donor Unit 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABRH2": { + "code": "ABRH2", + "display": "Donor Unit 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABRH3": { + "code": "ABRH3", + "display": "Donor Unit 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABRH4": { + "code": "ABRH4", + "display": "Donor Unit 4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACA": { + "code": "ACA", + "display": "i-Centromere Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACAS": { + "code": "ACAS", + "display": "Anti-Centromere Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACEA": { + "code": "ACEA", + "display": "Carcinoembryonic Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACEAB": { + "code": "ACEAB", + "display": "Acetylcholine Receptor Ab`s", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACLA": { + "code": "ACLA", + "display": "i-Cardiolipin Ab (IgG)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACLAG": { + "code": "ACLAG", + "display": "i-Cardiolipin Ab`s IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACLAM": { + "code": "ACLAM", + "display": "i-Cardiolipin Ab`s IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACOLA": { + "code": "ACOLA", + "display": "i-Collagen Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACTH": { + "code": "ACTH", + "display": "eno-corticotrophic Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACTHI": { + "code": "ACTHI", + "display": "eno-corticotrophic Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACTHO": { + "code": "ACTHO", + "display": "eno-corticotrophic Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ADATE": { + "code": "ADATE", + "display": "Autopsy Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ADENO": { + "code": "ADENO", + "display": "Fecal adenovirus", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ADNA": { + "code": "ADNA", + "display": "i-Double Stranded DNA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ADNAM": { + "code": "ADNAM", + "display": "Anti-Double Stranded DNA (EIA)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ADNAR": { + "code": "ADNAR", + "display": "dsDNA Rule", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ADNAS": { + "code": "ADNAS", + "display": "Anti-Double Stranded DNA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AFB": { + "code": "AFB", + "display": "Zeihl-Neelsen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AFP": { + "code": "AFP", + "display": "Alpa Feto Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AGHT": { + "code": "AGHT", + "display": "Anti-human globulin testing", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AHE": { + "code": "AHE", + "display": "ormal Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AHEAL": { + "code": "AHEAL", + "display": "ANC Health Facility", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AHG": { + "code": "AHG", + "display": "i-human globulin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AK": { + "code": "AK", + "display": "Amikacin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AK1": { + "code": "AK1", + "display": "Amikacin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ALDOQ": { + "code": "ALDOQ", + "display": "Aldosterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ALDOS": { + "code": "ALDOS", + "display": "Aldosterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMC": { + "code": "AMC", + "display": "Amoxilin/Clavulanic Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMIK": { + "code": "AMIK", + "display": "Amikacin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMITA": { + "code": "AMITA", + "display": "i-Mitochondrial Antibodies/A-Mit Ab", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMITT": { + "code": "AMITT", + "display": "Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMOX": { + "code": "AMOX", + "display": "Amoxicillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMOX1": { + "code": "AMOX1", + "display": "Amoxicillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMP": { + "code": "AMP", + "display": "Ampicillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMPHE": { + "code": "AMPHE", + "display": "hetamine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMPIC": { + "code": "AMPIC", + "display": "Ampicillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANAH": { + "code": "ANAH", + "display": "i-Nuclear Ab (Hep-2)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANCN": { + "code": "ANCN", + "display": "ANC Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANCP": { + "code": "ANCP", + "display": "From ANC (Pink) card", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANDRS": { + "code": "ANDRS", + "display": "Androstenedione", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANION": { + "code": "ANION", + "display": "Anion Gap", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANTAB": { + "code": "ANTAB", + "display": "Anti AB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANTIA": { + "code": "ANTIA", + "display": "Anti A", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANTIB": { + "code": "ANTIB", + "display": "Anti B", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANTID": { + "code": "ANTID", + "display": "Rhesus D", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APCA": { + "code": "APCA", + "display": "i-Parietal Cell Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APP": { + "code": "APP", + "display": "Appearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APPEA": { + "code": "APPEA", + "display": "Naked Eye Appearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APPET": { + "code": "APPET", + "display": "Naked eye appearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APPF": { + "code": "APPF", + "display": "Fluid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APPS": { + "code": "APPS", + "display": "Supernatant Appearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APTC": { + "code": "APTC", + "display": "T (Control)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APTT": { + "code": "APTT", + "display": "T (Patient)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARTN": { + "code": "ARTN", + "display": "ART Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARTTX": { + "code": "ARTTX", + "display": "ART Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVID": { + "code": "ARVID", + "display": "ARV ID Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVO": { + "code": "ARVO", + "display": "Other ARV treatment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVO1": { + "code": "ARVO1", + "display": "Other Drugs (1)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVO2": { + "code": "ARVO2", + "display": "Other Drugs (2)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVO3": { + "code": "ARVO3", + "display": "Other Drugs (3)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVS": { + "code": "ARVS", + "display": "ARV Programme status", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVT1": { + "code": "ARVT1", + "display": "ARV treatment (1)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVT2": { + "code": "ARVT2", + "display": "ARV treatment (2)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVT3": { + "code": "ARVT3", + "display": "ARV treatment (3)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ASKMA": { + "code": "ASKMA", + "display": "i-skeletal muscle Ab`s", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ASL": { + "code": "ASL", + "display": "i-Streptolysin O Latex", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ASMA": { + "code": "ASMA", + "display": "i-Smooth Muscle Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ASOT": { + "code": "ASOT", + "display": "i-Streptolysin O Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ASPR": { + "code": "ASPR", + "display": "ASPIRATOR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AST": { + "code": "AST", + "display": "Antimicrobial Sensitivity Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AUG": { + "code": "AUG", + "display": "Co-amoxiclav", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AUG1": { + "code": "AUG1", + "display": "Augmentin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "B2GPG": { + "code": "B2GPG", + "display": "Beta-2 Glycoprotein IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "B2GPM": { + "code": "B2GPM", + "display": "Beta-2 Glycoprotein IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BACET": { + "code": "BACET", + "display": "S-Acetaminophen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BACT": { + "code": "BACT", + "display": "0rganisms Seen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALB": { + "code": "SALB", + "display": "Albumin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BAND#": { + "code": "BAND#", + "display": "Band Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BAND%": { + "code": "BAND%", + "display": "Band Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BARB": { + "code": "BARB", + "display": "Barbiturate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BARES": { + "code": "BARES", + "display": "Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BASA#": { + "code": "BASA#", + "display": "Basophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BASA%": { + "code": "BASA%", + "display": "Basophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BASO#": { + "code": "BASO#", + "display": "Basoophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BASO%": { + "code": "BASO%", + "display": "Basophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BAUTO": { + "code": "BAUTO", + "display": "Auto Control", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BBCOM": { + "code": "BBCOM", + "display": "Comment:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BBTXT": { + "code": "BBTXT", + "display": "Remarks:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BCEL": { + "code": "BCEL", + "display": "B Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BCULT": { + "code": "BCULT", + "display": "TURE RESULT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BE": { + "code": "BE", + "display": "Base Excess", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BENZO": { + "code": "BENZO", + "display": "Benzodiazepine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BENZV": { + "code": "BENZV", + "display": "BZD Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BG": { + "code": "BG", + "display": "Blood Group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BHCG2": { + "code": "BHCG2", + "display": "HCG TOTAL BETA (TUMOR MARKER)*", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BIOCH": { + "code": "BIOCH", + "display": "BIO-CHEMISTRY (Dipstick)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BIRON": { + "code": "BIRON", + "display": "Iron", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BLST#": { + "code": "BLST#", + "display": "Blasts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BLST%": { + "code": "BLST%", + "display": "Blasts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BMTXT": { + "code": "BMTXT", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BPH": { + "code": "BPH", + "display": "pH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BPROC": { + "code": "BPROC", + "display": "Product", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BREAS": { + "code": "BREAS", + "display": "Breastfeeding", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BROMS": { + "code": "BROMS", + "display": "Bromelin Screening", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BS1": { + "code": "BS1", + "display": "S1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BS2": { + "code": "BS2", + "display": "S2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BSA": { + "code": "BSA", + "display": "y Surface Area", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BSCR1": { + "code": "BSCR1", + "display": "Bromelin Screen Cell 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BSCR2": { + "code": "BSCR2", + "display": "Bromelin Screen Cell 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BSCR3": { + "code": "BSCR3", + "display": "Bromelin Screen Cell 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BTFN": { + "code": "BTFN", + "display": "Transferrin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BTIME": { + "code": "BTIME", + "display": "Bleeding Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BTNP": { + "code": "BTNP", + "display": "B-Type Natriuretic Peptide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BTYPE": { + "code": "BTYPE", + "display": "Bottle Type", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BUA": { + "code": "BUA", + "display": "Uric Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BV": { + "code": "BV", + "display": "Interpretation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C125B": { + "code": "C125B", + "display": "CA125", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C15-3": { + "code": "C15-3", + "display": "CA15-3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C1EI": { + "code": "C1EI", + "display": "C1 Esterase Inhibitor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C1ESC": { + "code": "C1ESC", + "display": "C1 Esterase Inhibitor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C1ESI": { + "code": "C1ESI", + "display": "C1 Esterase Inhibitor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C3": { + "code": "C3", + "display": "Complement Component C3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C4": { + "code": "C4", + "display": "Complement Component C4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C6": { + "code": "C6", + "display": "Complement Component C6", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CA199": { + "code": "CA199", + "display": "CA19-9", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CA724": { + "code": "CA724", + "display": "CA 72-4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CABCO": { + "code": "CABCO", + "display": "Cut-off : Core antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CABFL": { + "code": "CABFL", + "display": "atitis B core ab (Total)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CABVA": { + "code": "CABVA", + "display": "Value : Core antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CACOR": { + "code": "CACOR", + "display": "S-Calcium (Corrected)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CAERU": { + "code": "CAERU", + "display": "Caeruloplasmin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CALCL": { + "code": "CALCL", + "display": "Calculated Clearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CALCN": { + "code": "CALCN", + "display": "Calcitonin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CALCO": { + "code": "CALCO", + "display": "cofluor Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CANN": { + "code": "CANN", + "display": "U-Cannabinoids", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CANNQ": { + "code": "CANNQ", + "display": "U-Cannabinoids", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CAPIL": { + "code": "CAPIL", + "display": "ID Rapid Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CAPP": { + "code": "CAPP", + "display": "Specimen Appearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CARB": { + "code": "CARB", + "display": "S-Carbamazepine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CAREH": { + "code": "CAREH", + "display": "Caregiver Details", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CASTS": { + "code": "CASTS", + "display": "Casts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CATSC": { + "code": "CATSC", + "display": "U-Catecholamines", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CATSO": { + "code": "CATSO", + "display": "dU-Catecholamines", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CBAC": { + "code": "CBAC", + "display": "Control Bead Abs Cnt", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCL": { + "code": "CCL", + "display": "CSF Chloride", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCLEA": { + "code": "CCLEA", + "display": "Corrected Clearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCNT": { + "code": "CCNT", + "display": "CELL COUNT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCOM": { + "code": "CCOM", + "display": "COMMENT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCON": { + "code": "CCON", + "display": "Conclusion", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCOO": { + "code": "CCOO", + "display": "Coomb's control", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCREM": { + "code": "CCREM", + "display": "Recommendation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCULT": { + "code": "CCULT", + "display": "CULTURE RESULT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD3": { + "code": "CD3", + "display": "CD3 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD3L": { + "code": "CD3L", + "display": "CD3%", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD4": { + "code": "CD4", + "display": "CD4 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD45": { + "code": "CD45", + "display": "CD45 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD4L": { + "code": "CD4L", + "display": "CD4%", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD8": { + "code": "CD8", + "display": "CD 8 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD8L": { + "code": "CD8L", + "display": "CD8%", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEFAZ": { + "code": "CEFAZ", + "display": "Cefazolin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEFO1": { + "code": "CEFO1", + "display": "Cefotaxime", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEFOT": { + "code": "CEFOT", + "display": "Cefotaxime/Ceftriazone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEFOX": { + "code": "CEFOX", + "display": "Cefoxitin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEFTA": { + "code": "CEFTA", + "display": "Ceftazidime", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEPHA": { + "code": "CEPHA", + "display": "Cephalexin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEPHR": { + "code": "CEPHR", + "display": "Cephradine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CERYT": { + "code": "CERYT", + "display": "Red Blood Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CGLOB": { + "code": "CGLOB", + "display": "Globulin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CGLU": { + "code": "CGLU", + "display": "CSF Glucose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHEMC": { + "code": "CHEMC", + "display": "Concentrations", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHEMF": { + "code": "CHEMF", + "display": "CAL RESULTS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHEMH": { + "code": "CHEMH", + "display": "CSF CHEMISTRY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHEMO": { + "code": "CHEMO", + "display": "AL URINE OUTPUT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHEMU": { + "code": "CHEMU", + "display": "NE RESULTS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHILD": { + "code": "CHILD", + "display": "From Child Health Card", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHIST": { + "code": "CHIST", + "display": "CLINICAL HISTORY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLDN": { + "code": "CHLDN", + "display": "Child No", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLET": { + "code": "CHLET", + "display": "Endemic Trachoma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLLV": { + "code": "CHLLV", + "display": "phogranuloma venereum", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLO1": { + "code": "CHLO1", + "display": "Chloramphenicol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLOG": { + "code": "CHLOG", + "display": "Oculo genital", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLOR": { + "code": "CHLOR", + "display": "Chloramphenicol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLPN": { + "code": "CHLPN", + "display": "Chlamydia pneumoniae", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLPS": { + "code": "CHLPS", + "display": "Chlamydia psittaci", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLTR": { + "code": "CHLTR", + "display": "Chlamydia trachomatis", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHM": { + "code": "CHM", + "display": "CHm (Mature RBC HB Content)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHR": { + "code": "CHR", + "display": "CHr (Reticulocyte HB Content)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CIPR1": { + "code": "CIPR1", + "display": "Ciprofloxacin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CIPRO": { + "code": "CIPRO", + "display": "Ciprofloxacin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLAR": { + "code": "CLAR", + "display": "Clarity", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLIND": { + "code": "CLIND", + "display": "Clindamycin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLOD": { + "code": "CLOD", + "display": "C. difficile Toxin A Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLODA": { + "code": "CLODA", + "display": "C. difficile Toxin A", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLTR": { + "code": "CLTR", + "display": "Pathogen Identified", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLTRE": { + "code": "CLTRE", + "display": "Culture Results", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLUE": { + "code": "CLUE", + "display": "CLUE CELLS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CMGFL": { + "code": "CMGFL", + "display": "Cytomegalovirus IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CMGVA": { + "code": "CMGVA", + "display": "Value : CMG IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CMMFL": { + "code": "CMMFL", + "display": "Cytomegalovirus IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CMMVA": { + "code": "CMMVA", + "display": "Value : CMG IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COCAI": { + "code": "COCAI", + "display": "Cocaine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COL": { + "code": "COL", + "display": "Colour", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COLI": { + "code": "COLI", + "display": "Colistin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COLM": { + "code": "COLM", + "display": "TBCOL Other Months", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COM": { + "code": "COM", + "display": "Comment:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COMAL": { + "code": "COMAL", + "display": "Alternate Pathway", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COMCL": { + "code": "COMCL", + "display": "Classical Pathway", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CONCE": { + "code": "CONCE", + "display": "Antibiotic Concentrations", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CONSE": { + "code": "CONSE", + "display": "Consent to Contact", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COOMB": { + "code": "COOMB", + "display": "Indirect Coomb's Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CORWC": { + "code": "CORWC", + "display": "Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COTR": { + "code": "COTR", + "display": "Cotrimoxazole", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COTR1": { + "code": "COTR1", + "display": "Cotrimoxazole", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COTRI": { + "code": "COTRI", + "display": "Co-trimoxazole", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COUN": { + "code": "COUN", + "display": "Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COXVI": { + "code": "COXVI", + "display": "Coxsackie virus IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CPEP2": { + "code": "CPEP2", + "display": "C-Peptide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CPROT": { + "code": "CPROT", + "display": "CSF Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRES": { + "code": "CRES", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRINK": { + "code": "CRINK", + "display": "INDIA INK", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRO": { + "code": "CRO", + "display": "Ceftriaxone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CROSM": { + "code": "CROSM", + "display": "Crossmatch", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRP": { + "code": "CRP", + "display": "CRP Quantitative", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRPS": { + "code": "CRPS", + "display": "CRP Serology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRPT": { + "code": "CRPT", + "display": "CRP Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRYLF": { + "code": "CRYLF", + "display": "Cryptococcal LFA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRYP": { + "code": "CRYP", + "display": "Cryptococcal Latex", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRYST": { + "code": "CRYST", + "display": "Crystals", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRYTI": { + "code": "CRYTI", + "display": "Cryptococcal Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CSOB": { + "code": "CSOB", + "display": "Occult Blood", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CTIME": { + "code": "CTIME", + "display": "Whole blood Clotting Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CTITR": { + "code": "CTITR", + "display": "Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CTX": { + "code": "CTX", + "display": "Cefotaxime", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CTXT": { + "code": "CTXT", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CUTC": { + "code": "CUTC", + "display": "Cutup by", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CUTP": { + "code": "CUTP", + "display": "Pathologist", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CUTS": { + "code": "CUTS", + "display": "Cutup sites", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CWBC": { + "code": "CWBC", + "display": "White Blood cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CWTX": { + "code": "CWTX", + "display": "Child Welfare Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYADE": { + "code": "CYADE", + "display": "Specimen Adequacy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYADH": { + "code": "CYADH", + "display": "Specimen Adequacy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYBGH": { + "code": "CYBGH", + "display": "Background", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYBGR": { + "code": "CYBGR", + "display": "Cytology Background", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYCYT": { + "code": "CYCYT", + "display": "SCREENER", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYINF": { + "code": "CYINF", + "display": "Cytology Infection", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYINH": { + "code": "CYINH", + "display": "Interpretation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYINT": { + "code": "CYINT", + "display": "Interpretation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYNAH": { + "code": "CYNAH", + "display": "Nature of Specimen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYNAT": { + "code": "CYNAT", + "display": "Cellular Changes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYNFH": { + "code": "CYNFH", + "display": "Infection", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYNTH": { + "code": "CYNTH", + "display": "Cellular Changes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYRCH": { + "code": "CYRCH", + "display": "Recommendation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYREC": { + "code": "CYREC", + "display": "Cytology Recommendation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYSS": { + "code": "CYSS", + "display": "Cytology Special Stains", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYSTS": { + "code": "CYSTS", + "display": "Cysts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTC": { + "code": "CYTC", + "display": "Contraception", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTCH": { + "code": "CYTCH", + "display": "CLINICAL HISTORY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTLA": { + "code": "CYTLA", + "display": "Last Pregnancy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTLM": { + "code": "CYTLM", + "display": "LMP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTNA": { + "code": "CYTNA", + "display": "Nature Of Specimen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTPA": { + "code": "CYTPA", + "display": "Parity", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTPR": { + "code": "CYTPR", + "display": "Clinical History", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTTY": { + "code": "CYTTY", + "display": "Type", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTXT": { + "code": "CYTXT", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DATEP": { + "code": "DATEP", + "display": "Date reported", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DATEQ": { + "code": "DATEQ", + "display": "Date Required", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DATER": { + "code": "DATER", + "display": "Date Claim", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DATET": { + "code": "DATET", + "display": "Date Taken", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCC3": { + "code": "DCC3", + "display": "C3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCC3C": { + "code": "DCC3C", + "display": "C3c", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCC3T": { + "code": "DCC3T", + "display": "C3d Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCEA": { + "code": "DCEA", + "display": "Carcinoembryonic Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCIGA": { + "code": "DCIGA", + "display": "IgA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCIGG": { + "code": "DCIGG", + "display": "IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCIGM": { + "code": "DCIGM", + "display": "IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCIGT": { + "code": "DCIGT", + "display": "IgG Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCOOH": { + "code": "DCOOH", + "display": "Direct Coomb", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCOOM": { + "code": "DCOOM", + "display": "Polyspecific", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCOT": { + "code": "DCOT", + "display": "Direct Coomb's Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCRT": { + "code": "DCRT", + "display": "1:20 DILUTED CRT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DDATE": { + "code": "DDATE", + "display": "Expiry", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DDIME": { + "code": "DDIME", + "display": "D-Dimer", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DEATH": { + "code": "DEATH", + "display": "Date of Death", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DHEAS": { + "code": "DHEAS", + "display": "Dehydroepiandrosterone Sulph", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DIAMT": { + "code": "DIAMT", + "display": "Zone Diametre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DIBN": { + "code": "DIBN", + "display": "Dibucaine Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DID": { + "code": "DID", + "display": "Donor ID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DIDA": { + "code": "DIDA", + "display": "Didanosine (DDI)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DIFCN": { + "code": "DIFCN", + "display": "DIFFERENTIAL COUNT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DIGO2": { + "code": "DIGO2", + "display": "S-Digoxin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DIGOX": { + "code": "DIGOX", + "display": "S-Digoxin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DOA": { + "code": "DOA", + "display": "Date of Admission", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DONG": { + "code": "DONG", + "display": "Donor Group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DONN": { + "code": "DONN", + "display": "Donor Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DOXY": { + "code": "DOXY", + "display": "Doxycycline", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DOXY1": { + "code": "DOXY1", + "display": "Doxycycline", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DPROT": { + "code": "DPROT", + "display": "F-Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DRSNO": { + "code": "DRSNO", + "display": "DR Survey Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DRTH": { + "code": "DRTH", + "display": "DRUG RESISTANCE TESTING", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DRUGI": { + "code": "DRUGI", + "display": "Drug Resistance Interpretation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DTIME": { + "code": "DTIME", + "display": "Time of Death", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DUR": { + "code": "DUR", + "display": "Duration of collection", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DUVMA": { + "code": "DUVMA", + "display": "dU-Vanillylmandelic Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "E2": { + "code": "E2", + "display": "Oestradiol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "E2C": { + "code": "E2C", + "display": "Oestrodial", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EBREA": { + "code": "EBREA", + "display": "Child Breastfed", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ECOTH": { + "code": "ECOTH", + "display": "Other", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ECOTR": { + "code": "ECOTR", + "display": "Cotrimoxazole(CTX)for infant", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ECURR": { + "code": "ECURR", + "display": "Current Regimen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EDNAP": { + "code": "EDNAP", + "display": "DNA PCR Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EEC": { + "code": "EEC", + "display": "Enteropathogenic E.coli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EFAVI": { + "code": "EFAVI", + "display": "Efavirenz (EFV)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EGFRI": { + "code": "EGFRI", + "display": "MDRD eGFR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EIDCM": { + "code": "EIDCM", + "display": "Caregiver Name", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EIDCN": { + "code": "EIDCN", + "display": "Caregiver NRC Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EIDCP": { + "code": "EIDCP", + "display": "Caregiver Phone Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EIFS": { + "code": "EIFS", + "display": "If stopped why?", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EIFY": { + "code": "EIFY", + "display": "IF yes which apply", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EMTRI": { + "code": "EMTRI", + "display": "Emtricitabine (FTC)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ENVPB": { + "code": "ENVPB", + "display": "NVP for full 6w after birth", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ENVPS": { + "code": "ENVPS", + "display": "When did child stop NVP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ENZYM": { + "code": "ENZYM", + "display": "Enzyme", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EOS#": { + "code": "EOS#", + "display": "Eosinophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EOS%": { + "code": "EOS%", + "display": "Eosinophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EOSA#": { + "code": "EOSA#", + "display": "Eosinophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EOSA%": { + "code": "EOSA%", + "display": "Eosinophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EOTHE": { + "code": "EOTHE", + "display": "Other", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EPI": { + "code": "EPI", + "display": "Epithelial Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EPRE": { + "code": "EPRE", + "display": "Previous DNA PCR Barcode no", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EPRED": { + "code": "EPRED", + "display": "Date Previous PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EPRER": { + "code": "EPRER", + "display": "Pregnancy Regimen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EPRES": { + "code": "EPRES", + "display": "Previous PCR Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAC1": { + "code": "EQAC1", + "display": "EQA Unstained 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAC2": { + "code": "EQAC2", + "display": "EQA Unstained 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAC3": { + "code": "EQAC3", + "display": "EQA Unstained 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAC4": { + "code": "EQAC4", + "display": "EQA Unstained 4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAC5": { + "code": "EQAC5", + "display": "EQA Unstained 5", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAHS": { + "code": "EQAHS", + "display": "Stained Slides", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAHU": { + "code": "EQAHU", + "display": "Unstained Slides", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAMT": { + "code": "EQAMT", + "display": "Method", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAN2": { + "code": "EQAN2", + "display": "No Parasites", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAN3": { + "code": "EQAN3", + "display": "No Parasites", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQANP": { + "code": "EQANP", + "display": "No Parasites", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAR1": { + "code": "EQAR1", + "display": "EQA Result 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAR2": { + "code": "EQAR2", + "display": "EQA Result 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAR3": { + "code": "EQAR3", + "display": "EQA Result 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAR4": { + "code": "EQAR4", + "display": "EQA Result 4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAR5": { + "code": "EQAR5", + "display": "EQA Result 5", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAS1": { + "code": "EQAS1", + "display": "EQA Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAS2": { + "code": "EQAS2", + "display": "EQA Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQASC": { + "code": "EQASC", + "display": "Screener", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQCAB": { + "code": "EQCAB", + "display": "Absolute Count Beads", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQCAC": { + "code": "EQCAC", + "display": "Antibody Combination", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQCDI": { + "code": "EQCDI", + "display": "Instrument", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQCLM": { + "code": "EQCLM", + "display": "Lysing Method", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQCPC": { + "code": "EQCPC", + "display": "Problem Code", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHCT": { + "code": "EQHCT", + "display": "Haematocrit", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHGB": { + "code": "EQHGB", + "display": "Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHPC": { + "code": "EQHPC", + "display": "Problem Code", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHPE": { + "code": "EQHPE", + "display": "Processing equipment:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHPK": { + "code": "EQHPK", + "display": "Processing Kit/Reagent:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHPM": { + "code": "EQHPM", + "display": "Processing Microscope", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHSD": { + "code": "EQHSD", + "display": "Microscope service date:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHST": { + "code": "EQHST", + "display": "Stain used:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMCH": { + "code": "EQMCH", + "display": "EQMCH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMCN": { + "code": "EQMCN", + "display": "Challenge Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMCV": { + "code": "EQMCV", + "display": "EQMCV", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMF2": { + "code": "EQMF2", + "display": "Final answer (Parasites Count)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMF3": { + "code": "EQMF3", + "display": "Final answer (Parasites Count)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMFA": { + "code": "EQMFA", + "display": "Final answer (Parasites Count)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMIC": { + "code": "EQMIC", + "display": "Microscopy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMPC": { + "code": "EQMPC", + "display": "Final Answer", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQPF": { + "code": "EQPF", + "display": "Tested by", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQPLT": { + "code": "EQPLT", + "display": "Platelet Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQPO": { + "code": "EQPO", + "display": "Supervisor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQRBC": { + "code": "EQRBC", + "display": "Red Blood Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQRDW": { + "code": "EQRDW", + "display": "EQRDW", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSED": { + "code": "EQSED", + "display": "Expiration Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSLN": { + "code": "EQSLN", + "display": "Lot Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSP1": { + "code": "EQSP1", + "display": "Specimen 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSP2": { + "code": "EQSP2", + "display": "Specimen 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSP3": { + "code": "EQSP3", + "display": "Specimen 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSS1": { + "code": "EQSS1", + "display": "HIV PT 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSS2": { + "code": "EQSS2", + "display": "HIV PT 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSS3": { + "code": "EQSS3", + "display": "HIV PT 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSS4": { + "code": "EQSS4", + "display": "HIV PT 4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSS5": { + "code": "EQSS5", + "display": "HIV PT 5", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSS6": { + "code": "EQSS6", + "display": "A-6", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQST": { + "code": "EQST", + "display": "Person who Stained", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSTM": { + "code": "EQSTM", + "display": "Test Name", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQWB2": { + "code": "EQWB2", + "display": "No of White Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQWB3": { + "code": "EQWB3", + "display": "No of White Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQWBC": { + "code": "EQWBC", + "display": "No of White Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQWC2": { + "code": "EQWC2", + "display": "No of White Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQWC3": { + "code": "EQWC3", + "display": "No of White Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQWCC": { + "code": "EQWCC", + "display": "White cell count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EREGA": { + "code": "EREGA", + "display": "Regimen given after birth", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ERSLT": { + "code": "ERSLT", + "display": "Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ERTP": { + "code": "ERTP", + "display": "ERTAPENEM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ERY": { + "code": "ERY", + "display": "Red Blood Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ERY1": { + "code": "ERY1", + "display": "Erythromycin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ERYT": { + "code": "ERYT", + "display": "Erythrocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ERYTH": { + "code": "ERYTH", + "display": "Erythromycin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ESR": { + "code": "ESR", + "display": "ESR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ESTBR": { + "code": "ESTBR", + "display": "Child still breatfeeding", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ESTOB": { + "code": "ESTOB", + "display": "Stopped breastbeeding at", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ETRAV": { + "code": "ETRAV", + "display": "Etravirine (ETR)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EXHYS": { + "code": "EXHYS", + "display": "External Standard - Hys Peak", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EXPD": { + "code": "EXPD", + "display": "Expiry Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EXSTD": { + "code": "EXSTD", + "display": "External Standard-Int Std Peak", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FCLI": { + "code": "FCLI", + "display": "Follow-up Clinic", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FEP": { + "code": "FEP", + "display": "CEFEPIME", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERM2": { + "code": "FERM2", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERM3": { + "code": "FERM3", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERR": { + "code": "FERR", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERRM": { + "code": "FERRM", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERRR": { + "code": "FERRR", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERRX": { + "code": "FERRX", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERX2": { + "code": "FERX2", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FHYS": { + "code": "FHYS", + "display": "Homocysteine Fasting", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FILAG": { + "code": "FILAG", + "display": "Microfilariae Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FINR": { + "code": "FINR", + "display": "Final Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FLN": { + "code": "FLN", + "display": "Fluoride Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FLQNS": { + "code": "FLQNS", + "display": "Flouroquinolones", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FOB": { + "code": "FOB", + "display": "Ocult Blood", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FPORI": { + "code": "FPORI", + "display": "Identification", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FPORQ": { + "code": "FPORQ", + "display": "F-Porphyrin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FPROT": { + "code": "FPROT", + "display": "F-Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FRF": { + "code": "FRF", + "display": "Rheumatoid Factor (Pleural Fl)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FROTA": { + "code": "FROTA", + "display": "Rotavirus", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FSHC": { + "code": "FSHC", + "display": "Follicle Stimulating Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "F-T3": { + "code": "F-T3", + "display": "S-Free Tri-iodothyronine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "F-T4": { + "code": "F-T4", + "display": "S-Free Thyroxine (Direct)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FUNGI": { + "code": "FUNGI", + "display": "Fungi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FWBC": { + "code": "FWBC", + "display": "White Blood cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "G6PD": { + "code": "G6PD", + "display": "G6PD Assay", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "G6PDS": { + "code": "G6PDS", + "display": "D Screen Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GCLUE": { + "code": "GCLUE", + "display": "GRAM STAIN :CLUE CELLS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GCPRD": { + "code": "GCPRD", + "display": "Pregnandiol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GELNO": { + "code": "GELNO", + "display": "Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GENO": { + "code": "GENO", + "display": "Genotyping", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GENT": { + "code": "GENT", + "display": "Gentamicin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GENT1": { + "code": "GENT1", + "display": "Gentamycin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GENTA": { + "code": "GENTA", + "display": "Gentamicin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GERMT": { + "code": "GERMT", + "display": "Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL120": { + "code": "GL120", + "display": "Glucose - 2 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL150": { + "code": "GL150", + "display": "Glucose - 2.5 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL180": { + "code": "GL180", + "display": "Glucose - 3 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL210": { + "code": "GL210", + "display": "Glucose - 3.5 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL240": { + "code": "GL240", + "display": "Glucose - 4 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL270": { + "code": "GL270", + "display": "Glucose - 4.5 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL30": { + "code": "GL30", + "display": "Glucose - 30 mins", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL300": { + "code": "GL300", + "display": "Glucose - 5 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL360": { + "code": "GL360", + "display": "Glucose - 6 hrs", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL480": { + "code": "GL480", + "display": "Glucose - 8 hr", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL60": { + "code": "GL60", + "display": "Glucose - 1 Hour", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL90": { + "code": "GL90", + "display": "Glucose - 1.5 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GLOB": { + "code": "GLOB", + "display": "Globulin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GLUCS": { + "code": "GLUCS", + "display": "Glucose (POCT)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GNB": { + "code": "GNB", + "display": "Gram Negative Bacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GNC": { + "code": "GNC", + "display": "Gram Negative Cocci", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GNCB": { + "code": "GNCB", + "display": "Gram Negative Coccobacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GNDC": { + "code": "GNDC", + "display": "Gram Negative Dipplococci", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GNPB": { + "code": "GNPB", + "display": "GN Pleomorphic Bacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPB": { + "code": "GPB", + "display": "Gram Positive Bacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPBB": { + "code": "GPBB", + "display": "GP Branching Beaded Bacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPC": { + "code": "GPC", + "display": "Gram Positive Cocci", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPCC": { + "code": "GPCC", + "display": "Gram Positive Cocci Chains", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPCCL": { + "code": "GPCCL", + "display": "Gram Positive Cocci Clusters", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPCP": { + "code": "GPCP", + "display": "Gram Positive Cocci Pairs", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPDC": { + "code": "GPDC", + "display": "Gram Positive Diplococci", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPFB": { + "code": "GPFB", + "display": "GP Filamentous Bacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GRAMS": { + "code": "GRAMS", + "display": "GRAM STAIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GREPI": { + "code": "GREPI", + "display": "Epithelial Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GRERY": { + "code": "GRERY", + "display": "Erythrocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GRWC": { + "code": "GRWC", + "display": "White Blood cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GTBA": { + "code": "GTBA", + "display": "Glucose - Basal", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GTDOS": { + "code": "GTDOS", + "display": "Glucose Dose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GTXT": { + "code": "GTXT", + "display": "Text", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GVC": { + "code": "GVC", + "display": "Gram Variable Coccobacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GVINC": { + "code": "GVINC", + "display": "Vincent's Orgnisms", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GXRIF": { + "code": "GXRIF", + "display": "Rifampicin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GXTB": { + "code": "GXTB", + "display": "PCR result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GXTBR": { + "code": "GXTBR", + "display": "PCR result (raw data)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "H2RL": { + "code": "H2RL", + "display": "log value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "H2VRS": { + "code": "H2VRS", + "display": "HIV: Viral Load (Cap/CTM)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HAEM": { + "code": "HAEM", + "display": "Specimen Haemolysed", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HAEMI": { + "code": "HAEMI", + "display": "Haemolysis index", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HAUTO": { + "code": "HAUTO", + "display": "Please note:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBA": { + "code": "HBA", + "display": "Haemoglobin A", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBA1": { + "code": "HBA1", + "display": "Average Glucose (calculated)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBA1C": { + "code": "HBA1C", + "display": "Hb A1c (Glycosylated)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBA2": { + "code": "HBA2", + "display": "Haemoglobin A2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBA2D": { + "code": "HBA2D", + "display": "Haemoglobin A2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBF1": { + "code": "HBF1", + "display": "Haemoglobin F", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBFD": { + "code": "HBFD", + "display": "Haemoglobin F", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBH": { + "code": "HBH", + "display": "Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBSB1": { + "code": "HBSB1", + "display": "Hep B surface Antibody Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBU": { + "code": "HBU", + "display": "Unstable Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCBCO": { + "code": "HCBCO", + "display": "Cut off : Hepatitis C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCBFL": { + "code": "HCBFL", + "display": "Hepatitis C Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCBVA": { + "code": "HCBVA", + "display": "Value : Hepatitis C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCG": { + "code": "HCG", + "display": "Beta HCG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCGS": { + "code": "HCGS", + "display": "Serum ß-HCG Pregnancy Screen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCO3": { + "code": "HCO3", + "display": "Bicarbonate (actual)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCOM": { + "code": "HCOM", + "display": "Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCT": { + "code": "HCT", + "display": "Haematocrit", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HEAL": { + "code": "HEAL", + "display": "Health Facility", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HELPV": { + "code": "HELPV", + "display": "OD Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HELPY": { + "code": "HELPY", + "display": "Helicobacter pylori IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HEPD": { + "code": "HEPD", + "display": "Hepatitis D Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HEPE": { + "code": "HEPE", + "display": "Hepatitis E Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HERG1": { + "code": "HERG1", + "display": "Herpes simplex Type 1 IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HERG2": { + "code": "HERG2", + "display": "Herpes simplex Type 2 IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HERPG": { + "code": "HERPG", + "display": "Herpes simplex virus IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HERPM": { + "code": "HERPM", + "display": "Herpes simplex virus IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HFLU": { + "code": "HFLU", + "display": "Haemophilus influenzae", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HGB": { + "code": "HGB", + "display": "Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HGH": { + "code": "HGH", + "display": "Human Growth Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HISTD": { + "code": "HISTD", + "display": "Pathologist", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HISTS": { + "code": "HISTS", + "display": "Special Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HISTT": { + "code": "HISTT", + "display": "Specimen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIV-1": { + "code": "HIV-1", + "display": "HIV-1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVA": { + "code": "HIVA", + "display": "HIV ASANTE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVAR": { + "code": "HIVAR", + "display": "HIV: Viral Load (ART)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVBL": { + "code": "HIVBL", + "display": "log value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVBR": { + "code": "HIVBR", + "display": "HIV: Viral Load (BIO/CEN)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVCO": { + "code": "HIVCO", + "display": "CUT-OFF : HIV", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVD": { + "code": "HIVD", + "display": "HIV Determine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVE": { + "code": "HIVE", + "display": "HIV Antibodies: ELISA Method", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVL": { + "code": "HIVL", + "display": "HIV: Viral load (LCx)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVL2": { + "code": "HIVL2", + "display": "HIV: Viral load (LCx)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVLA": { + "code": "HIVLA", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVLC": { + "code": "HIVLC", + "display": "HIV: Viral Load (LCx)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVLL": { + "code": "HIVLL", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVML": { + "code": "HIVML", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVP": { + "code": "HIVP", + "display": "HIV Rapid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVPC": { + "code": "HIVPC", + "display": "Infant HIV DNA PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVPL": { + "code": "HIVPL", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVPR": { + "code": "HIVPR", + "display": "HIV: Viral Load (PANTHER)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVQL": { + "code": "HIVQL", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVR": { + "code": "HIVR", + "display": "HIV 1/2 Rapid Screening Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVRL": { + "code": "HIVRL", + "display": "log value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVRT": { + "code": "HIVRT", + "display": "HIV-1 resistance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVSI": { + "code": "HIVSI", + "display": "Sequence ID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVTL": { + "code": "HIVTL", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVTM": { + "code": "HIVTM", + "display": "HIV: Viral Load (Taqman)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVU": { + "code": "HIVU", + "display": "HIV Unigold", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVA": { + "code": "HIVVA", + "display": "HIV VALUE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVB": { + "code": "HIVVB", + "display": "HIV: Viral Load", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVC": { + "code": "HIVVC", + "display": "HIV : Viral load (low value)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVD": { + "code": "HIVVD", + "display": "HIV: Viral Load", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVM": { + "code": "HIVVM", + "display": "HIV : VIRAL LOAD", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVP": { + "code": "HIVVP", + "display": "HIV: Viral Load (Ampliprep)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVQ": { + "code": "HIVVQ", + "display": "HIV : Viral Load (NASBA)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVR": { + "code": "HIVVR", + "display": "HIV: Viral Load (CAP/CTM)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HLAXB": { + "code": "HLAXB", + "display": "Crossmatching B-Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HLB27": { + "code": "HLB27", + "display": "HLA B27", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HPRL": { + "code": "HPRL", + "display": "log value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HSVG": { + "code": "HSVG", + "display": "HERPES SIMPLEX VIRUS IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HSVM": { + "code": "HSVM", + "display": "Herpes simplex Virus IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HT": { + "code": "HT", + "display": "Patient`s Height", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HTSTB": { + "code": "HTSTB", + "display": "Heat Stability Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HTXT": { + "code": "HTXT", + "display": "Haematology Text", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HVVRS": { + "code": "HVVRS", + "display": "HIV: Viral Load (CAP/CTM)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HYS0H": { + "code": "HYS0H", + "display": "Homocysteine Fasting", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HYS6H": { + "code": "HYS6H", + "display": "Homocysteine 6H Postmethionine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HYSIN": { + "code": "HYSIN", + "display": "Homocysteine Increase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HYSUH": { + "code": "HYSUH", + "display": "Homocysteine Unknown Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ICD10": { + "code": "ICD10", + "display": "ICD10", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ICOM": { + "code": "ICOM", + "display": "Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ICOOH": { + "code": "ICOOH", + "display": "Indirect Coomb", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ICOOM": { + "code": "ICOOM", + "display": "Abnormal Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ICT": { + "code": "ICT", + "display": "Indirect coomb's test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IG#": { + "code": "IG#", + "display": "IG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IGA": { + "code": "IGA", + "display": "Total IgA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IHYS": { + "code": "IHYS", + "display": "Homocysteine Increase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IMFIX": { + "code": "IMFIX", + "display": "Immunofixation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IMI": { + "code": "IMI", + "display": "Imipenem", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IMMA": { + "code": "IMMA", + "display": "%Immature", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IMMSP": { + "code": "IMMSP", + "display": "Immediate Spin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "INCLU": { + "code": "INCLU", + "display": "Inclusions", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "INJCS": { + "code": "INJCS", + "display": "Injectibles", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "INK": { + "code": "INK", + "display": "India Ink", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "INR": { + "code": "INR", + "display": "Int Normalised Ratio (INR)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "INTXT": { + "code": "INTXT", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IPROT": { + "code": "IPROT", + "display": "F-Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IS": { + "code": "IS", + "display": "Immediate spin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ISI": { + "code": "ISI", + "display": "ISI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ITIME": { + "code": "ITIME", + "display": "Incubation Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ITITR": { + "code": "ITITR", + "display": "Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ITXT": { + "code": "ITXT", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IV": { + "code": "IV", + "display": "Index Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "JRF": { + "code": "JRF", + "display": "Rheumatoid Factor- Joint Fluid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LA1:2": { + "code": "LA1:2", + "display": "LA-1:LA-2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LA1NP": { + "code": "LA1NP", + "display": "LA-1 with normal plasma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LA2NP": { + "code": "LA2NP", + "display": "LA-2 with normal plasma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LACTT": { + "code": "LACTT", + "display": "Lactate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LAMIV": { + "code": "LAMIV", + "display": "Lamivudine (3TC)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LCHOL": { + "code": "LCHOL", + "display": "Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LCRYP": { + "code": "LCRYP", + "display": "LFA Cryptococcal Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LEUCO": { + "code": "LEUCO", + "display": "White Blood Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LHC": { + "code": "LHC", + "display": "Luteinising Hormone (L)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LI": { + "code": "LI", + "display": "Lithium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LINE0": { + "code": "LINE0", + "display": "LINE0", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LINE1": { + "code": "LINE1", + "display": "LINE1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LISS": { + "code": "LISS", + "display": "LISS-IAT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LJDAT": { + "code": "LJDAT", + "display": "Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LJDT": { + "code": "LJDT", + "display": "LJ Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LJRES": { + "code": "LJRES", + "display": "LJ Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LLA1": { + "code": "LLA1", + "display": "Lupus anticoagulant 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LLA2": { + "code": "LLA2", + "display": "Lupus anticoagulant 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LN1:2": { + "code": "LN1:2", + "display": "LA-1 NP:LA-2 NP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LPRIF": { + "code": "LPRIF", + "display": "Rifampicin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LSD": { + "code": "LSD", + "display": "Lysergic Acid Diethylamide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LTIME": { + "code": "LTIME", + "display": "Liquefaction time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LUPN": { + "code": "LUPN", + "display": "Lupus anticoagulant", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LUPP": { + "code": "LUPP", + "display": "Lupus anticoagulant (KCT)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LYM#": { + "code": "LYM#", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LYM%": { + "code": "LYM%", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LYMA%": { + "code": "LYMA%", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LYMP": { + "code": "LYMP", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MAAG": { + "code": "MAAG", + "display": "Malaria Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MACS": { + "code": "MACS", + "display": "Macroscopic supernatant", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MAL": { + "code": "MAL", + "display": "Malaria", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MALF": { + "code": "MALF", + "display": "Plasmodium Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MALRT": { + "code": "MALRT", + "display": "Malaria: PCR Results", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MALTH": { + "code": "MALTH", + "display": "Malaria(Thin film prep.)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MAPP": { + "code": "MAPP", + "display": "Macroscopic Apprearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MASS": { + "code": "MASS", + "display": "Patient`s Mass", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MBILH": { + "code": "MBILH", + "display": "istosoma haematobium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MCEA": { + "code": "MCEA", + "display": "Carcinoembryonic Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MCH": { + "code": "MCH", + "display": "MCH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MCHC": { + "code": "MCHC", + "display": "MCHC", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MCM2": { + "code": "MCM2", + "display": "Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MCOM": { + "code": "MCOM", + "display": "Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MCV": { + "code": "MCV", + "display": "MCV", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MEASG": { + "code": "MEASG", + "display": "Measles IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MEASM": { + "code": "MEASM", + "display": "Measles IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MEM": { + "code": "MEM", + "display": "MEROPENEM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MET": { + "code": "MET", + "display": "Methicillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "META#": { + "code": "META#", + "display": "Metamyelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "META%": { + "code": "META%", + "display": "Metamyelocyte", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "METH": { + "code": "METH", + "display": "Methicillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "METHD": { + "code": "METHD", + "display": "Methadone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "METQ": { + "code": "METQ", + "display": "Methaqualone (Mandrax)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MFIL": { + "code": "MFIL", + "display": "Microfilariae", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGMSA": { + "code": "MGMSA", + "display": "Slide A", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGMSB": { + "code": "MGMSB", + "display": "Slide B", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGMSC": { + "code": "MGMSC", + "display": "Slide C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGMSD": { + "code": "MGMSD", + "display": "Slide D", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGMSE": { + "code": "MGMSE", + "display": "Slide E", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGMSF": { + "code": "MGMSF", + "display": "Slide F", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSMH": { + "code": "MGSMH", + "display": "Microscopic Morphology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSRH": { + "code": "MGSRH", + "display": "Microscopic Gram Stain Reactio", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSSA": { + "code": "MGSSA", + "display": "Slide A", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSSB": { + "code": "MGSSB", + "display": "Slide B", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSSC": { + "code": "MGSSC", + "display": "Slide C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSSD": { + "code": "MGSSD", + "display": "Slide D", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSSE": { + "code": "MGSSE", + "display": "Slide E", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSSF": { + "code": "MGSSF", + "display": "Slide F", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MHEAD": { + "code": "MHEAD", + "display": "Morphology and Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MIC": { + "code": "MIC", + "display": "Microscope #", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MICH": { + "code": "MICH", + "display": "Microbiology:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MICIN": { + "code": "MICIN", + "display": "Microscopic Examination", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MICRE": { + "code": "MICRE", + "display": "MICROSCOPIC EXAMINATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MICRO": { + "code": "MICRO", + "display": "Microscope Used", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MLDL": { + "code": "MLDL", + "display": "LDL Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MLEUD": { + "code": "MLEUD", + "display": "Leucocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MMACR": { + "code": "MMACR", + "display": "MACROSCOPIC", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MOART": { + "code": "MOART", + "display": "Months since starting ARV", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MON": { + "code": "MON", + "display": "Monoclonal Band", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MONA#": { + "code": "MONA#", + "display": "Monocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MONA%": { + "code": "MONA%", + "display": "Monocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MONO": { + "code": "MONO", + "display": "Epstein Barr Heterophile Ab's", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MONO#": { + "code": "MONO#", + "display": "Monocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MONO%": { + "code": "MONO%", + "display": "Monocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MONTH": { + "code": "MONTH", + "display": "Stopped at month", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MORPH": { + "code": "MORPH", + "display": "Morphology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MOTIL": { + "code": "MOTIL", + "display": "Motility", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MPCR": { + "code": "MPCR", + "display": "Malaria: PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MPROT": { + "code": "MPROT", + "display": "U-Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MPV": { + "code": "MPV", + "display": "Mean Platelet Volume", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "M-TP": { + "code": "M-TP", + "display": "Micro Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MTRIC": { + "code": "MTRIC", + "display": "TRICHOMONAS VAGINALIS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MTXT": { + "code": "MTXT", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MTZ": { + "code": "MTZ", + "display": "Metranidazole", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MUCUS": { + "code": "MUCUS", + "display": "Mucus Threads", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MUMPG": { + "code": "MUMPG", + "display": "Mumps IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MUMPM": { + "code": "MUMPM", + "display": "Mumps IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MUP": { + "code": "MUP", + "display": "MUPIROCIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MXD#": { + "code": "MXD#", + "display": "Mixed Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MXD%": { + "code": "MXD%", + "display": "Mixed Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYCH": { + "code": "MYCH", + "display": "Culture", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYCUL": { + "code": "MYCUL", + "display": "Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYEAS": { + "code": "MYEAS", + "display": "Yeast Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYEL#": { + "code": "MYEL#", + "display": "Myelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYEL%": { + "code": "MYEL%", + "display": "Myelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYGIE": { + "code": "MYGIE", + "display": "Giemsa Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYGT": { + "code": "MYGT", + "display": "Germ Tube", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYKIN": { + "code": "MYKIN", + "display": "Kinyoun Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYMIC": { + "code": "MYMIC", + "display": "MICROSCOPIC EXAMINATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYOG": { + "code": "MYOG", + "display": "MYOGLOBIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYPAS": { + "code": "MYPAS", + "display": "PAS Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MZNS": { + "code": "MZNS", + "display": "MODIFIED ZIELH-NEELSEN STAIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NALID": { + "code": "NALID", + "display": "Nalidixic Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEI": { + "code": "NEI", + "display": "N meningitides A,C,Y,W135", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEICO": { + "code": "NEICO", + "display": "N meningitides B/E coli:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEUA#": { + "code": "NEUA#", + "display": "Neutrophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEUA%": { + "code": "NEUA%", + "display": "Neutrophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEUT#": { + "code": "NEUT#", + "display": "Neutrophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEUT%": { + "code": "NEUT%", + "display": "Neutrophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEVI": { + "code": "NEVI", + "display": "Nevirapine (NVP)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NITR": { + "code": "NITR", + "display": "Nitrofurantoin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NITRO": { + "code": "NITRO", + "display": "Nitrofurantoin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NNRTI": { + "code": "NNRTI", + "display": "NNRTI Resistance Mutations", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NONNU": { + "code": "NONNU", + "display": "Non-Nucleoside RTI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NORM": { + "code": "NORM", + "display": "%Normal", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NOS": { + "code": "NOS", + "display": "Organisms Seen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NRBC": { + "code": "NRBC", + "display": "Nucleated Red Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NRTIR": { + "code": "NRTIR", + "display": "NRTI Resistance Mutations", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NUCLE": { + "code": "NUCLE", + "display": "Nucleoside RTI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OB": { + "code": "OB", + "display": "Stool Occult Blood Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OCEA": { + "code": "OCEA", + "display": "Carcinoembryonic Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OCEL": { + "code": "OCEL", + "display": "O Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OOCYS": { + "code": "OOCYS", + "display": "Oocysts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OPIAT": { + "code": "OPIAT", + "display": "Opiates", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ORGS": { + "code": "ORGS", + "display": "Organism Identification", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ORGSV": { + "code": "ORGSV", + "display": "Organism", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ORGSW": { + "code": "ORGSW", + "display": "Organism", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ORGSX": { + "code": "ORGSX", + "display": "Organism", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ORGSY": { + "code": "ORGSY", + "display": "Organism", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OSAT": { + "code": "OSAT", + "display": "Saturation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OTERM": { + "code": "OTERM", + "display": "Other Mutations", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OTHER": { + "code": "OTHER", + "display": "Other", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OTHR#": { + "code": "OTHR#", + "display": "Other", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OTHR%": { + "code": "OTHR%", + "display": "Other", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OVA": { + "code": "OVA", + "display": "Ova", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OVA1": { + "code": "OVA1", + "display": "Ova /Cysts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OVA2": { + "code": "OVA2", + "display": "Ova/Cysts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OWCC": { + "code": "OWCC", + "display": "White Cell Count (Uncorrected)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OX19": { + "code": "OX19", + "display": "Proteus OX19 antibody", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OX2": { + "code": "OX2", + "display": "Proteus OX2 antibody", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OXAC1": { + "code": "OXAC1", + "display": "Oxacillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OXACI": { + "code": "OXACI", + "display": "Oxacillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OXK": { + "code": "OXK", + "display": "Proteus OXK antibody", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "P/N": { + "code": "P/N", + "display": "Pos/Neg", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PADIS": { + "code": "PADIS", + "display": "PRESUMPTIVE TB#/TB REGISTER#", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PAN": { + "code": "PAN", + "display": "PAN Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PARAC": { + "code": "PARAC", + "display": "Paracetamol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PARAS": { + "code": "PARAS", + "display": "Parasites", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PARS": { + "code": "PARS", + "display": "Parasitemia Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PATH": { + "code": "PATH", + "display": "Pathologist", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PATHH": { + "code": "PATHH", + "display": "Pathologist(s):", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PATT": { + "code": "PATT", + "display": "Type of Pattern", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PB/CR": { + "code": "PB/CR", + "display": "Porphobilinogen/Creatinine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PBNP": { + "code": "PBNP", + "display": "proBNP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCO2": { + "code": "PCO2", + "display": "pCO2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCRAP": { + "code": "PCRAP", + "display": "Factor V Leiden Mutation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCRH": { + "code": "PCRH", + "display": "DNA PCR Test Information", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCRQ": { + "code": "PCRQ", + "display": "Quantitative", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCRR": { + "code": "PCRR", + "display": "PCR Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCTR": { + "code": "PCTR", + "display": "Procalcitonin - Rapid Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCULT": { + "code": "PCULT", + "display": "CULTURE RESULT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCV": { + "code": "PCV", + "display": "PCV", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PDBIL": { + "code": "PDBIL", + "display": "Conjuagted Bilirubin (Paeds)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PDW": { + "code": "PDW", + "display": "Platelet Distribution Width", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PEN": { + "code": "PEN", + "display": "Penicillin G", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PENG": { + "code": "PENG", + "display": "Penicillin G", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PENG1": { + "code": "PENG1", + "display": "Penicillin G", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PER": { + "code": "PER", + "display": "Creat. Clearance Period", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PFAL": { + "code": "PFAL", + "display": "Plasmodium Falciparum Ag", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PGRP": { + "code": "PGRP", + "display": "Patient Group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PH": { + "code": "PH", + "display": "Ph", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHB": { + "code": "PHB", + "display": "Phoned by", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHD": { + "code": "PHD", + "display": "Date Phoned", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHENB": { + "code": "PHENB", + "display": "Phenobarbitone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHENC": { + "code": "PHENC", + "display": "Phencyclidine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHENY": { + "code": "PHENY", + "display": "Phenytoin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHN": { + "code": "PHN", + "display": "Phoned to", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHT": { + "code": "PHT", + "display": "Time phoned", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHTXT": { + "code": "PHTXT", + "display": "Message", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHYS": { + "code": "PHYS", + "display": "Homocysteine 6H Postmethionine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHYS0": { + "code": "PHYS0", + "display": "Patient - Hys Peak 0 hr", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHYS6": { + "code": "PHYS6", + "display": "Patient - Hys Peak 6 hr", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHYSU": { + "code": "PHYSU", + "display": "Patient - Hys Peak Unknown", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PIPER": { + "code": "PIPER", + "display": "Piperacillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PLAC": { + "code": "PLAC", + "display": "p-Lactic Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PLT": { + "code": "PLT", + "display": "Platelet Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PLTAB": { + "code": "PLTAB", + "display": "Platelet Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PMTCH": { + "code": "PMTCH", + "display": "PMTCT Infant", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PMTMO": { + "code": "PMTMO", + "display": "PMTCT Mother", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PNEUM": { + "code": "PNEUM", + "display": "Streptococcus pneumoniae", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PO/CR": { + "code": "PO/CR", + "display": "Porphyrin/Creatinine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PO2": { + "code": "PO2", + "display": "pO2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "POCVR": { + "code": "POCVR", + "display": "HIV: Viral Load (GENEX)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "POLI1": { + "code": "POLI1", + "display": "Poliovirus Type 1 Abs", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "POLI2": { + "code": "POLI2", + "display": "Poliovirus Type 2 Abs", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "POLI3": { + "code": "POLI3", + "display": "Poliovirus Type 3 Abs", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "POLY": { + "code": "POLY", + "display": "Polymorphonuclear cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "POLYM": { + "code": "POLYM", + "display": "Polymyxin B", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PORL": { + "code": "PORL", + "display": "log value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PREG": { + "code": "PREG", + "display": "Pregnancy Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PRLC": { + "code": "PRLC", + "display": "Prolactin (PRL)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PROGC": { + "code": "PROGC", + "display": "Progesterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PROM#": { + "code": "PROM#", + "display": "Promyelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PROM%": { + "code": "PROM%", + "display": "Promyelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PROTC": { + "code": "PROTC", + "display": "Protein C (Chromogenic)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PROTS": { + "code": "PROTS", + "display": "Protein S (Functional)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PRTCF": { + "code": "PRTCF", + "display": "Protein C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSA": { + "code": "PSA", + "display": "Prostate Specific Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSCHE": { + "code": "PSCHE", + "display": "Pseudocholinesterase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSHY": { + "code": "PSHY", + "display": "Pseudohyphae", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSTD0": { + "code": "PSTD0", + "display": "Patient - Int Std Peak 0 hr", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSTD6": { + "code": "PSTD6", + "display": "Patient - Int Std Peak 6 hr", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSTDU": { + "code": "PSTDU", + "display": "Patient-Int Std Peak Unknown", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PT": { + "code": "PT", + "display": "Prothrombin Time (Patient)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTBIL": { + "code": "PTBIL", + "display": "Total Bilirubin (Paediatric)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTC": { + "code": "PTC", + "display": "Prothrombin Time (Control)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTH": { + "code": "PTH", + "display": "Parathyroid Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTHA": { + "code": "PTHA", + "display": "Parathyroid Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTHM": { + "code": "PTHM", + "display": "Parathyroid Hormone (mass)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTHP": { + "code": "PTHP", + "display": "p-Parathyroid Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTTR": { + "code": "PTTR", + "display": "PTT Ratio", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PVIV": { + "code": "PVIV", + "display": "Plasmodium Vivax Ag", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QBAS%": { + "code": "QBAS%", + "display": "Basophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCD3": { + "code": "QCD3", + "display": "CD3 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCD3L": { + "code": "QCD3L", + "display": "CD3%", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCD4": { + "code": "QCD4", + "display": "CD4 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCD4L": { + "code": "QCD4L", + "display": "CD4%", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCD8": { + "code": "QCD8", + "display": "CD8 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCD8L": { + "code": "QCD8L", + "display": "CD8%", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCWBC": { + "code": "QCWBC", + "display": "Leucocyte Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QEOS%": { + "code": "QEOS%", + "display": "Eosinophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QHBG": { + "code": "QHBG", + "display": "ABO Blood group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QHCG": { + "code": "QHCG", + "display": "Quantitative á-HCG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QHRG": { + "code": "QHRG", + "display": "Rhesus status", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QLYM%": { + "code": "QLYM%", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QMCHC": { + "code": "QMCHC", + "display": "EQMCHC", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QMON%": { + "code": "QMON%", + "display": "Monocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QNEU%": { + "code": "QNEU%", + "display": "Neutrophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QPEHE": { + "code": "QPEHE", + "display": "CTROPHORETIC PATTERN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QRPR1": { + "code": "QRPR1", + "display": "RPR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QRPRT": { + "code": "QRPRT", + "display": "RPR titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QRPRW": { + "code": "QRPRW", + "display": "RPR Titre Wells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RAPI2": { + "code": "RAPI2", + "display": "HIV 1/2 Rapid Repeat", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RATIO": { + "code": "RATIO", + "display": "RATIOS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RBC": { + "code": "RBC", + "display": "Erythrocyte Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RBCA": { + "code": "RBCA", + "display": "RBC", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RCC": { + "code": "RCC", + "display": "Erythrocyte Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RCCHE": { + "code": "RCCHE", + "display": "Red Cell Cholinesterase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RCELU": { + "code": "RCELU", + "display": "Red Cell Eluate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RCOM": { + "code": "RCOM", + "display": "Red Cell Morphology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RDW": { + "code": "RDW", + "display": "RDW", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RECR": { + "code": "RECR", + "display": "Recepient Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "REJCT": { + "code": "REJCT", + "display": "Specimen Rejected", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "REM": { + "code": "REM", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RENIC": { + "code": "RENIC", + "display": "Renin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "REQTS": { + "code": "REQTS", + "display": "Test/s requested", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RESLT": { + "code": "RESLT", + "display": "Mgit Reading (for Controls)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RETA": { + "code": "RETA", + "display": "Absolute Reticulocyte Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RETIC": { + "code": "RETIC", + "display": "Reticulocyte Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RETM": { + "code": "RETM", + "display": "Maturation Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF": { + "code": "RF", + "display": "Rheumatoid Factor(Screen)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF13": { + "code": "RF13", + "display": "IgE to Peanuts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF14": { + "code": "RF14", + "display": "IgE to Soya Bean", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF2": { + "code": "RF2", + "display": "IgE to Cow`s Milk", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF3": { + "code": "RF3", + "display": "IgE to Fish (Cod)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF4": { + "code": "RF4", + "display": "Rheumatoid Factor Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF8": { + "code": "RF8", + "display": "to Maize", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RFQM": { + "code": "RFQM", + "display": "Rheumatoid Factor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RFR": { + "code": "RFR", + "display": "RF Rule", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RFT": { + "code": "RFT", + "display": "Rheumatoid Factor Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RG": { + "code": "RG", + "display": "Rhesus Type", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RGLU": { + "code": "RGLU", + "display": "Glucose Random", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RH": { + "code": "RH", + "display": "Rhesus (D)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RHAB": { + "code": "RHAB", + "display": "Atypical Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RHABC": { + "code": "RHABC", + "display": "Anribody Identification", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RHABI": { + "code": "RHABI", + "display": "Antibody Identification", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RHABT": { + "code": "RHABT", + "display": "Antibody Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RHNEG": { + "code": "RHNEG", + "display": "Negative", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RIFTB": { + "code": "RIFTB", + "display": "Rifampicin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RILPI": { + "code": "RILPI", + "display": "Rilpivirine (RPV)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RINHS": { + "code": "RINHS", + "display": "Inhalant Screen Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RJREA": { + "code": "RJREA", + "display": "Reject Reason", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RJREM": { + "code": "RJREM", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ROTA": { + "code": "ROTA", + "display": "Rotavirus Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ROTAG": { + "code": "ROTAG", + "display": "Rotavirus Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ROTRT": { + "code": "ROTRT", + "display": "Rotavirus PCR Results", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RPCR": { + "code": "RPCR", + "display": "Rotavirus: PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RPI": { + "code": "RPI", + "display": "Reticulocyte Production Index", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RPR1": { + "code": "RPR1", + "display": "RPR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RPRT": { + "code": "RPRT", + "display": "RPR Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RPRW": { + "code": "RPRW", + "display": "RPR Titre Wells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RRF1": { + "code": "RRF1", + "display": "IgE to Egg White", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RRF4": { + "code": "RRF4", + "display": "IgE to Wheat", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RTTBP": { + "code": "RTTBP", + "display": "Real-time PCR for M tubercul", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RUGFL": { + "code": "RUGFL", + "display": "Rubella IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RUGT": { + "code": "RUGT", + "display": "Rubella IgG Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RUMFL": { + "code": "RUMFL", + "display": "Rubella IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RUMT": { + "code": "RUMT", + "display": "Rubella IgM Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SABCO": { + "code": "SABCO", + "display": "Cut off : Surface antibody", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SABFL": { + "code": "SABFL", + "display": "Hepatitis B surface Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SABNI": { + "code": "SABNI", + "display": "Abnormal forms include:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SABVA": { + "code": "SABVA", + "display": "Value : Surface antibody", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SACE": { + "code": "SACE", + "display": "Angiotensin Converting Enzyme", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SACT2": { + "code": "SACT2", + "display": "Adreno-corticotrophic Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SACTH": { + "code": "SACTH", + "display": "Adreno-corticotrophic Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SADA": { + "code": "SADA", + "display": "Adenosine Deaminase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SAGCO": { + "code": "SAGCO", + "display": "Cut off : Surface antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SAGFL": { + "code": "SAGFL", + "display": "Hepatitis B Surface Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SAGVA": { + "code": "SAGVA", + "display": "Value : Surface antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALC": { + "code": "SALC", + "display": "S-Salicylate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALHT": { + "code": "SALHT", + "display": "Salmonella typhi H titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALP": { + "code": "SALP", + "display": "Alkaline Phosphatase (ALP)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALT": { + "code": "SALT", + "display": "Alanine Transaminase (ALT)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SAMY": { + "code": "SAMY", + "display": "Serum Amylase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SAPP": { + "code": "SAPP", + "display": "Appearance (fresh semen)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SAST": { + "code": "SAST", + "display": "Aspartate Transaminase (AST)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SIBIL": { + "code": "SIBIL", + "display": "Bilirubin (indirect)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCHOL": { + "code": "SCHOL", + "display": "S-Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCK2": { + "code": "SCK2", + "display": "Creatine Kinase (CK)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCKMB": { + "code": "SCKMB", + "display": "CKMB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCO2": { + "code": "SCO2", + "display": "Carbon dioxide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCORT": { + "code": "SCORT", + "display": "Cortisol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCOUN": { + "code": "SCOUN", + "display": "Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCRN": { + "code": "SCRN", + "display": "ABO Screening", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCRT": { + "code": "SCRT", + "display": "S-Creatinine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SDBIL": { + "code": "SDBIL", + "display": "Bilirubin (direct)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SERY": { + "code": "SERY", + "display": "Red Blood Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SGGT": { + "code": "SGGT", + "display": "g-Glutamyl Transferase (GGT)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SGLU": { + "code": "SGLU", + "display": "Glucose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SHDL": { + "code": "SHDL", + "display": "S-HDL Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SIRON": { + "code": "SIRON", + "display": "Iron", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SK": { + "code": "SK", + "display": "Potassium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SLDH": { + "code": "SLDH", + "display": "Lactate Dehydrogenase (LD)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SLDL": { + "code": "SLDL", + "display": "S-LDL Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SLGIE": { + "code": "SLGIE", + "display": "Slides GIEMSA Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SLPAP": { + "code": "SLPAP", + "display": "Slides PAP Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SMG": { + "code": "SMG", + "display": "S-Magnesium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SMOT2": { + "code": "SMOT2", + "display": "%Progressive motility 2nd hour", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SMOT3": { + "code": "SMOT3", + "display": "%Progressive motility 3rd hour", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SMOT6": { + "code": "SMOT6", + "display": "%Progressive motility 6th hour", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SMOTI": { + "code": "SMOTI", + "display": "Motility Studies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SMYO": { + "code": "SMYO", + "display": "S-Myoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SNA": { + "code": "SNA", + "display": "Sodium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SNPP": { + "code": "SNPP", + "display": "S-Acid Phos. Non-Prostatic", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SPEM": { + "code": "SPEM", + "display": "Spermatozoa", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SPH": { + "code": "SPH", + "display": "Reaction (pH)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SPO4": { + "code": "SPO4", + "display": "S-Phosphate Inorganic", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SRATE": { + "code": "SRATE", + "display": "Rate of forward progression", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SSMEL": { + "code": "SSMEL", + "display": "Smell", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "STACP": { + "code": "STACP", + "display": "S-Acid Phosphatase (Total)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "STBIL": { + "code": "STBIL", + "display": "Bilirubin (Total)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "STP": { + "code": "STP", + "display": "S-Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "STRIG": { + "code": "STRIG", + "display": "S-Triglycerides", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SUREA": { + "code": "SUREA", + "display": "Blood urea nitrogen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SVISC": { + "code": "SVISC", + "display": "Viscosity after liquefaction", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SVITA": { + "code": "SVITA", + "display": "Vitality after 2 hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SVOL": { + "code": "SVOL", + "display": "Volume of collection", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SWBC": { + "code": "SWBC", + "display": "White Blood cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBADT": { + "code": "TBADT", + "display": "Tuberculosis investigation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBAMI": { + "code": "TBAMI", + "display": "Amikacin (1ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBAR1": { + "code": "TBAR1", + "display": "Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBAR2": { + "code": "TBAR2", + "display": "Grading", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBARM": { + "code": "TBARM", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBBAC": { + "code": "TBBAC", + "display": "Mgit Reading", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBBCM": { + "code": "TBBCM", + "display": "Bactec Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBBDT": { + "code": "TBBDT", + "display": "Instrument Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBC1D": { + "code": "TBC1D", + "display": "Reprocessed Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBCLO": { + "code": "TBCLO", + "display": "Clofazimine (1ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBCN1": { + "code": "TBCN1", + "display": "Reprocessed", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBETM": { + "code": "TBETM", + "display": "Ethambutol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBINH": { + "code": "TBINH", + "display": "Isoniazid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBLEV": { + "code": "TBLEV", + "display": "Levofloxacin (1ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBMOF": { + "code": "TBMOF", + "display": "Moxifloxacin (0.25ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBODT": { + "code": "TBODT", + "display": "Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBORG": { + "code": "TBORG", + "display": "Org Isolated", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBP-A": { + "code": "TBP-A", + "display": "P-Aminosalicylic Acid (4ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBRCM": { + "code": "TBRCM", + "display": "TB Rapid Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBRIF": { + "code": "TBRIF", + "display": "Rifampicin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBRP": { + "code": "TBRP", + "display": "TB Rapid ID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TEST": { + "code": "TEST", + "display": "Testosterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TETRA": { + "code": "TETRA", + "display": "Tetracycline", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "THSR": { + "code": "THSR", + "display": "T H/S Ratio", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TMP": { + "code": "TMP", + "display": "Trimethoprim", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TPHA": { + "code": "TPHA", + "display": "TPHA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TROP": { + "code": "TROP", + "display": "Troponin T", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TROPI": { + "code": "TROPI", + "display": "S-TROPONIN I", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TRYP": { + "code": "TRYP", + "display": "Trypanosomes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TS": { + "code": "TS", + "display": "Co-trimoxazole", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TSH": { + "code": "TSH", + "display": "S-TSH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TWBCC": { + "code": "TWBCC", + "display": "Total White Blood Cell Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TXMFL": { + "code": "TXMFL", + "display": "Toxoplasma IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TZP": { + "code": "TZP", + "display": "Piperacillin/Tazobactam", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UAMY": { + "code": "UAMY", + "display": "Amylase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UBACT": { + "code": "UBACT", + "display": "Bacteria", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UBL": { + "code": "UBL", + "display": "Blood", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UCRT": { + "code": "UCRT", + "display": "U-Creatinine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UHB": { + "code": "UHB", + "display": "Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UMA": { + "code": "UMA", + "display": "U-Microalbumin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UMAER": { + "code": "UMAER", + "display": "Microalbumin excretion rate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UPREG": { + "code": "UPREG", + "display": "Pregnancy Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "USG": { + "code": "USG", + "display": "Specific Gravity", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UUBGN": { + "code": "UUBGN", + "display": "Urobilinogen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UVOL": { + "code": "UVOL", + "display": "U-Volume", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VALPR": { + "code": "VALPR", + "display": "S-Valproate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VANCO": { + "code": "VANCO", + "display": "Vancomycin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VCULT": { + "code": "VCULT", + "display": "CULTURE RESULT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VDRLS": { + "code": "VDRLS", + "display": "VDRL Screen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VDRLT": { + "code": "VDRLT", + "display": "VDRL Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VEPI": { + "code": "VEPI", + "display": "Epithelial Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VGLU": { + "code": "VGLU", + "display": "F-Glucose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VITD": { + "code": "VITD", + "display": "1.25 Dihydroxy Vitamin D", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VOL": { + "code": "VOL", + "display": "Volume of collection", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VZG": { + "code": "VZG", + "display": "Varicella-Zoster IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WBACT": { + "code": "WBACT", + "display": "0rganisms Seen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WBC": { + "code": "WBC", + "display": "Leucocyte Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WDU": { + "code": "WDU", + "display": "Weak D", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WEPI": { + "code": "WEPI", + "display": "EPITHELIAL CELLS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WERY": { + "code": "WERY", + "display": "RED BLOOD CELLS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WET": { + "code": "WET", + "display": "WET PREPARATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WFH": { + "code": "WFH", + "display": "FUNGAL HYPHAE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WPSHY": { + "code": "WPSHY", + "display": "PSEUDOHYPHAE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WWBC": { + "code": "WWBC", + "display": "WHITE BLOOD CELLS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WYST": { + "code": "WYST", + "display": "YEAST CELLS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "XGLUC": { + "code": "XGLUC", + "display": "P-Glucose (Fasting)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "YEAST": { + "code": "YEAST", + "display": "Yeast Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ZIN": { + "code": "ZIN", + "display": "Zinate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COV19": { + "code": "COV19", + "display": "SARS-CoV-2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CVCOM": { + "code": "CVCOM", + "display": "SARS-CoV-2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CA15-3": { + "code": "CA15-3", + "display": "CA153", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCA": { + "code": "SCA", + "display": "S-Calcium total", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCL": { + "code": "SCL", + "display": "Chloride", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "XMATC": { + "code": "XMATC", + "display": "Cross Match Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "!GXMT": { + "code": "!GXMT", + "display": "GeneXpert MTB Rule", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SUA": { + "code": "SUA", + "display": "Uric acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SUAA": { + "code": "SUAA", + "display": "Uric acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VCRT": { + "code": "VCRT", + "display": "Creatinine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DLM": { + "code": "DLM", + "display": "Delamanid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LZD": { + "code": "LZD", + "display": "Linezolid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BDQ": { + "code": "BDQ", + "display": "Bedaquiline", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBETH": { + "code": "TBETH", + "display": "Ethionamide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBISO": { + "code": "TBISO", + "display": "Isoniazid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBZCM": { + "code": "TBZCM", + "display": "ZN Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBZDT": { + "code": "TBZDT", + "display": "Zn Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBZH": { + "code": "TBZH", + "display": "ZEIHL-NEELSEN STAIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBZN": { + "code": "TBZN", + "display": "Ziehl-Neelsen Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBZNI": { + "code": "TBZNI", + "display": "TBZN Internal", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBLIN": { + "code": "TBLIN", + "display": "Linezolid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WBCA": { + "code": "WBCA", + "display": "WBC", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALTH": { + "code": "SALTH", + "display": "Salmonella typhi H antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALOT": { + "code": "SALOT", + "display": "Salmonella typhi O titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LYMA#": { + "code": "LYMA#", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CVRP": { + "code": "CVRP", + "display": "COVID-19 Ag Rapid Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CT": { + "code": "CT", + "display": "Chlamydia Trachomatis", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NG": { + "code": "NG", + "display": "Neisseria Gonorrhoeae", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RCHOL": { + "code": "RCHOL", + "display": "RCHOL-Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DSYTP": { + "code": "DSYTP", + "display": "Determinate Syphilis TP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBAU": { + "code": "TBAU", + "display": "Auramine Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBCM": { + "code": "TBCM", + "display": "Auramine Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBRI2": { + "code": "TBRI2", + "display": "Rifampicin (0.5ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBMOX": { + "code": "TBMOX", + "display": "Moxifloxacin (1ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBSF": { + "code": "TBSF", + "display": "TB First Line Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBLP": { + "code": "TBLP", + "display": "TB Line Probe Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVPS": { + "code": "HIVPS", + "display": "HIV Viral Load (PSC)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSC2": { + "code": "PSC2", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSCD": { + "code": "PSCD", + "display": "HIV Viral Load", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCOM": { + "code": "SCOM", + "display": "Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestParameterCodeVS": { + "NIT": { + "code": "NIT", + "display": "Nitrate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UG": { + "code": "UG", + "display": "Glucose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UP": { + "code": "UP", + "display": "Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UPH": { + "code": "UPH", + "display": "pH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UBILI": { + "code": "UBILI", + "display": "Bilirubin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UKET": { + "code": "UKET", + "display": "Ketones", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ULEST": { + "code": "ULEST", + "display": "Leucocyte Esterase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "N/A": { + "code": "N/A", + "display": "Urobilirubin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#BAND": { + "code": "#BAND", + "display": "Band Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#BASO": { + "code": "#BASO", + "display": "Basophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#EOS": { + "code": "#EOS", + "display": "Eosinophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#IG": { + "code": "#IG", + "display": "IG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#LYM": { + "code": "#LYM", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#META": { + "code": "#META", + "display": "Metamyelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#MONO": { + "code": "#MONO", + "display": "Monocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#MYEL": { + "code": "#MYEL", + "display": "Myelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#NEUT": { + "code": "#NEUT", + "display": "Neutrophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "#PROM": { + "code": "#PROM", + "display": "Promyelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "%BJP": { + "code": "%BJP", + "display": "% Bence Jones Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "%BSAT": { + "code": "%BSAT", + "display": "Transferrin Saturation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "%HBA1": { + "code": "%HBA1", + "display": "% HBA1C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "%SAT": { + "code": "%SAT", + "display": "Transferrin Saturation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "17AHQ": { + "code": "17AHQ", + "display": "17 Alpha-hydroxyprogesterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "1ST": { + "code": "1ST", + "display": "First Line", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "2ND": { + "code": "2ND", + "display": "Second Line", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "A1ATR": { + "code": "A1ATR", + "display": "S-ƒ -1-antitrypsin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "A1CEL": { + "code": "A1CEL", + "display": "A1 Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "A2CEL": { + "code": "A2CEL", + "display": "A2 Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABAC": { + "code": "ABAC", + "display": "Abacavir (ABC)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABNO": { + "code": "ABNO", + "display": "%Abnormal", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABO": { + "code": "ABO", + "display": "Blood Group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABRH": { + "code": "ABRH", + "display": "or Group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABRH1": { + "code": "ABRH1", + "display": "Donor Unit 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABRH2": { + "code": "ABRH2", + "display": "Donor Unit 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABRH3": { + "code": "ABRH3", + "display": "Donor Unit 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ABRH4": { + "code": "ABRH4", + "display": "Donor Unit 4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACA": { + "code": "ACA", + "display": "i-Centromere Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACAS": { + "code": "ACAS", + "display": "Anti-Centromere Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACEA": { + "code": "ACEA", + "display": "Carcinoembryonic Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACEAB": { + "code": "ACEAB", + "display": "Acetylcholine Receptor Ab`s", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACLA": { + "code": "ACLA", + "display": "i-Cardiolipin Ab (IgG)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACLAG": { + "code": "ACLAG", + "display": "i-Cardiolipin Ab`s IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACLAM": { + "code": "ACLAM", + "display": "i-Cardiolipin Ab`s IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACOLA": { + "code": "ACOLA", + "display": "i-Collagen Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACTH": { + "code": "ACTH", + "display": "eno-corticotrophic Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACTHI": { + "code": "ACTHI", + "display": "eno-corticotrophic Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ACTHO": { + "code": "ACTHO", + "display": "eno-corticotrophic Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ADATE": { + "code": "ADATE", + "display": "Autopsy Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ADENO": { + "code": "ADENO", + "display": "Fecal adenovirus", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ADNA": { + "code": "ADNA", + "display": "i-Double Stranded DNA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ADNAM": { + "code": "ADNAM", + "display": "Anti-Double Stranded DNA (EIA)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ADNAR": { + "code": "ADNAR", + "display": "dsDNA Rule", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ADNAS": { + "code": "ADNAS", + "display": "Anti-Double Stranded DNA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AFB": { + "code": "AFB", + "display": "Zeihl-Neelsen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AFP": { + "code": "AFP", + "display": "Alpa Feto Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AGHT": { + "code": "AGHT", + "display": "Anti-human globulin testing", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AHE": { + "code": "AHE", + "display": "ormal Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AHEAL": { + "code": "AHEAL", + "display": "ANC Health Facility", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AHG": { + "code": "AHG", + "display": "i-human globulin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AK": { + "code": "AK", + "display": "Amikacin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AK1": { + "code": "AK1", + "display": "Amikacin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ALDOQ": { + "code": "ALDOQ", + "display": "Aldosterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ALDOS": { + "code": "ALDOS", + "display": "Aldosterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMC": { + "code": "AMC", + "display": "Amoxilin/Clavulanic Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMIK": { + "code": "AMIK", + "display": "Amikacin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMITA": { + "code": "AMITA", + "display": "i-Mitochondrial Antibodies/A-Mit Ab", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMITT": { + "code": "AMITT", + "display": "Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMOX": { + "code": "AMOX", + "display": "Amoxicillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMOX1": { + "code": "AMOX1", + "display": "Amoxicillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMP": { + "code": "AMP", + "display": "Ampicillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMPHE": { + "code": "AMPHE", + "display": "hetamine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AMPIC": { + "code": "AMPIC", + "display": "Ampicillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANAH": { + "code": "ANAH", + "display": "i-Nuclear Ab (Hep-2)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANCN": { + "code": "ANCN", + "display": "ANC Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANCP": { + "code": "ANCP", + "display": "From ANC (Pink) card", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANDRS": { + "code": "ANDRS", + "display": "Androstenedione", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANION": { + "code": "ANION", + "display": "Anion Gap", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANTAB": { + "code": "ANTAB", + "display": "Anti AB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANTIA": { + "code": "ANTIA", + "display": "Anti A", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANTIB": { + "code": "ANTIB", + "display": "Anti B", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ANTID": { + "code": "ANTID", + "display": "Rhesus D", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APCA": { + "code": "APCA", + "display": "i-Parietal Cell Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APP": { + "code": "APP", + "display": "Appearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APPEA": { + "code": "APPEA", + "display": "Naked Eye Appearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APPET": { + "code": "APPET", + "display": "Naked eye appearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APPF": { + "code": "APPF", + "display": "Fluid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APPS": { + "code": "APPS", + "display": "Supernatant Appearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APTC": { + "code": "APTC", + "display": "T (Control)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "APTT": { + "code": "APTT", + "display": "T (Patient)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARTN": { + "code": "ARTN", + "display": "ART Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARTTX": { + "code": "ARTTX", + "display": "ART Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVID": { + "code": "ARVID", + "display": "ARV ID Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVO": { + "code": "ARVO", + "display": "Other ARV treatment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVO1": { + "code": "ARVO1", + "display": "Other Drugs (1)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVO2": { + "code": "ARVO2", + "display": "Other Drugs (2)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVO3": { + "code": "ARVO3", + "display": "Other Drugs (3)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVS": { + "code": "ARVS", + "display": "ARV Programme status", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVT1": { + "code": "ARVT1", + "display": "ARV treatment (1)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVT2": { + "code": "ARVT2", + "display": "ARV treatment (2)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ARVT3": { + "code": "ARVT3", + "display": "ARV treatment (3)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ASKMA": { + "code": "ASKMA", + "display": "i-skeletal muscle Ab`s", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ASL": { + "code": "ASL", + "display": "i-Streptolysin O Latex", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ASMA": { + "code": "ASMA", + "display": "i-Smooth Muscle Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ASOT": { + "code": "ASOT", + "display": "i-Streptolysin O Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ASPR": { + "code": "ASPR", + "display": "ASPIRATOR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AST": { + "code": "AST", + "display": "Antimicrobial Sensitivity Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AUG": { + "code": "AUG", + "display": "Co-amoxiclav", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "AUG1": { + "code": "AUG1", + "display": "Augmentin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "B2GPG": { + "code": "B2GPG", + "display": "Beta-2 Glycoprotein IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "B2GPM": { + "code": "B2GPM", + "display": "Beta-2 Glycoprotein IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BACET": { + "code": "BACET", + "display": "S-Acetaminophen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BACT": { + "code": "BACT", + "display": "0rganisms Seen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALB": { + "code": "SALB", + "display": "Albumin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BAND#": { + "code": "BAND#", + "display": "Band Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BAND%": { + "code": "BAND%", + "display": "Band Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BARB": { + "code": "BARB", + "display": "Barbiturate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BARES": { + "code": "BARES", + "display": "Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BASA#": { + "code": "BASA#", + "display": "Basophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BASA%": { + "code": "BASA%", + "display": "Basophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BASO#": { + "code": "BASO#", + "display": "Basoophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BASO%": { + "code": "BASO%", + "display": "Basophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BAUTO": { + "code": "BAUTO", + "display": "Auto Control", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BBCOM": { + "code": "BBCOM", + "display": "Comment:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BBTXT": { + "code": "BBTXT", + "display": "Remarks:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BCEL": { + "code": "BCEL", + "display": "B Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BCULT": { + "code": "BCULT", + "display": "TURE RESULT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BE": { + "code": "BE", + "display": "Base Excess", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BENZO": { + "code": "BENZO", + "display": "Benzodiazepine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BENZV": { + "code": "BENZV", + "display": "BZD Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BG": { + "code": "BG", + "display": "Blood Group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BHCG2": { + "code": "BHCG2", + "display": "HCG TOTAL BETA (TUMOR MARKER)*", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BIOCH": { + "code": "BIOCH", + "display": "BIO-CHEMISTRY (Dipstick)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BIRON": { + "code": "BIRON", + "display": "Iron", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BLST#": { + "code": "BLST#", + "display": "Blasts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BLST%": { + "code": "BLST%", + "display": "Blasts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BMTXT": { + "code": "BMTXT", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BPH": { + "code": "BPH", + "display": "pH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BPROC": { + "code": "BPROC", + "display": "Product", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BREAS": { + "code": "BREAS", + "display": "Breastfeeding", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BROMS": { + "code": "BROMS", + "display": "Bromelin Screening", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BS1": { + "code": "BS1", + "display": "S1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BS2": { + "code": "BS2", + "display": "S2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BSA": { + "code": "BSA", + "display": "y Surface Area", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BSCR1": { + "code": "BSCR1", + "display": "Bromelin Screen Cell 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BSCR2": { + "code": "BSCR2", + "display": "Bromelin Screen Cell 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BSCR3": { + "code": "BSCR3", + "display": "Bromelin Screen Cell 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BTFN": { + "code": "BTFN", + "display": "Transferrin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BTIME": { + "code": "BTIME", + "display": "Bleeding Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BTNP": { + "code": "BTNP", + "display": "B-Type Natriuretic Peptide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BTYPE": { + "code": "BTYPE", + "display": "Bottle Type", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BUA": { + "code": "BUA", + "display": "Uric Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BV": { + "code": "BV", + "display": "Interpretation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C125B": { + "code": "C125B", + "display": "CA125", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C15-3": { + "code": "C15-3", + "display": "CA15-3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C1EI": { + "code": "C1EI", + "display": "C1 Esterase Inhibitor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C1ESC": { + "code": "C1ESC", + "display": "C1 Esterase Inhibitor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C1ESI": { + "code": "C1ESI", + "display": "C1 Esterase Inhibitor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C3": { + "code": "C3", + "display": "Complement Component C3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C4": { + "code": "C4", + "display": "Complement Component C4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "C6": { + "code": "C6", + "display": "Complement Component C6", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CA199": { + "code": "CA199", + "display": "CA19-9", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CA724": { + "code": "CA724", + "display": "CA 72-4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CABCO": { + "code": "CABCO", + "display": "Cut-off : Core antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CABFL": { + "code": "CABFL", + "display": "atitis B core ab (Total)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CABVA": { + "code": "CABVA", + "display": "Value : Core antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CACOR": { + "code": "CACOR", + "display": "S-Calcium (Corrected)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CAERU": { + "code": "CAERU", + "display": "Caeruloplasmin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CALCL": { + "code": "CALCL", + "display": "Calculated Clearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CALCN": { + "code": "CALCN", + "display": "Calcitonin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CALCO": { + "code": "CALCO", + "display": "cofluor Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CANN": { + "code": "CANN", + "display": "U-Cannabinoids", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CANNQ": { + "code": "CANNQ", + "display": "U-Cannabinoids", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CAPIL": { + "code": "CAPIL", + "display": "ID Rapid Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CAPP": { + "code": "CAPP", + "display": "Specimen Appearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CARB": { + "code": "CARB", + "display": "S-Carbamazepine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CAREH": { + "code": "CAREH", + "display": "Caregiver Details", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CASTS": { + "code": "CASTS", + "display": "Casts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CATSC": { + "code": "CATSC", + "display": "U-Catecholamines", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CATSO": { + "code": "CATSO", + "display": "dU-Catecholamines", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CBAC": { + "code": "CBAC", + "display": "Control Bead Abs Cnt", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCL": { + "code": "CCL", + "display": "CSF Chloride", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCLEA": { + "code": "CCLEA", + "display": "Corrected Clearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCNT": { + "code": "CCNT", + "display": "CELL COUNT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCOM": { + "code": "CCOM", + "display": "COMMENT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCON": { + "code": "CCON", + "display": "Conclusion", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCOO": { + "code": "CCOO", + "display": "Coomb's control", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCREM": { + "code": "CCREM", + "display": "Recommendation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CCULT": { + "code": "CCULT", + "display": "CULTURE RESULT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD3": { + "code": "CD3", + "display": "CD3 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD3L": { + "code": "CD3L", + "display": "CD3%", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD4": { + "code": "CD4", + "display": "CD4 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD45": { + "code": "CD45", + "display": "CD45 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD4L": { + "code": "CD4L", + "display": "CD4%", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD8": { + "code": "CD8", + "display": "CD 8 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CD8L": { + "code": "CD8L", + "display": "CD8%", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEFAZ": { + "code": "CEFAZ", + "display": "Cefazolin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEFO1": { + "code": "CEFO1", + "display": "Cefotaxime", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEFOT": { + "code": "CEFOT", + "display": "Cefotaxime/Ceftriazone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEFOX": { + "code": "CEFOX", + "display": "Cefoxitin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEFTA": { + "code": "CEFTA", + "display": "Ceftazidime", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEPHA": { + "code": "CEPHA", + "display": "Cephalexin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CEPHR": { + "code": "CEPHR", + "display": "Cephradine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CERYT": { + "code": "CERYT", + "display": "Red Blood Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CGLOB": { + "code": "CGLOB", + "display": "Globulin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CGLU": { + "code": "CGLU", + "display": "CSF Glucose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHEMC": { + "code": "CHEMC", + "display": "Concentrations", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHEMF": { + "code": "CHEMF", + "display": "CAL RESULTS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHEMH": { + "code": "CHEMH", + "display": "CSF CHEMISTRY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHEMO": { + "code": "CHEMO", + "display": "AL URINE OUTPUT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHEMU": { + "code": "CHEMU", + "display": "NE RESULTS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHILD": { + "code": "CHILD", + "display": "From Child Health Card", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHIST": { + "code": "CHIST", + "display": "CLINICAL HISTORY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLDN": { + "code": "CHLDN", + "display": "Child No", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLET": { + "code": "CHLET", + "display": "Endemic Trachoma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLLV": { + "code": "CHLLV", + "display": "phogranuloma venereum", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLO1": { + "code": "CHLO1", + "display": "Chloramphenicol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLOG": { + "code": "CHLOG", + "display": "Oculo genital", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLOR": { + "code": "CHLOR", + "display": "Chloramphenicol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLPN": { + "code": "CHLPN", + "display": "Chlamydia pneumoniae", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLPS": { + "code": "CHLPS", + "display": "Chlamydia psittaci", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHLTR": { + "code": "CHLTR", + "display": "Chlamydia trachomatis", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHM": { + "code": "CHM", + "display": "CHm (Mature RBC HB Content)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CHR": { + "code": "CHR", + "display": "CHr (Reticulocyte HB Content)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CIPR1": { + "code": "CIPR1", + "display": "Ciprofloxacin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CIPRO": { + "code": "CIPRO", + "display": "Ciprofloxacin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLAR": { + "code": "CLAR", + "display": "Clarity", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLIND": { + "code": "CLIND", + "display": "Clindamycin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLOD": { + "code": "CLOD", + "display": "C. difficile Toxin A Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLODA": { + "code": "CLODA", + "display": "C. difficile Toxin A", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLTR": { + "code": "CLTR", + "display": "Pathogen Identified", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLTRE": { + "code": "CLTRE", + "display": "Culture Results", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CLUE": { + "code": "CLUE", + "display": "CLUE CELLS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CMGFL": { + "code": "CMGFL", + "display": "Cytomegalovirus IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CMGVA": { + "code": "CMGVA", + "display": "Value : CMG IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CMMFL": { + "code": "CMMFL", + "display": "Cytomegalovirus IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CMMVA": { + "code": "CMMVA", + "display": "Value : CMG IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COCAI": { + "code": "COCAI", + "display": "Cocaine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COL": { + "code": "COL", + "display": "Colour", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COLI": { + "code": "COLI", + "display": "Colistin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COLM": { + "code": "COLM", + "display": "TBCOL Other Months", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COM": { + "code": "COM", + "display": "Comment:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COMAL": { + "code": "COMAL", + "display": "Alternate Pathway", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COMCL": { + "code": "COMCL", + "display": "Classical Pathway", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CONCE": { + "code": "CONCE", + "display": "Antibiotic Concentrations", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CONSE": { + "code": "CONSE", + "display": "Consent to Contact", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COOMB": { + "code": "COOMB", + "display": "Indirect Coomb's Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CORWC": { + "code": "CORWC", + "display": "Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COTR": { + "code": "COTR", + "display": "Cotrimoxazole", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COTR1": { + "code": "COTR1", + "display": "Cotrimoxazole", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COTRI": { + "code": "COTRI", + "display": "Co-trimoxazole", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COUN": { + "code": "COUN", + "display": "Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COXVI": { + "code": "COXVI", + "display": "Coxsackie virus IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CPEP2": { + "code": "CPEP2", + "display": "C-Peptide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CPROT": { + "code": "CPROT", + "display": "CSF Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRES": { + "code": "CRES", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRINK": { + "code": "CRINK", + "display": "INDIA INK", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRO": { + "code": "CRO", + "display": "Ceftriaxone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CROSM": { + "code": "CROSM", + "display": "Crossmatch", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRP": { + "code": "CRP", + "display": "CRP Quantitative", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRPS": { + "code": "CRPS", + "display": "CRP Serology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRPT": { + "code": "CRPT", + "display": "CRP Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRYLF": { + "code": "CRYLF", + "display": "Cryptococcal LFA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRYP": { + "code": "CRYP", + "display": "Cryptococcal Latex", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRYST": { + "code": "CRYST", + "display": "Crystals", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CRYTI": { + "code": "CRYTI", + "display": "Cryptococcal Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CSOB": { + "code": "CSOB", + "display": "Occult Blood", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CTIME": { + "code": "CTIME", + "display": "Whole blood Clotting Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CTITR": { + "code": "CTITR", + "display": "Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CTX": { + "code": "CTX", + "display": "Cefotaxime", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CTXT": { + "code": "CTXT", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CUTC": { + "code": "CUTC", + "display": "Cutup by", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CUTP": { + "code": "CUTP", + "display": "Pathologist", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CUTS": { + "code": "CUTS", + "display": "Cutup sites", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CWBC": { + "code": "CWBC", + "display": "White Blood cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CWTX": { + "code": "CWTX", + "display": "Child Welfare Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYADE": { + "code": "CYADE", + "display": "Specimen Adequacy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYADH": { + "code": "CYADH", + "display": "Specimen Adequacy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYBGH": { + "code": "CYBGH", + "display": "Background", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYBGR": { + "code": "CYBGR", + "display": "Cytology Background", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYCYT": { + "code": "CYCYT", + "display": "SCREENER", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYINF": { + "code": "CYINF", + "display": "Cytology Infection", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYINH": { + "code": "CYINH", + "display": "Interpretation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYINT": { + "code": "CYINT", + "display": "Interpretation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYNAH": { + "code": "CYNAH", + "display": "Nature of Specimen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYNAT": { + "code": "CYNAT", + "display": "Cellular Changes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYNFH": { + "code": "CYNFH", + "display": "Infection", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYNTH": { + "code": "CYNTH", + "display": "Cellular Changes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYRCH": { + "code": "CYRCH", + "display": "Recommendation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYREC": { + "code": "CYREC", + "display": "Cytology Recommendation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYSS": { + "code": "CYSS", + "display": "Cytology Special Stains", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYSTS": { + "code": "CYSTS", + "display": "Cysts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTC": { + "code": "CYTC", + "display": "Contraception", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTCH": { + "code": "CYTCH", + "display": "CLINICAL HISTORY", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTLA": { + "code": "CYTLA", + "display": "Last Pregnancy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTLM": { + "code": "CYTLM", + "display": "LMP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTNA": { + "code": "CYTNA", + "display": "Nature Of Specimen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTPA": { + "code": "CYTPA", + "display": "Parity", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTPR": { + "code": "CYTPR", + "display": "Clinical History", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTTY": { + "code": "CYTTY", + "display": "Type", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CYTXT": { + "code": "CYTXT", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DATEP": { + "code": "DATEP", + "display": "Date reported", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DATEQ": { + "code": "DATEQ", + "display": "Date Required", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DATER": { + "code": "DATER", + "display": "Date Claim", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DATET": { + "code": "DATET", + "display": "Date Taken", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCC3": { + "code": "DCC3", + "display": "C3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCC3C": { + "code": "DCC3C", + "display": "C3c", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCC3T": { + "code": "DCC3T", + "display": "C3d Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCEA": { + "code": "DCEA", + "display": "Carcinoembryonic Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCIGA": { + "code": "DCIGA", + "display": "IgA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCIGG": { + "code": "DCIGG", + "display": "IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCIGM": { + "code": "DCIGM", + "display": "IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCIGT": { + "code": "DCIGT", + "display": "IgG Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCOOH": { + "code": "DCOOH", + "display": "Direct Coomb", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCOOM": { + "code": "DCOOM", + "display": "Polyspecific", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCOT": { + "code": "DCOT", + "display": "Direct Coomb's Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DCRT": { + "code": "DCRT", + "display": "1:20 DILUTED CRT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DDATE": { + "code": "DDATE", + "display": "Expiry", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DDIME": { + "code": "DDIME", + "display": "D-Dimer", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DEATH": { + "code": "DEATH", + "display": "Date of Death", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DHEAS": { + "code": "DHEAS", + "display": "Dehydroepiandrosterone Sulph", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DIAMT": { + "code": "DIAMT", + "display": "Zone Diametre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DIBN": { + "code": "DIBN", + "display": "Dibucaine Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DID": { + "code": "DID", + "display": "Donor ID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DIDA": { + "code": "DIDA", + "display": "Didanosine (DDI)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DIFCN": { + "code": "DIFCN", + "display": "DIFFERENTIAL COUNT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DIGO2": { + "code": "DIGO2", + "display": "S-Digoxin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DIGOX": { + "code": "DIGOX", + "display": "S-Digoxin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DOA": { + "code": "DOA", + "display": "Date of Admission", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DONG": { + "code": "DONG", + "display": "Donor Group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DONN": { + "code": "DONN", + "display": "Donor Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DOXY": { + "code": "DOXY", + "display": "Doxycycline", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DOXY1": { + "code": "DOXY1", + "display": "Doxycycline", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DPROT": { + "code": "DPROT", + "display": "F-Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DRSNO": { + "code": "DRSNO", + "display": "DR Survey Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DRTH": { + "code": "DRTH", + "display": "DRUG RESISTANCE TESTING", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DRUGI": { + "code": "DRUGI", + "display": "Drug Resistance Interpretation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DTIME": { + "code": "DTIME", + "display": "Time of Death", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DUR": { + "code": "DUR", + "display": "Duration of collection", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DUVMA": { + "code": "DUVMA", + "display": "dU-Vanillylmandelic Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "E2": { + "code": "E2", + "display": "Oestradiol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "E2C": { + "code": "E2C", + "display": "Oestrodial", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EBREA": { + "code": "EBREA", + "display": "Child Breastfed", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ECOTH": { + "code": "ECOTH", + "display": "Other", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ECOTR": { + "code": "ECOTR", + "display": "Cotrimoxazole(CTX)for infant", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ECURR": { + "code": "ECURR", + "display": "Current Regimen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EDNAP": { + "code": "EDNAP", + "display": "DNA PCR Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EEC": { + "code": "EEC", + "display": "Enteropathogenic E.coli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EFAVI": { + "code": "EFAVI", + "display": "Efavirenz (EFV)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EGFRI": { + "code": "EGFRI", + "display": "MDRD eGFR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EIDCM": { + "code": "EIDCM", + "display": "Caregiver Name", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EIDCN": { + "code": "EIDCN", + "display": "Caregiver NRC Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EIDCP": { + "code": "EIDCP", + "display": "Caregiver Phone Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EIFS": { + "code": "EIFS", + "display": "If stopped why?", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EIFY": { + "code": "EIFY", + "display": "IF yes which apply", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EMTRI": { + "code": "EMTRI", + "display": "Emtricitabine (FTC)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ENVPB": { + "code": "ENVPB", + "display": "NVP for full 6w after birth", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ENVPS": { + "code": "ENVPS", + "display": "When did child stop NVP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ENZYM": { + "code": "ENZYM", + "display": "Enzyme", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EOS#": { + "code": "EOS#", + "display": "Eosinophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EOS%": { + "code": "EOS%", + "display": "Eosinophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EOSA#": { + "code": "EOSA#", + "display": "Eosinophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EOSA%": { + "code": "EOSA%", + "display": "Eosinophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EOTHE": { + "code": "EOTHE", + "display": "Other", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EPI": { + "code": "EPI", + "display": "Epithelial Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EPRE": { + "code": "EPRE", + "display": "Previous DNA PCR Barcode no", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EPRED": { + "code": "EPRED", + "display": "Date Previous PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EPRER": { + "code": "EPRER", + "display": "Pregnancy Regimen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EPRES": { + "code": "EPRES", + "display": "Previous PCR Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAC1": { + "code": "EQAC1", + "display": "EQA Unstained 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAC2": { + "code": "EQAC2", + "display": "EQA Unstained 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAC3": { + "code": "EQAC3", + "display": "EQA Unstained 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAC4": { + "code": "EQAC4", + "display": "EQA Unstained 4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAC5": { + "code": "EQAC5", + "display": "EQA Unstained 5", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAHS": { + "code": "EQAHS", + "display": "Stained Slides", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAHU": { + "code": "EQAHU", + "display": "Unstained Slides", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAMT": { + "code": "EQAMT", + "display": "Method", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAN2": { + "code": "EQAN2", + "display": "No Parasites", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAN3": { + "code": "EQAN3", + "display": "No Parasites", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQANP": { + "code": "EQANP", + "display": "No Parasites", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAR1": { + "code": "EQAR1", + "display": "EQA Result 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAR2": { + "code": "EQAR2", + "display": "EQA Result 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAR3": { + "code": "EQAR3", + "display": "EQA Result 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAR4": { + "code": "EQAR4", + "display": "EQA Result 4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAR5": { + "code": "EQAR5", + "display": "EQA Result 5", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAS1": { + "code": "EQAS1", + "display": "EQA Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQAS2": { + "code": "EQAS2", + "display": "EQA Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQASC": { + "code": "EQASC", + "display": "Screener", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQCAB": { + "code": "EQCAB", + "display": "Absolute Count Beads", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQCAC": { + "code": "EQCAC", + "display": "Antibody Combination", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQCDI": { + "code": "EQCDI", + "display": "Instrument", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQCLM": { + "code": "EQCLM", + "display": "Lysing Method", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQCPC": { + "code": "EQCPC", + "display": "Problem Code", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHCT": { + "code": "EQHCT", + "display": "Haematocrit", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHGB": { + "code": "EQHGB", + "display": "Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHPC": { + "code": "EQHPC", + "display": "Problem Code", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHPE": { + "code": "EQHPE", + "display": "Processing equipment:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHPK": { + "code": "EQHPK", + "display": "Processing Kit/Reagent:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHPM": { + "code": "EQHPM", + "display": "Processing Microscope", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHSD": { + "code": "EQHSD", + "display": "Microscope service date:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQHST": { + "code": "EQHST", + "display": "Stain used:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMCH": { + "code": "EQMCH", + "display": "EQMCH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMCN": { + "code": "EQMCN", + "display": "Challenge Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMCV": { + "code": "EQMCV", + "display": "EQMCV", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMF2": { + "code": "EQMF2", + "display": "Final answer (Parasites Count)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMF3": { + "code": "EQMF3", + "display": "Final answer (Parasites Count)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMFA": { + "code": "EQMFA", + "display": "Final answer (Parasites Count)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMIC": { + "code": "EQMIC", + "display": "Microscopy", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQMPC": { + "code": "EQMPC", + "display": "Final Answer", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQPF": { + "code": "EQPF", + "display": "Tested by", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQPLT": { + "code": "EQPLT", + "display": "Platelet Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQPO": { + "code": "EQPO", + "display": "Supervisor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQRBC": { + "code": "EQRBC", + "display": "Red Blood Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQRDW": { + "code": "EQRDW", + "display": "EQRDW", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSED": { + "code": "EQSED", + "display": "Expiration Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSLN": { + "code": "EQSLN", + "display": "Lot Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSP1": { + "code": "EQSP1", + "display": "Specimen 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSP2": { + "code": "EQSP2", + "display": "Specimen 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSP3": { + "code": "EQSP3", + "display": "Specimen 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSS1": { + "code": "EQSS1", + "display": "HIV PT 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSS2": { + "code": "EQSS2", + "display": "HIV PT 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSS3": { + "code": "EQSS3", + "display": "HIV PT 3", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSS4": { + "code": "EQSS4", + "display": "HIV PT 4", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSS5": { + "code": "EQSS5", + "display": "HIV PT 5", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSS6": { + "code": "EQSS6", + "display": "A-6", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQST": { + "code": "EQST", + "display": "Person who Stained", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQSTM": { + "code": "EQSTM", + "display": "Test Name", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQWB2": { + "code": "EQWB2", + "display": "No of White Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQWB3": { + "code": "EQWB3", + "display": "No of White Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQWBC": { + "code": "EQWBC", + "display": "No of White Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQWC2": { + "code": "EQWC2", + "display": "No of White Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQWC3": { + "code": "EQWC3", + "display": "No of White Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EQWCC": { + "code": "EQWCC", + "display": "White cell count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EREGA": { + "code": "EREGA", + "display": "Regimen given after birth", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ERSLT": { + "code": "ERSLT", + "display": "Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ERTP": { + "code": "ERTP", + "display": "ERTAPENEM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ERY": { + "code": "ERY", + "display": "Red Blood Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ERY1": { + "code": "ERY1", + "display": "Erythromycin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ERYT": { + "code": "ERYT", + "display": "Erythrocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ERYTH": { + "code": "ERYTH", + "display": "Erythromycin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ESR": { + "code": "ESR", + "display": "ESR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ESTBR": { + "code": "ESTBR", + "display": "Child still breatfeeding", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ESTOB": { + "code": "ESTOB", + "display": "Stopped breastbeeding at", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ETRAV": { + "code": "ETRAV", + "display": "Etravirine (ETR)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EXHYS": { + "code": "EXHYS", + "display": "External Standard - Hys Peak", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EXPD": { + "code": "EXPD", + "display": "Expiry Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "EXSTD": { + "code": "EXSTD", + "display": "External Standard-Int Std Peak", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FCLI": { + "code": "FCLI", + "display": "Follow-up Clinic", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FEP": { + "code": "FEP", + "display": "CEFEPIME", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERM2": { + "code": "FERM2", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERM3": { + "code": "FERM3", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERR": { + "code": "FERR", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERRM": { + "code": "FERRM", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERRR": { + "code": "FERRR", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERRX": { + "code": "FERRX", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FERX2": { + "code": "FERX2", + "display": "Ferritin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FHYS": { + "code": "FHYS", + "display": "Homocysteine Fasting", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FILAG": { + "code": "FILAG", + "display": "Microfilariae Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FINR": { + "code": "FINR", + "display": "Final Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FLN": { + "code": "FLN", + "display": "Fluoride Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FLQNS": { + "code": "FLQNS", + "display": "Flouroquinolones", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FOB": { + "code": "FOB", + "display": "Ocult Blood", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FPORI": { + "code": "FPORI", + "display": "Identification", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FPORQ": { + "code": "FPORQ", + "display": "F-Porphyrin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FPROT": { + "code": "FPROT", + "display": "F-Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FRF": { + "code": "FRF", + "display": "Rheumatoid Factor (Pleural Fl)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FROTA": { + "code": "FROTA", + "display": "Rotavirus", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FSHC": { + "code": "FSHC", + "display": "Follicle Stimulating Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "F-T3": { + "code": "F-T3", + "display": "S-Free Tri-iodothyronine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "F-T4": { + "code": "F-T4", + "display": "S-Free Thyroxine (Direct)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FUNGI": { + "code": "FUNGI", + "display": "Fungi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "FWBC": { + "code": "FWBC", + "display": "White Blood cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "G6PD": { + "code": "G6PD", + "display": "G6PD Assay", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "G6PDS": { + "code": "G6PDS", + "display": "D Screen Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GCLUE": { + "code": "GCLUE", + "display": "GRAM STAIN :CLUE CELLS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GCPRD": { + "code": "GCPRD", + "display": "Pregnandiol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GELNO": { + "code": "GELNO", + "display": "Number", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GENO": { + "code": "GENO", + "display": "Genotyping", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GENT": { + "code": "GENT", + "display": "Gentamicin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GENT1": { + "code": "GENT1", + "display": "Gentamycin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GENTA": { + "code": "GENTA", + "display": "Gentamicin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GERMT": { + "code": "GERMT", + "display": "Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL120": { + "code": "GL120", + "display": "Glucose - 2 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL150": { + "code": "GL150", + "display": "Glucose - 2.5 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL180": { + "code": "GL180", + "display": "Glucose - 3 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL210": { + "code": "GL210", + "display": "Glucose - 3.5 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL240": { + "code": "GL240", + "display": "Glucose - 4 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL270": { + "code": "GL270", + "display": "Glucose - 4.5 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL30": { + "code": "GL30", + "display": "Glucose - 30 mins", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL300": { + "code": "GL300", + "display": "Glucose - 5 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL360": { + "code": "GL360", + "display": "Glucose - 6 hrs", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL480": { + "code": "GL480", + "display": "Glucose - 8 hr", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL60": { + "code": "GL60", + "display": "Glucose - 1 Hour", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GL90": { + "code": "GL90", + "display": "Glucose - 1.5 Hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GLOB": { + "code": "GLOB", + "display": "Globulin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GLUCS": { + "code": "GLUCS", + "display": "Glucose (POCT)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GNB": { + "code": "GNB", + "display": "Gram Negative Bacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GNC": { + "code": "GNC", + "display": "Gram Negative Cocci", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GNCB": { + "code": "GNCB", + "display": "Gram Negative Coccobacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GNDC": { + "code": "GNDC", + "display": "Gram Negative Dipplococci", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GNPB": { + "code": "GNPB", + "display": "GN Pleomorphic Bacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPB": { + "code": "GPB", + "display": "Gram Positive Bacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPBB": { + "code": "GPBB", + "display": "GP Branching Beaded Bacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPC": { + "code": "GPC", + "display": "Gram Positive Cocci", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPCC": { + "code": "GPCC", + "display": "Gram Positive Cocci Chains", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPCCL": { + "code": "GPCCL", + "display": "Gram Positive Cocci Clusters", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPCP": { + "code": "GPCP", + "display": "Gram Positive Cocci Pairs", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPDC": { + "code": "GPDC", + "display": "Gram Positive Diplococci", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GPFB": { + "code": "GPFB", + "display": "GP Filamentous Bacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GRAMS": { + "code": "GRAMS", + "display": "GRAM STAIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GREPI": { + "code": "GREPI", + "display": "Epithelial Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GRERY": { + "code": "GRERY", + "display": "Erythrocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GRWC": { + "code": "GRWC", + "display": "White Blood cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GTBA": { + "code": "GTBA", + "display": "Glucose - Basal", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GTDOS": { + "code": "GTDOS", + "display": "Glucose Dose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GTXT": { + "code": "GTXT", + "display": "Text", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GVC": { + "code": "GVC", + "display": "Gram Variable Coccobacilli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GVINC": { + "code": "GVINC", + "display": "Vincent's Orgnisms", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GXRIF": { + "code": "GXRIF", + "display": "Rifampicin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GXTB": { + "code": "GXTB", + "display": "PCR result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "GXTBR": { + "code": "GXTBR", + "display": "PCR result (raw data)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "H2RL": { + "code": "H2RL", + "display": "log value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "H2VRS": { + "code": "H2VRS", + "display": "HIV: Viral Load (Cap/CTM)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HAEM": { + "code": "HAEM", + "display": "Specimen Haemolysed", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HAEMI": { + "code": "HAEMI", + "display": "Haemolysis index", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HAUTO": { + "code": "HAUTO", + "display": "Please note:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBA": { + "code": "HBA", + "display": "Haemoglobin A", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBA1": { + "code": "HBA1", + "display": "Average Glucose (calculated)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBA1C": { + "code": "HBA1C", + "display": "Hb A1c (Glycosylated)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBA2": { + "code": "HBA2", + "display": "Haemoglobin A2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBA2D": { + "code": "HBA2D", + "display": "Haemoglobin A2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBF1": { + "code": "HBF1", + "display": "Haemoglobin F", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBFD": { + "code": "HBFD", + "display": "Haemoglobin F", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBH": { + "code": "HBH", + "display": "Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBSB1": { + "code": "HBSB1", + "display": "Hep B surface Antibody Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HBU": { + "code": "HBU", + "display": "Unstable Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCBCO": { + "code": "HCBCO", + "display": "Cut off : Hepatitis C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCBFL": { + "code": "HCBFL", + "display": "Hepatitis C Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCBVA": { + "code": "HCBVA", + "display": "Value : Hepatitis C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCG": { + "code": "HCG", + "display": "Beta HCG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCGS": { + "code": "HCGS", + "display": "Serum ß-HCG Pregnancy Screen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCO3": { + "code": "HCO3", + "display": "Bicarbonate (actual)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCOM": { + "code": "HCOM", + "display": "Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HCT": { + "code": "HCT", + "display": "Haematocrit", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HEAL": { + "code": "HEAL", + "display": "Health Facility", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HELPV": { + "code": "HELPV", + "display": "OD Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HELPY": { + "code": "HELPY", + "display": "Helicobacter pylori IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HEPD": { + "code": "HEPD", + "display": "Hepatitis D Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HEPE": { + "code": "HEPE", + "display": "Hepatitis E Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HERG1": { + "code": "HERG1", + "display": "Herpes simplex Type 1 IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HERG2": { + "code": "HERG2", + "display": "Herpes simplex Type 2 IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HERPG": { + "code": "HERPG", + "display": "Herpes simplex virus IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HERPM": { + "code": "HERPM", + "display": "Herpes simplex virus IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HFLU": { + "code": "HFLU", + "display": "Haemophilus influenzae", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HGB": { + "code": "HGB", + "display": "Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HGH": { + "code": "HGH", + "display": "Human Growth Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HISTD": { + "code": "HISTD", + "display": "Pathologist", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HISTS": { + "code": "HISTS", + "display": "Special Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HISTT": { + "code": "HISTT", + "display": "Specimen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIV-1": { + "code": "HIV-1", + "display": "HIV-1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVA": { + "code": "HIVA", + "display": "HIV ASANTE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVAR": { + "code": "HIVAR", + "display": "HIV: Viral Load (ART)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVBL": { + "code": "HIVBL", + "display": "log value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVBR": { + "code": "HIVBR", + "display": "HIV: Viral Load (BIO/CEN)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVCO": { + "code": "HIVCO", + "display": "CUT-OFF : HIV", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVD": { + "code": "HIVD", + "display": "HIV Determine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVE": { + "code": "HIVE", + "display": "HIV Antibodies: ELISA Method", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVL": { + "code": "HIVL", + "display": "HIV: Viral load (LCx)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVL2": { + "code": "HIVL2", + "display": "HIV: Viral load (LCx)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVLA": { + "code": "HIVLA", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVLC": { + "code": "HIVLC", + "display": "HIV: Viral Load (LCx)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVLL": { + "code": "HIVLL", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVML": { + "code": "HIVML", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVP": { + "code": "HIVP", + "display": "HIV Rapid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVPC": { + "code": "HIVPC", + "display": "Infant HIV DNA PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVPL": { + "code": "HIVPL", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVPR": { + "code": "HIVPR", + "display": "HIV: Viral Load (PANTHER)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVQL": { + "code": "HIVQL", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVR": { + "code": "HIVR", + "display": "HIV 1/2 Rapid Screening Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVRL": { + "code": "HIVRL", + "display": "log value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVRT": { + "code": "HIVRT", + "display": "HIV-1 resistance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVSI": { + "code": "HIVSI", + "display": "Sequence ID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVTL": { + "code": "HIVTL", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVTM": { + "code": "HIVTM", + "display": "HIV: Viral Load (Taqman)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVU": { + "code": "HIVU", + "display": "HIV Unigold", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVA": { + "code": "HIVVA", + "display": "HIV VALUE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVB": { + "code": "HIVVB", + "display": "HIV: Viral Load", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVC": { + "code": "HIVVC", + "display": "HIV : Viral load (low value)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVD": { + "code": "HIVVD", + "display": "HIV: Viral Load", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVM": { + "code": "HIVVM", + "display": "HIV : VIRAL LOAD", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVP": { + "code": "HIVVP", + "display": "HIV: Viral Load (Ampliprep)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVQ": { + "code": "HIVVQ", + "display": "HIV : Viral Load (NASBA)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVVR": { + "code": "HIVVR", + "display": "HIV: Viral Load (CAP/CTM)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HLAXB": { + "code": "HLAXB", + "display": "Crossmatching B-Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HLB27": { + "code": "HLB27", + "display": "HLA B27", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HPRL": { + "code": "HPRL", + "display": "log value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HSVG": { + "code": "HSVG", + "display": "HERPES SIMPLEX VIRUS IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HSVM": { + "code": "HSVM", + "display": "Herpes simplex Virus IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HT": { + "code": "HT", + "display": "Patient`s Height", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HTSTB": { + "code": "HTSTB", + "display": "Heat Stability Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HTXT": { + "code": "HTXT", + "display": "Haematology Text", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HVVRS": { + "code": "HVVRS", + "display": "HIV: Viral Load (CAP/CTM)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HYS0H": { + "code": "HYS0H", + "display": "Homocysteine Fasting", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HYS6H": { + "code": "HYS6H", + "display": "Homocysteine 6H Postmethionine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HYSIN": { + "code": "HYSIN", + "display": "Homocysteine Increase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HYSUH": { + "code": "HYSUH", + "display": "Homocysteine Unknown Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ICD10": { + "code": "ICD10", + "display": "ICD10", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ICOM": { + "code": "ICOM", + "display": "Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ICOOH": { + "code": "ICOOH", + "display": "Indirect Coomb", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ICOOM": { + "code": "ICOOM", + "display": "Abnormal Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ICT": { + "code": "ICT", + "display": "Indirect coomb's test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IG#": { + "code": "IG#", + "display": "IG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IGA": { + "code": "IGA", + "display": "Total IgA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IHYS": { + "code": "IHYS", + "display": "Homocysteine Increase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IMFIX": { + "code": "IMFIX", + "display": "Immunofixation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IMI": { + "code": "IMI", + "display": "Imipenem", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IMMA": { + "code": "IMMA", + "display": "%Immature", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IMMSP": { + "code": "IMMSP", + "display": "Immediate Spin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "INCLU": { + "code": "INCLU", + "display": "Inclusions", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "INJCS": { + "code": "INJCS", + "display": "Injectibles", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "INK": { + "code": "INK", + "display": "India Ink", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "INR": { + "code": "INR", + "display": "Int Normalised Ratio (INR)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "INTXT": { + "code": "INTXT", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IPROT": { + "code": "IPROT", + "display": "F-Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IS": { + "code": "IS", + "display": "Immediate spin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ISI": { + "code": "ISI", + "display": "ISI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ITIME": { + "code": "ITIME", + "display": "Incubation Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ITITR": { + "code": "ITITR", + "display": "Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ITXT": { + "code": "ITXT", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "IV": { + "code": "IV", + "display": "Index Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "JRF": { + "code": "JRF", + "display": "Rheumatoid Factor- Joint Fluid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LA1:2": { + "code": "LA1:2", + "display": "LA-1:LA-2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LA1NP": { + "code": "LA1NP", + "display": "LA-1 with normal plasma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LA2NP": { + "code": "LA2NP", + "display": "LA-2 with normal plasma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LACTT": { + "code": "LACTT", + "display": "Lactate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LAMIV": { + "code": "LAMIV", + "display": "Lamivudine (3TC)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LCHOL": { + "code": "LCHOL", + "display": "Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LCRYP": { + "code": "LCRYP", + "display": "LFA Cryptococcal Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LEUCO": { + "code": "LEUCO", + "display": "White Blood Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LHC": { + "code": "LHC", + "display": "Luteinising Hormone (L)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LI": { + "code": "LI", + "display": "Lithium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LINE0": { + "code": "LINE0", + "display": "LINE0", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LINE1": { + "code": "LINE1", + "display": "LINE1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LISS": { + "code": "LISS", + "display": "LISS-IAT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LJDAT": { + "code": "LJDAT", + "display": "Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LJDT": { + "code": "LJDT", + "display": "LJ Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LJRES": { + "code": "LJRES", + "display": "LJ Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LLA1": { + "code": "LLA1", + "display": "Lupus anticoagulant 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LLA2": { + "code": "LLA2", + "display": "Lupus anticoagulant 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LN1:2": { + "code": "LN1:2", + "display": "LA-1 NP:LA-2 NP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LPRIF": { + "code": "LPRIF", + "display": "Rifampicin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LSD": { + "code": "LSD", + "display": "Lysergic Acid Diethylamide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LTIME": { + "code": "LTIME", + "display": "Liquefaction time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LUPN": { + "code": "LUPN", + "display": "Lupus anticoagulant", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LUPP": { + "code": "LUPP", + "display": "Lupus anticoagulant (KCT)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LYM#": { + "code": "LYM#", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LYM%": { + "code": "LYM%", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LYMA%": { + "code": "LYMA%", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LYMP": { + "code": "LYMP", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MAAG": { + "code": "MAAG", + "display": "Malaria Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MACS": { + "code": "MACS", + "display": "Macroscopic supernatant", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MAL": { + "code": "MAL", + "display": "Malaria", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MALF": { + "code": "MALF", + "display": "Plasmodium Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MALRT": { + "code": "MALRT", + "display": "Malaria: PCR Results", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MALTH": { + "code": "MALTH", + "display": "Malaria(Thin film prep.)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MAPP": { + "code": "MAPP", + "display": "Macroscopic Apprearance", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MASS": { + "code": "MASS", + "display": "Patient`s Mass", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MBILH": { + "code": "MBILH", + "display": "istosoma haematobium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MCEA": { + "code": "MCEA", + "display": "Carcinoembryonic Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MCH": { + "code": "MCH", + "display": "MCH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MCHC": { + "code": "MCHC", + "display": "MCHC", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MCM2": { + "code": "MCM2", + "display": "Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MCOM": { + "code": "MCOM", + "display": "Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MCV": { + "code": "MCV", + "display": "MCV", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MEASG": { + "code": "MEASG", + "display": "Measles IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MEASM": { + "code": "MEASM", + "display": "Measles IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MEM": { + "code": "MEM", + "display": "MEROPENEM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MET": { + "code": "MET", + "display": "Methicillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "META#": { + "code": "META#", + "display": "Metamyelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "META%": { + "code": "META%", + "display": "Metamyelocyte", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "METH": { + "code": "METH", + "display": "Methicillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "METHD": { + "code": "METHD", + "display": "Methadone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "METQ": { + "code": "METQ", + "display": "Methaqualone (Mandrax)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MFIL": { + "code": "MFIL", + "display": "Microfilariae", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGMSA": { + "code": "MGMSA", + "display": "Slide A", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGMSB": { + "code": "MGMSB", + "display": "Slide B", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGMSC": { + "code": "MGMSC", + "display": "Slide C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGMSD": { + "code": "MGMSD", + "display": "Slide D", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGMSE": { + "code": "MGMSE", + "display": "Slide E", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGMSF": { + "code": "MGMSF", + "display": "Slide F", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSMH": { + "code": "MGSMH", + "display": "Microscopic Morphology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSRH": { + "code": "MGSRH", + "display": "Microscopic Gram Stain Reactio", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSSA": { + "code": "MGSSA", + "display": "Slide A", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSSB": { + "code": "MGSSB", + "display": "Slide B", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSSC": { + "code": "MGSSC", + "display": "Slide C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSSD": { + "code": "MGSSD", + "display": "Slide D", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSSE": { + "code": "MGSSE", + "display": "Slide E", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MGSSF": { + "code": "MGSSF", + "display": "Slide F", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MHEAD": { + "code": "MHEAD", + "display": "Morphology and Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MIC": { + "code": "MIC", + "display": "Microscope #", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MICH": { + "code": "MICH", + "display": "Microbiology:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MICIN": { + "code": "MICIN", + "display": "Microscopic Examination", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MICRE": { + "code": "MICRE", + "display": "MICROSCOPIC EXAMINATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MICRO": { + "code": "MICRO", + "display": "Microscope Used", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MLDL": { + "code": "MLDL", + "display": "LDL Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MLEUD": { + "code": "MLEUD", + "display": "Leucocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MMACR": { + "code": "MMACR", + "display": "MACROSCOPIC", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MOART": { + "code": "MOART", + "display": "Months since starting ARV", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MON": { + "code": "MON", + "display": "Monoclonal Band", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MONA#": { + "code": "MONA#", + "display": "Monocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MONA%": { + "code": "MONA%", + "display": "Monocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MONO": { + "code": "MONO", + "display": "Epstein Barr Heterophile Ab's", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MONO#": { + "code": "MONO#", + "display": "Monocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MONO%": { + "code": "MONO%", + "display": "Monocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MONTH": { + "code": "MONTH", + "display": "Stopped at month", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MORPH": { + "code": "MORPH", + "display": "Morphology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MOTIL": { + "code": "MOTIL", + "display": "Motility", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MPCR": { + "code": "MPCR", + "display": "Malaria: PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MPROT": { + "code": "MPROT", + "display": "U-Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MPV": { + "code": "MPV", + "display": "Mean Platelet Volume", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "M-TP": { + "code": "M-TP", + "display": "Micro Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MTRIC": { + "code": "MTRIC", + "display": "TRICHOMONAS VAGINALIS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MTXT": { + "code": "MTXT", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MTZ": { + "code": "MTZ", + "display": "Metranidazole", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MUCUS": { + "code": "MUCUS", + "display": "Mucus Threads", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MUMPG": { + "code": "MUMPG", + "display": "Mumps IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MUMPM": { + "code": "MUMPM", + "display": "Mumps IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MUP": { + "code": "MUP", + "display": "MUPIROCIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MXD#": { + "code": "MXD#", + "display": "Mixed Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MXD%": { + "code": "MXD%", + "display": "Mixed Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYCH": { + "code": "MYCH", + "display": "Culture", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYCUL": { + "code": "MYCUL", + "display": "Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYEAS": { + "code": "MYEAS", + "display": "Yeast Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYEL#": { + "code": "MYEL#", + "display": "Myelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYEL%": { + "code": "MYEL%", + "display": "Myelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYGIE": { + "code": "MYGIE", + "display": "Giemsa Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYGT": { + "code": "MYGT", + "display": "Germ Tube", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYKIN": { + "code": "MYKIN", + "display": "Kinyoun Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYMIC": { + "code": "MYMIC", + "display": "MICROSCOPIC EXAMINATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYOG": { + "code": "MYOG", + "display": "MYOGLOBIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MYPAS": { + "code": "MYPAS", + "display": "PAS Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "MZNS": { + "code": "MZNS", + "display": "MODIFIED ZIELH-NEELSEN STAIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NALID": { + "code": "NALID", + "display": "Nalidixic Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEI": { + "code": "NEI", + "display": "N meningitides A,C,Y,W135", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEICO": { + "code": "NEICO", + "display": "N meningitides B/E coli:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEUA#": { + "code": "NEUA#", + "display": "Neutrophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEUA%": { + "code": "NEUA%", + "display": "Neutrophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEUT#": { + "code": "NEUT#", + "display": "Neutrophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEUT%": { + "code": "NEUT%", + "display": "Neutrophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NEVI": { + "code": "NEVI", + "display": "Nevirapine (NVP)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NITR": { + "code": "NITR", + "display": "Nitrofurantoin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NITRO": { + "code": "NITRO", + "display": "Nitrofurantoin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NNRTI": { + "code": "NNRTI", + "display": "NNRTI Resistance Mutations", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NONNU": { + "code": "NONNU", + "display": "Non-Nucleoside RTI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NORM": { + "code": "NORM", + "display": "%Normal", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NOS": { + "code": "NOS", + "display": "Organisms Seen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NRBC": { + "code": "NRBC", + "display": "Nucleated Red Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NRTIR": { + "code": "NRTIR", + "display": "NRTI Resistance Mutations", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NUCLE": { + "code": "NUCLE", + "display": "Nucleoside RTI", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OB": { + "code": "OB", + "display": "Stool Occult Blood Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OCEA": { + "code": "OCEA", + "display": "Carcinoembryonic Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OCEL": { + "code": "OCEL", + "display": "O Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OOCYS": { + "code": "OOCYS", + "display": "Oocysts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OPIAT": { + "code": "OPIAT", + "display": "Opiates", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ORGS": { + "code": "ORGS", + "display": "Organism Identification", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ORGSV": { + "code": "ORGSV", + "display": "Organism", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ORGSW": { + "code": "ORGSW", + "display": "Organism", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ORGSX": { + "code": "ORGSX", + "display": "Organism", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ORGSY": { + "code": "ORGSY", + "display": "Organism", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OSAT": { + "code": "OSAT", + "display": "Saturation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OTERM": { + "code": "OTERM", + "display": "Other Mutations", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OTHER": { + "code": "OTHER", + "display": "Other", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OTHR#": { + "code": "OTHR#", + "display": "Other", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OTHR%": { + "code": "OTHR%", + "display": "Other", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OVA": { + "code": "OVA", + "display": "Ova", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OVA1": { + "code": "OVA1", + "display": "Ova /Cysts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OVA2": { + "code": "OVA2", + "display": "Ova/Cysts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OWCC": { + "code": "OWCC", + "display": "White Cell Count (Uncorrected)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OX19": { + "code": "OX19", + "display": "Proteus OX19 antibody", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OX2": { + "code": "OX2", + "display": "Proteus OX2 antibody", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OXAC1": { + "code": "OXAC1", + "display": "Oxacillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OXACI": { + "code": "OXACI", + "display": "Oxacillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "OXK": { + "code": "OXK", + "display": "Proteus OXK antibody", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "P/N": { + "code": "P/N", + "display": "Pos/Neg", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PADIS": { + "code": "PADIS", + "display": "PRESUMPTIVE TB#/TB REGISTER#", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PAN": { + "code": "PAN", + "display": "PAN Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PARAC": { + "code": "PARAC", + "display": "Paracetamol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PARAS": { + "code": "PARAS", + "display": "Parasites", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PARS": { + "code": "PARS", + "display": "Parasitemia Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PATH": { + "code": "PATH", + "display": "Pathologist", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PATHH": { + "code": "PATHH", + "display": "Pathologist(s):", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PATT": { + "code": "PATT", + "display": "Type of Pattern", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PB/CR": { + "code": "PB/CR", + "display": "Porphobilinogen/Creatinine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PBNP": { + "code": "PBNP", + "display": "proBNP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCO2": { + "code": "PCO2", + "display": "pCO2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCRAP": { + "code": "PCRAP", + "display": "Factor V Leiden Mutation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCRH": { + "code": "PCRH", + "display": "DNA PCR Test Information", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCRQ": { + "code": "PCRQ", + "display": "Quantitative", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCRR": { + "code": "PCRR", + "display": "PCR Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCTR": { + "code": "PCTR", + "display": "Procalcitonin - Rapid Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCULT": { + "code": "PCULT", + "display": "CULTURE RESULT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PCV": { + "code": "PCV", + "display": "PCV", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PDBIL": { + "code": "PDBIL", + "display": "Conjuagted Bilirubin (Paeds)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PDW": { + "code": "PDW", + "display": "Platelet Distribution Width", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PEN": { + "code": "PEN", + "display": "Penicillin G", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PENG": { + "code": "PENG", + "display": "Penicillin G", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PENG1": { + "code": "PENG1", + "display": "Penicillin G", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PER": { + "code": "PER", + "display": "Creat. Clearance Period", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PFAL": { + "code": "PFAL", + "display": "Plasmodium Falciparum Ag", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PGRP": { + "code": "PGRP", + "display": "Patient Group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PH": { + "code": "PH", + "display": "Ph", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHB": { + "code": "PHB", + "display": "Phoned by", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHD": { + "code": "PHD", + "display": "Date Phoned", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHENB": { + "code": "PHENB", + "display": "Phenobarbitone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHENC": { + "code": "PHENC", + "display": "Phencyclidine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHENY": { + "code": "PHENY", + "display": "Phenytoin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHN": { + "code": "PHN", + "display": "Phoned to", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHT": { + "code": "PHT", + "display": "Time phoned", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHTXT": { + "code": "PHTXT", + "display": "Message", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHYS": { + "code": "PHYS", + "display": "Homocysteine 6H Postmethionine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHYS0": { + "code": "PHYS0", + "display": "Patient - Hys Peak 0 hr", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHYS6": { + "code": "PHYS6", + "display": "Patient - Hys Peak 6 hr", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PHYSU": { + "code": "PHYSU", + "display": "Patient - Hys Peak Unknown", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PIPER": { + "code": "PIPER", + "display": "Piperacillin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PLAC": { + "code": "PLAC", + "display": "p-Lactic Acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PLT": { + "code": "PLT", + "display": "Platelet Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PLTAB": { + "code": "PLTAB", + "display": "Platelet Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PMTCH": { + "code": "PMTCH", + "display": "PMTCT Infant", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PMTMO": { + "code": "PMTMO", + "display": "PMTCT Mother", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PNEUM": { + "code": "PNEUM", + "display": "Streptococcus pneumoniae", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PO/CR": { + "code": "PO/CR", + "display": "Porphyrin/Creatinine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PO2": { + "code": "PO2", + "display": "pO2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "POCVR": { + "code": "POCVR", + "display": "HIV: Viral Load (GENEX)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "POLI1": { + "code": "POLI1", + "display": "Poliovirus Type 1 Abs", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "POLI2": { + "code": "POLI2", + "display": "Poliovirus Type 2 Abs", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "POLI3": { + "code": "POLI3", + "display": "Poliovirus Type 3 Abs", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "POLY": { + "code": "POLY", + "display": "Polymorphonuclear cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "POLYM": { + "code": "POLYM", + "display": "Polymyxin B", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PORL": { + "code": "PORL", + "display": "log value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PREG": { + "code": "PREG", + "display": "Pregnancy Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PRLC": { + "code": "PRLC", + "display": "Prolactin (PRL)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PROGC": { + "code": "PROGC", + "display": "Progesterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PROM#": { + "code": "PROM#", + "display": "Promyelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PROM%": { + "code": "PROM%", + "display": "Promyelocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PROTC": { + "code": "PROTC", + "display": "Protein C (Chromogenic)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PROTS": { + "code": "PROTS", + "display": "Protein S (Functional)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PRTCF": { + "code": "PRTCF", + "display": "Protein C", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSA": { + "code": "PSA", + "display": "Prostate Specific Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSCHE": { + "code": "PSCHE", + "display": "Pseudocholinesterase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSHY": { + "code": "PSHY", + "display": "Pseudohyphae", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSTD0": { + "code": "PSTD0", + "display": "Patient - Int Std Peak 0 hr", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSTD6": { + "code": "PSTD6", + "display": "Patient - Int Std Peak 6 hr", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSTDU": { + "code": "PSTDU", + "display": "Patient-Int Std Peak Unknown", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PT": { + "code": "PT", + "display": "Prothrombin Time (Patient)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTBIL": { + "code": "PTBIL", + "display": "Total Bilirubin (Paediatric)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTC": { + "code": "PTC", + "display": "Prothrombin Time (Control)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTH": { + "code": "PTH", + "display": "Parathyroid Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTHA": { + "code": "PTHA", + "display": "Parathyroid Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTHM": { + "code": "PTHM", + "display": "Parathyroid Hormone (mass)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTHP": { + "code": "PTHP", + "display": "p-Parathyroid Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PTTR": { + "code": "PTTR", + "display": "PTT Ratio", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PVIV": { + "code": "PVIV", + "display": "Plasmodium Vivax Ag", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QBAS%": { + "code": "QBAS%", + "display": "Basophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCD3": { + "code": "QCD3", + "display": "CD3 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCD3L": { + "code": "QCD3L", + "display": "CD3%", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCD4": { + "code": "QCD4", + "display": "CD4 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCD4L": { + "code": "QCD4L", + "display": "CD4%", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCD8": { + "code": "QCD8", + "display": "CD8 Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCD8L": { + "code": "QCD8L", + "display": "CD8%", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QCWBC": { + "code": "QCWBC", + "display": "Leucocyte Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QEOS%": { + "code": "QEOS%", + "display": "Eosinophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QHBG": { + "code": "QHBG", + "display": "ABO Blood group", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QHCG": { + "code": "QHCG", + "display": "Quantitative á-HCG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QHRG": { + "code": "QHRG", + "display": "Rhesus status", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QLYM%": { + "code": "QLYM%", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QMCHC": { + "code": "QMCHC", + "display": "EQMCHC", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QMON%": { + "code": "QMON%", + "display": "Monocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QNEU%": { + "code": "QNEU%", + "display": "Neutrophils", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QPEHE": { + "code": "QPEHE", + "display": "CTROPHORETIC PATTERN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QRPR1": { + "code": "QRPR1", + "display": "RPR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QRPRT": { + "code": "QRPRT", + "display": "RPR titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "QRPRW": { + "code": "QRPRW", + "display": "RPR Titre Wells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RAPI2": { + "code": "RAPI2", + "display": "HIV 1/2 Rapid Repeat", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RATIO": { + "code": "RATIO", + "display": "RATIOS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RBC": { + "code": "RBC", + "display": "Erythrocyte Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RBCA": { + "code": "RBCA", + "display": "RBC", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RCC": { + "code": "RCC", + "display": "Erythrocyte Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RCCHE": { + "code": "RCCHE", + "display": "Red Cell Cholinesterase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RCELU": { + "code": "RCELU", + "display": "Red Cell Eluate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RCOM": { + "code": "RCOM", + "display": "Red Cell Morphology", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RDW": { + "code": "RDW", + "display": "RDW", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RECR": { + "code": "RECR", + "display": "Recepient Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "REJCT": { + "code": "REJCT", + "display": "Specimen Rejected", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "REM": { + "code": "REM", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RENIC": { + "code": "RENIC", + "display": "Renin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "REQTS": { + "code": "REQTS", + "display": "Test/s requested", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RESLT": { + "code": "RESLT", + "display": "Mgit Reading (for Controls)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RETA": { + "code": "RETA", + "display": "Absolute Reticulocyte Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RETIC": { + "code": "RETIC", + "display": "Reticulocyte Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RETM": { + "code": "RETM", + "display": "Maturation Time", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF": { + "code": "RF", + "display": "Rheumatoid Factor(Screen)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF13": { + "code": "RF13", + "display": "IgE to Peanuts", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF14": { + "code": "RF14", + "display": "IgE to Soya Bean", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF2": { + "code": "RF2", + "display": "IgE to Cow`s Milk", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF3": { + "code": "RF3", + "display": "IgE to Fish (Cod)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF4": { + "code": "RF4", + "display": "Rheumatoid Factor Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RF8": { + "code": "RF8", + "display": "to Maize", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RFQM": { + "code": "RFQM", + "display": "Rheumatoid Factor", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RFR": { + "code": "RFR", + "display": "RF Rule", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RFT": { + "code": "RFT", + "display": "Rheumatoid Factor Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RG": { + "code": "RG", + "display": "Rhesus Type", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RGLU": { + "code": "RGLU", + "display": "Glucose Random", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RH": { + "code": "RH", + "display": "Rhesus (D)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RHAB": { + "code": "RHAB", + "display": "Atypical Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RHABC": { + "code": "RHABC", + "display": "Anribody Identification", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RHABI": { + "code": "RHABI", + "display": "Antibody Identification", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RHABT": { + "code": "RHABT", + "display": "Antibody Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RHNEG": { + "code": "RHNEG", + "display": "Negative", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RIFTB": { + "code": "RIFTB", + "display": "Rifampicin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RILPI": { + "code": "RILPI", + "display": "Rilpivirine (RPV)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RINHS": { + "code": "RINHS", + "display": "Inhalant Screen Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RJREA": { + "code": "RJREA", + "display": "Reject Reason", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RJREM": { + "code": "RJREM", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ROTA": { + "code": "ROTA", + "display": "Rotavirus Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ROTAG": { + "code": "ROTAG", + "display": "Rotavirus Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ROTRT": { + "code": "ROTRT", + "display": "Rotavirus PCR Results", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RPCR": { + "code": "RPCR", + "display": "Rotavirus: PCR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RPI": { + "code": "RPI", + "display": "Reticulocyte Production Index", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RPR1": { + "code": "RPR1", + "display": "RPR", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RPRT": { + "code": "RPRT", + "display": "RPR Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RPRW": { + "code": "RPRW", + "display": "RPR Titre Wells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RRF1": { + "code": "RRF1", + "display": "IgE to Egg White", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RRF4": { + "code": "RRF4", + "display": "IgE to Wheat", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RTTBP": { + "code": "RTTBP", + "display": "Real-time PCR for M tubercul", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RUGFL": { + "code": "RUGFL", + "display": "Rubella IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RUGT": { + "code": "RUGT", + "display": "Rubella IgG Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RUMFL": { + "code": "RUMFL", + "display": "Rubella IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RUMT": { + "code": "RUMT", + "display": "Rubella IgM Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SABCO": { + "code": "SABCO", + "display": "Cut off : Surface antibody", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SABFL": { + "code": "SABFL", + "display": "Hepatitis B surface Antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SABNI": { + "code": "SABNI", + "display": "Abnormal forms include:", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SABVA": { + "code": "SABVA", + "display": "Value : Surface antibody", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SACE": { + "code": "SACE", + "display": "Angiotensin Converting Enzyme", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SACT2": { + "code": "SACT2", + "display": "Adreno-corticotrophic Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SACTH": { + "code": "SACTH", + "display": "Adreno-corticotrophic Hormone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SADA": { + "code": "SADA", + "display": "Adenosine Deaminase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SAGCO": { + "code": "SAGCO", + "display": "Cut off : Surface antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SAGFL": { + "code": "SAGFL", + "display": "Hepatitis B Surface Antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SAGVA": { + "code": "SAGVA", + "display": "Value : Surface antigen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALC": { + "code": "SALC", + "display": "S-Salicylate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALHT": { + "code": "SALHT", + "display": "Salmonella typhi H titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALP": { + "code": "SALP", + "display": "Alkaline Phosphatase (ALP)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALT": { + "code": "SALT", + "display": "Alanine Transaminase (ALT)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SAMY": { + "code": "SAMY", + "display": "Serum Amylase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SAPP": { + "code": "SAPP", + "display": "Appearance (fresh semen)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SAST": { + "code": "SAST", + "display": "Aspartate Transaminase (AST)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SIBIL": { + "code": "SIBIL", + "display": "Bilirubin (indirect)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCHOL": { + "code": "SCHOL", + "display": "S-Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCK2": { + "code": "SCK2", + "display": "Creatine Kinase (CK)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCKMB": { + "code": "SCKMB", + "display": "CKMB", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCO2": { + "code": "SCO2", + "display": "Carbon dioxide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCORT": { + "code": "SCORT", + "display": "Cortisol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCOUN": { + "code": "SCOUN", + "display": "Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCRN": { + "code": "SCRN", + "display": "ABO Screening", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCRT": { + "code": "SCRT", + "display": "S-Creatinine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SDBIL": { + "code": "SDBIL", + "display": "Bilirubin (direct)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SERY": { + "code": "SERY", + "display": "Red Blood Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SGGT": { + "code": "SGGT", + "display": "g-Glutamyl Transferase (GGT)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SGLU": { + "code": "SGLU", + "display": "Glucose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SHDL": { + "code": "SHDL", + "display": "S-HDL Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SIRON": { + "code": "SIRON", + "display": "Iron", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SK": { + "code": "SK", + "display": "Potassium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SLDH": { + "code": "SLDH", + "display": "Lactate Dehydrogenase (LD)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SLDL": { + "code": "SLDL", + "display": "S-LDL Cholesterol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SLGIE": { + "code": "SLGIE", + "display": "Slides GIEMSA Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SLPAP": { + "code": "SLPAP", + "display": "Slides PAP Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SMG": { + "code": "SMG", + "display": "S-Magnesium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SMOT2": { + "code": "SMOT2", + "display": "%Progressive motility 2nd hour", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SMOT3": { + "code": "SMOT3", + "display": "%Progressive motility 3rd hour", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SMOT6": { + "code": "SMOT6", + "display": "%Progressive motility 6th hour", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SMOTI": { + "code": "SMOTI", + "display": "Motility Studies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SMYO": { + "code": "SMYO", + "display": "S-Myoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SNA": { + "code": "SNA", + "display": "Sodium", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SNPP": { + "code": "SNPP", + "display": "S-Acid Phos. Non-Prostatic", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SPEM": { + "code": "SPEM", + "display": "Spermatozoa", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SPH": { + "code": "SPH", + "display": "Reaction (pH)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SPO4": { + "code": "SPO4", + "display": "S-Phosphate Inorganic", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SRATE": { + "code": "SRATE", + "display": "Rate of forward progression", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SSMEL": { + "code": "SSMEL", + "display": "Smell", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "STACP": { + "code": "STACP", + "display": "S-Acid Phosphatase (Total)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "STBIL": { + "code": "STBIL", + "display": "Bilirubin (Total)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "STP": { + "code": "STP", + "display": "S-Total Protein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "STRIG": { + "code": "STRIG", + "display": "S-Triglycerides", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SUREA": { + "code": "SUREA", + "display": "Blood urea nitrogen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SVISC": { + "code": "SVISC", + "display": "Viscosity after liquefaction", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SVITA": { + "code": "SVITA", + "display": "Vitality after 2 hours", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SVOL": { + "code": "SVOL", + "display": "Volume of collection", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SWBC": { + "code": "SWBC", + "display": "White Blood cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBADT": { + "code": "TBADT", + "display": "Tuberculosis investigation", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBAMI": { + "code": "TBAMI", + "display": "Amikacin (1ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBAR1": { + "code": "TBAR1", + "display": "Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBAR2": { + "code": "TBAR2", + "display": "Grading", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBARM": { + "code": "TBARM", + "display": "Remarks", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBBAC": { + "code": "TBBAC", + "display": "Mgit Reading", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBBCM": { + "code": "TBBCM", + "display": "Bactec Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBBDT": { + "code": "TBBDT", + "display": "Instrument Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBC1D": { + "code": "TBC1D", + "display": "Reprocessed Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBCLO": { + "code": "TBCLO", + "display": "Clofazimine (1ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBCN1": { + "code": "TBCN1", + "display": "Reprocessed", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBETM": { + "code": "TBETM", + "display": "Ethambutol", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBINH": { + "code": "TBINH", + "display": "Isoniazid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBLEV": { + "code": "TBLEV", + "display": "Levofloxacin (1ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBMOF": { + "code": "TBMOF", + "display": "Moxifloxacin (0.25ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBODT": { + "code": "TBODT", + "display": "Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBORG": { + "code": "TBORG", + "display": "Org Isolated", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBP-A": { + "code": "TBP-A", + "display": "P-Aminosalicylic Acid (4ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBRCM": { + "code": "TBRCM", + "display": "TB Rapid Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBRIF": { + "code": "TBRIF", + "display": "Rifampicin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBRP": { + "code": "TBRP", + "display": "TB Rapid ID", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TEST": { + "code": "TEST", + "display": "Testosterone", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TETRA": { + "code": "TETRA", + "display": "Tetracycline", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "THSR": { + "code": "THSR", + "display": "T H/S Ratio", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TMP": { + "code": "TMP", + "display": "Trimethoprim", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TPHA": { + "code": "TPHA", + "display": "TPHA", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TROP": { + "code": "TROP", + "display": "Troponin T", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TROPI": { + "code": "TROPI", + "display": "S-TROPONIN I", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TRYP": { + "code": "TRYP", + "display": "Trypanosomes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TS": { + "code": "TS", + "display": "Co-trimoxazole", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TSH": { + "code": "TSH", + "display": "S-TSH", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TWBCC": { + "code": "TWBCC", + "display": "Total White Blood Cell Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TXMFL": { + "code": "TXMFL", + "display": "Toxoplasma IgM", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TZP": { + "code": "TZP", + "display": "Piperacillin/Tazobactam", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UAMY": { + "code": "UAMY", + "display": "Amylase", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UBACT": { + "code": "UBACT", + "display": "Bacteria", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UBL": { + "code": "UBL", + "display": "Blood", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UCRT": { + "code": "UCRT", + "display": "U-Creatinine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UHB": { + "code": "UHB", + "display": "Haemoglobin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UMA": { + "code": "UMA", + "display": "U-Microalbumin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UMAER": { + "code": "UMAER", + "display": "Microalbumin excretion rate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UPREG": { + "code": "UPREG", + "display": "Pregnancy Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "USG": { + "code": "USG", + "display": "Specific Gravity", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UUBGN": { + "code": "UUBGN", + "display": "Urobilinogen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "UVOL": { + "code": "UVOL", + "display": "U-Volume", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VALPR": { + "code": "VALPR", + "display": "S-Valproate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VANCO": { + "code": "VANCO", + "display": "Vancomycin", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VCULT": { + "code": "VCULT", + "display": "CULTURE RESULT", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VDRLS": { + "code": "VDRLS", + "display": "VDRL Screen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VDRLT": { + "code": "VDRLT", + "display": "VDRL Titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VEPI": { + "code": "VEPI", + "display": "Epithelial Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VGLU": { + "code": "VGLU", + "display": "F-Glucose", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VITD": { + "code": "VITD", + "display": "1.25 Dihydroxy Vitamin D", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VOL": { + "code": "VOL", + "display": "Volume of collection", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VZG": { + "code": "VZG", + "display": "Varicella-Zoster IgG", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WBACT": { + "code": "WBACT", + "display": "0rganisms Seen", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WBC": { + "code": "WBC", + "display": "Leucocyte Count", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WDU": { + "code": "WDU", + "display": "Weak D", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WEPI": { + "code": "WEPI", + "display": "EPITHELIAL CELLS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WERY": { + "code": "WERY", + "display": "RED BLOOD CELLS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WET": { + "code": "WET", + "display": "WET PREPARATION", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WFH": { + "code": "WFH", + "display": "FUNGAL HYPHAE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WPSHY": { + "code": "WPSHY", + "display": "PSEUDOHYPHAE", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WWBC": { + "code": "WWBC", + "display": "WHITE BLOOD CELLS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WYST": { + "code": "WYST", + "display": "YEAST CELLS", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "XGLUC": { + "code": "XGLUC", + "display": "P-Glucose (Fasting)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "YEAST": { + "code": "YEAST", + "display": "Yeast Cells", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "ZIN": { + "code": "ZIN", + "display": "Zinate", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "COV19": { + "code": "COV19", + "display": "SARS-CoV-2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CVCOM": { + "code": "CVCOM", + "display": "SARS-CoV-2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CA15-3": { + "code": "CA15-3", + "display": "CA153", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCA": { + "code": "SCA", + "display": "S-Calcium total", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCL": { + "code": "SCL", + "display": "Chloride", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "XMATC": { + "code": "XMATC", + "display": "Cross Match Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "!GXMT": { + "code": "!GXMT", + "display": "GeneXpert MTB Rule", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SUA": { + "code": "SUA", + "display": "Uric acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SUAA": { + "code": "SUAA", + "display": "Uric acid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "VCRT": { + "code": "VCRT", + "display": "Creatinine", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DLM": { + "code": "DLM", + "display": "Delamanid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LZD": { + "code": "LZD", + "display": "Linezolid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "BDQ": { + "code": "BDQ", + "display": "Bedaquiline", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBETH": { + "code": "TBETH", + "display": "Ethionamide", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBISO": { + "code": "TBISO", + "display": "Isoniazid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBZCM": { + "code": "TBZCM", + "display": "ZN Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBZDT": { + "code": "TBZDT", + "display": "Zn Date", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBZH": { + "code": "TBZH", + "display": "ZEIHL-NEELSEN STAIN", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBZN": { + "code": "TBZN", + "display": "Ziehl-Neelsen Stain", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBZNI": { + "code": "TBZNI", + "display": "TBZN Internal", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBLIN": { + "code": "TBLIN", + "display": "Linezolid", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "WBCA": { + "code": "WBCA", + "display": "WBC", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALTH": { + "code": "SALTH", + "display": "Salmonella typhi H antibodies", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SALOT": { + "code": "SALOT", + "display": "Salmonella typhi O titre", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "LYMA#": { + "code": "LYMA#", + "display": "Lymphocytes", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CVRP": { + "code": "CVRP", + "display": "COVID-19 Ag Rapid Test", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "CT": { + "code": "CT", + "display": "Chlamydia Trachomatis", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "NG": { + "code": "NG", + "display": "Neisseria Gonorrhoeae", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "RCHOL": { + "code": "RCHOL", + "display": "RCHOL-Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "DSYTP": { + "code": "DSYTP", + "display": "Determinate Syphilis TP", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBAU": { + "code": "TBAU", + "display": "Auramine Result", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBCM": { + "code": "TBCM", + "display": "Auramine Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBRI2": { + "code": "TBRI2", + "display": "Rifampicin (0.5ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBMOX": { + "code": "TBMOX", + "display": "Moxifloxacin (1ug/ml)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBSF": { + "code": "TBSF", + "display": "TB First Line Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "TBLP": { + "code": "TBLP", + "display": "TB Line Probe Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "HIVPS": { + "code": "HIVPS", + "display": "HIV Viral Load (PSC)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSC2": { + "code": "PSC2", + "display": "Log Value", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "PSCD": { + "code": "PSCD", + "display": "HIV Viral Load", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + }, + "SCOM": { + "code": "SCOM", + "display": "Comment", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS": { + "1": { + "code": "1", + "display": "Lamgabhi ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "2": { + "code": "2", + "display": "Dlangeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "3": { + "code": "3", + "display": "Kasiko", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "4": { + "code": "4", + "display": "Sitseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "5": { + "code": "5", + "display": "Zulwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "6": { + "code": "6", + "display": "ELangeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "7": { + "code": "7", + "display": "Lobamba ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "8": { + "code": "8", + "display": "Nkhanini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "9": { + "code": "9", + "display": "Zabeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "10": { + "code": "10", + "display": "Zandondo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "11": { + "code": "11", + "display": "Gucuka ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "12": { + "code": "12", + "display": "Tfuntini/Buhlebuyeza ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "13": { + "code": "13", + "display": "Dvokolwako / Ekuphakameni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "14": { + "code": "14", + "display": "Ekukhulumeni/ Mandlangempisi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "15": { + "code": "15", + "display": "Nyonyane/ Maguga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "16": { + "code": "16", + "display": "Mavula", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "17": { + "code": "17", + "display": "Maphalaleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "18": { + "code": "18", + "display": "Dlozini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "19": { + "code": "19", + "display": "Mcengeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "20": { + "code": "20", + "display": "Madlolo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "21": { + "code": "21", + "display": "Nsingweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "22": { + "code": "22", + "display": "Mfeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "23": { + "code": "23", + "display": "Mkhuzweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "24": { + "code": "24", + "display": "Mfasini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "25": { + "code": "25", + "display": "Mkhweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "26": { + "code": "26", + "display": "Mavula", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "27": { + "code": "27", + "display": "Herefords", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "28": { + "code": "28", + "display": "Msunduza", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "29": { + "code": "29", + "display": "Fontein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "30": { + "code": "30", + "display": "Sidwashini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "31": { + "code": "31", + "display": "Mdzimba/Lofokati", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "32": { + "code": "32", + "display": "Manzana", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "33": { + "code": "33", + "display": "Nkwalini ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "34": { + "code": "34", + "display": "Mangwaneni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "35": { + "code": "35", + "display": "Mangweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "36": { + "code": "36", + "display": "Ndvwabangeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "37": { + "code": "37", + "display": "Nhlanguyavuka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "38": { + "code": "38", + "display": "Zinyane ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "39": { + "code": "39", + "display": "Emalibeni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "40": { + "code": "40", + "display": "Sidvwashini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "41": { + "code": "41", + "display": "Nyakatfo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "42": { + "code": "42", + "display": "Mphofu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "43": { + "code": "43", + "display": "Mgungundlovu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "44": { + "code": "44", + "display": "Nkamanzi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "45": { + "code": "45", + "display": "Ludlawini ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "46": { + "code": "46", + "display": "Mvuma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "47": { + "code": "47", + "display": "Bulandzeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "48": { + "code": "48", + "display": "Ndzingeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "49": { + "code": "49", + "display": "Kwaliweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "50": { + "code": "50", + "display": "Meleti", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "51": { + "code": "51", + "display": "Ntsanjeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "52": { + "code": "52", + "display": "Ejubukweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "53": { + "code": "53", + "display": "Malanti", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "54": { + "code": "54", + "display": "Nkhaba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "55": { + "code": "55", + "display": "Kuvinjelweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "56": { + "code": "56", + "display": "Vusweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "57": { + "code": "57", + "display": "Mshingishingini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "58": { + "code": "58", + "display": "ka-Hhohho", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "59": { + "code": "59", + "display": "Lomshiyo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "60": { + "code": "60", + "display": "Emvembili", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "61": { + "code": "61", + "display": "Kandwandwa", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "62": { + "code": "62", + "display": "Hhelehhele", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "63": { + "code": "63", + "display": "Bulembu (Luhhumaneni 1)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "64": { + "code": "64", + "display": "Luhhumaneni/kaNdeva", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "65": { + "code": "65", + "display": "Luhlangotsini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "66": { + "code": "66", + "display": "Piggs Peak", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "67": { + "code": "67", + "display": "Nginamadvolo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "68": { + "code": "68", + "display": "Nsangwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "69": { + "code": "69", + "display": "Siphocosini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "70": { + "code": "70", + "display": "Sigangeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "71": { + "code": "71", + "display": "Luhlendlweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "72": { + "code": "72", + "display": "Mantabeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "73": { + "code": "73", + "display": "Mashobeni North", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "74": { + "code": "74", + "display": "Mvembili", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "75": { + "code": "75", + "display": "Ludzibini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "76": { + "code": "76", + "display": "Hhohho", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "77": { + "code": "77", + "display": "Hlane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "78": { + "code": "78", + "display": "Malindza", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "79": { + "code": "79", + "display": "Mdumezulu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "80": { + "code": "80", + "display": "Njabulweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "81": { + "code": "81", + "display": "Ntandweni (Malindza)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "82": { + "code": "82", + "display": "Etjedze", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "83": { + "code": "83", + "display": "Sigcaweni West", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "84": { + "code": "84", + "display": "Macetjeni (Mabondvweni)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "85": { + "code": "85", + "display": "Hlutse", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "86": { + "code": "86", + "display": "Macetjeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "87": { + "code": "87", + "display": "Vikizijula", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "88": { + "code": "88", + "display": "Bulunga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "89": { + "code": "89", + "display": "Lomahasha", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "90": { + "code": "90", + "display": "Shewula", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "91": { + "code": "91", + "display": "kaVuma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "92": { + "code": "92", + "display": "Canter berry", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "93": { + "code": "93", + "display": "Mabantaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "94": { + "code": "94", + "display": "Ntuthwakazi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "95": { + "code": "95", + "display": "kaLanga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "96": { + "code": "96", + "display": "Makhewu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "97": { + "code": "97", + "display": "Mlindazwe", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "98": { + "code": "98", + "display": "Sitsatsaweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "99": { + "code": "99", + "display": "Lukhetseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "100": { + "code": "100", + "display": "Mambane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "101": { + "code": "101", + "display": "Maphungwane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "102": { + "code": "102", + "display": "Tikhuba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "103": { + "code": "103", + "display": "Mafucula", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "104": { + "code": "104", + "display": "Mhlume", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "105": { + "code": "105", + "display": "Simunye", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "106": { + "code": "106", + "display": "Tambankulu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "107": { + "code": "107", + "display": "Tshaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "108": { + "code": "108", + "display": "Vuvulane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "109": { + "code": "109", + "display": "Tsambokhulu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "110": { + "code": "110", + "display": "kaShoba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "111": { + "code": "111", + "display": "Mpolonjeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "112": { + "code": "112", + "display": "Ndzangu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "113": { + "code": "113", + "display": "Ngcina", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "114": { + "code": "114", + "display": "Sigcaweni East", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "115": { + "code": "115", + "display": "Crooks Plantations", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "116": { + "code": "116", + "display": "Gamula", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "117": { + "code": "117", + "display": "Lunkuntfu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "118": { + "code": "118", + "display": "Nkhanini/Lusabeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "119": { + "code": "119", + "display": "Illovo/Mayaluka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "120": { + "code": "120", + "display": "Phafeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "121": { + "code": "121", + "display": "Madlenya", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "122": { + "code": "122", + "display": "Maphilingo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "123": { + "code": "123", + "display": "kaMkhweli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "124": { + "code": "124", + "display": "Mphumakudze", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "125": { + "code": "125", + "display": "Nceka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "126": { + "code": "126", + "display": "Ngevini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "127": { + "code": "127", + "display": "Tambuti", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "128": { + "code": "128", + "display": "Luhlanyeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "129": { + "code": "129", + "display": "Mamisa", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "130": { + "code": "130", + "display": "Nkonjwa", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "131": { + "code": "131", + "display": "Nokwane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "132": { + "code": "132", + "display": "Nyakeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "133": { + "code": "133", + "display": "Nkiliji", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "134": { + "code": "134", + "display": "Bhekinkhosi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "135": { + "code": "135", + "display": "Nswaceni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "136": { + "code": "136", + "display": "Mkhulamini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "137": { + "code": "137", + "display": "Maliyaduma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "138": { + "code": "138", + "display": "Mbeka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "139": { + "code": "139", + "display": "Kwaluseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "140": { + "code": "140", + "display": "Logoba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "141": { + "code": "141", + "display": "Mhlane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "142": { + "code": "142", + "display": "Lamgabhi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "143": { + "code": "143", + "display": "Dvudvusini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "144": { + "code": "144", + "display": "Luhleko", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "145": { + "code": "145", + "display": "Emhlangeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "146": { + "code": "146", + "display": "Nhlulweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "147": { + "code": "147", + "display": "Kufinyeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "148": { + "code": "148", + "display": "Luyengo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "149": { + "code": "149", + "display": "Mahlanya", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "150": { + "code": "150", + "display": "Ngwenyameni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "151": { + "code": "151", + "display": "Mbekelweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "152": { + "code": "152", + "display": "Zombodze", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "153": { + "code": "153", + "display": "Lozitha", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "154": { + "code": "154", + "display": "Nkamanzi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "155": { + "code": "155", + "display": "Kudzeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "156": { + "code": "156", + "display": "Ngculwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "157": { + "code": "157", + "display": "Ka-Nkhambule", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "158": { + "code": "158", + "display": "Mafutseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "159": { + "code": "159", + "display": "Luhlokohla", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "160": { + "code": "160", + "display": "Timbutini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "161": { + "code": "161", + "display": "Bhudla", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "162": { + "code": "162", + "display": "Mgomfelweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "163": { + "code": "163", + "display": "Luzelweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "164": { + "code": "164", + "display": "Mambatfweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "165": { + "code": "165", + "display": "Nsangwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "166": { + "code": "166", + "display": "Mpolonjeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "167": { + "code": "167", + "display": "Ludvondvolweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "168": { + "code": "168", + "display": "KaZulu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "169": { + "code": "169", + "display": "Nciniselweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "170": { + "code": "170", + "display": "Ndzeleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "171": { + "code": "171", + "display": "Sigcineni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "172": { + "code": "172", + "display": "Bhahwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "173": { + "code": "173", + "display": "Mangcongco/Zenukeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "174": { + "code": "174", + "display": "Sandlane/Ekuthuleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "175": { + "code": "175", + "display": "Mabhukwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "176": { + "code": "176", + "display": "Dwalile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "177": { + "code": "177", + "display": "Makholweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "178": { + "code": "178", + "display": "St Pauls", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "179": { + "code": "179", + "display": "Mnyenyweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "180": { + "code": "180", + "display": "Manzini Central", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "181": { + "code": "181", + "display": "Dwaleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "182": { + "code": "182", + "display": "Mzimnene", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "183": { + "code": "183", + "display": "Mhobodleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "184": { + "code": "184", + "display": "Mjingo ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "185": { + "code": "185", + "display": "Moneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "186": { + "code": "186", + "display": "Ticancweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "187": { + "code": "187", + "display": "Zakhele", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "188": { + "code": "188", + "display": "Ngwane Park", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "189": { + "code": "189", + "display": "Zondwako", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "190": { + "code": "190", + "display": "Lundzi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "191": { + "code": "191", + "display": "Dingizwe", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "192": { + "code": "192", + "display": "Mlindazwe", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "193": { + "code": "193", + "display": "Mbangave", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "194": { + "code": "194", + "display": "Bhunya", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "195": { + "code": "195", + "display": "Dvokolwako", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "196": { + "code": "196", + "display": "Mbelebeleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "197": { + "code": "197", + "display": "Kutsimuleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "198": { + "code": "198", + "display": "Khuphuka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "199": { + "code": "199", + "display": "Likima", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "200": { + "code": "200", + "display": "Gundvwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "201": { + "code": "201", + "display": "Gundvwini/Lesibovu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "202": { + "code": "202", + "display": "Lwandle", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "203": { + "code": "203", + "display": "Ndlandlameni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "204": { + "code": "204", + "display": "Hlane/Bulunga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "205": { + "code": "205", + "display": "Dladleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "206": { + "code": "206", + "display": "Ngcoseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "207": { + "code": "207", + "display": "Bhadzeni 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "208": { + "code": "208", + "display": "Velezizweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "209": { + "code": "209", + "display": "Macudvulwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "210": { + "code": "210", + "display": "Ngonini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "211": { + "code": "211", + "display": "Njelu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "212": { + "code": "212", + "display": "Mphankhomo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "213": { + "code": "213", + "display": "Masundvwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "214": { + "code": "214", + "display": "Sibuyeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "215": { + "code": "215", + "display": "Vusweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "216": { + "code": "216", + "display": "Sigombeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "217": { + "code": "217", + "display": "Ntunja", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "218": { + "code": "218", + "display": "Eni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "219": { + "code": "219", + "display": "Ngcayini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "220": { + "code": "220", + "display": "Sankolweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "221": { + "code": "221", + "display": "Nsenga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "222": { + "code": "222", + "display": "Nsingweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "223": { + "code": "223", + "display": "Ntondozi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "224": { + "code": "224", + "display": "Ncabaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "225": { + "code": "225", + "display": "Khalangilile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "226": { + "code": "226", + "display": "Mphini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "227": { + "code": "227", + "display": "Ndinda", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "228": { + "code": "228", + "display": "Ndlinilembi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "229": { + "code": "229", + "display": "Gebeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "230": { + "code": "230", + "display": "Mgazini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "231": { + "code": "231", + "display": "Bhadzeni 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "232": { + "code": "232", + "display": "Mahhashini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "233": { + "code": "233", + "display": "Lushikishini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "234": { + "code": "234", + "display": "Khabonina", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "235": { + "code": "235", + "display": "Dilini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "236": { + "code": "236", + "display": "KaDinga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "237": { + "code": "237", + "display": "kaTsambekwako", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "238": { + "code": "238", + "display": "Mashobeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "239": { + "code": "239", + "display": "Mhlahlweni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "240": { + "code": "240", + "display": "Mlindazwe", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "241": { + "code": "241", + "display": "Nshamanti", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "242": { + "code": "242", + "display": "Nsukazi ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "243": { + "code": "243", + "display": "Sidwala", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "244": { + "code": "244", + "display": "Sisingeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "245": { + "code": "245", + "display": "Siyendle", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "246": { + "code": "246", + "display": "Bufaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "247": { + "code": "247", + "display": "Hhohho Emuva", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "248": { + "code": "248", + "display": "kaLiba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "249": { + "code": "249", + "display": "Lushini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "250": { + "code": "250", + "display": "Manyiseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "251": { + "code": "251", + "display": "Nsingizini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "252": { + "code": "252", + "display": "Ondiyaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "253": { + "code": "253", + "display": "Ezishineni/ Manyeveni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "254": { + "code": "254", + "display": "Kaphunga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "255": { + "code": "255", + "display": "KaNdlovu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "256": { + "code": "256", + "display": "Ngobelweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "257": { + "code": "257", + "display": "Nhlalabantfu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "258": { + "code": "258", + "display": "KaKholwane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "259": { + "code": "259", + "display": "kaMbhoke", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "260": { + "code": "260", + "display": "kaGwebu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "261": { + "code": "261", + "display": "Gasa", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "262": { + "code": "262", + "display": "Khamsile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "263": { + "code": "263", + "display": "Lomfa", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "264": { + "code": "264", + "display": "Mbabane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "265": { + "code": "265", + "display": "Mbangweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "266": { + "code": "266", + "display": "Nkalaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "267": { + "code": "267", + "display": "Nzameya", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "268": { + "code": "268", + "display": "Nkomonye", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "269": { + "code": "269", + "display": "KaDlovunga ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "270": { + "code": "270", + "display": "KaMzizi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "271": { + "code": "271", + "display": "Masibini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "272": { + "code": "272", + "display": "Mbilaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "273": { + "code": "273", + "display": "Simemeni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "274": { + "code": "274", + "display": "Vusweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "275": { + "code": "275", + "display": "Bambitje", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "276": { + "code": "276", + "display": "Dinabanye", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "277": { + "code": "277", + "display": "Kwaluseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "278": { + "code": "278", + "display": "Nkonka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "279": { + "code": "279", + "display": "Nsalitje", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "280": { + "code": "280", + "display": "Qomintaba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "281": { + "code": "281", + "display": "Benezer", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "282": { + "code": "282", + "display": "Bhanganoma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "283": { + "code": "283", + "display": "Kwendzeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "284": { + "code": "284", + "display": "Magele", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "285": { + "code": "285", + "display": "Zenzile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "286": { + "code": "286", + "display": "KaMbiko", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "287": { + "code": "287", + "display": "KaMhawu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "288": { + "code": "288", + "display": "KaMshengu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "289": { + "code": "289", + "display": "Lusitini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "290": { + "code": "290", + "display": "Mphini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "291": { + "code": "291", + "display": "Ndushulweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "292": { + "code": "292", + "display": "Nokwane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "293": { + "code": "293", + "display": "Phobane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "294": { + "code": "294", + "display": "Buseleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "295": { + "code": "295", + "display": "Hlobane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "296": { + "code": "296", + "display": "Kuphumuleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "297": { + "code": "297", + "display": "Nkwene", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "298": { + "code": "298", + "display": "kaGwegwe", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "299": { + "code": "299", + "display": "Ezibondeni/Kashiba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "300": { + "code": "300", + "display": "Nhletjeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "301": { + "code": "301", + "display": "Nkhungwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "302": { + "code": "302", + "display": "Ngololweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "303": { + "code": "303", + "display": "Dumenkhungwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "304": { + "code": "304", + "display": "Eposini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "305": { + "code": "305", + "display": "Hhuhhuma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "306": { + "code": "306", + "display": "Mabonabulawe", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "307": { + "code": "307", + "display": "Manyandzeni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "308": { + "code": "308", + "display": "Mchinsweni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "309": { + "code": "309", + "display": "Zikhotheni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "310": { + "code": "310", + "display": "Mahlalini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "311": { + "code": "311", + "display": "Mbabala", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "312": { + "code": "312", + "display": "Mbeka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "313": { + "code": "313", + "display": "Makhwelela", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "314": { + "code": "314", + "display": "Mpangisweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "315": { + "code": "315", + "display": "Mbangweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "316": { + "code": "316", + "display": "Mathendele", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "317": { + "code": "317", + "display": "Mkhitsini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "318": { + "code": "318", + "display": "Sikhotseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "319": { + "code": "319", + "display": "Lulakeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "320": { + "code": "320", + "display": "Kuphumleni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "321": { + "code": "321", + "display": "Ndunayithini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "322": { + "code": "322", + "display": "Nyatsini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "323": { + "code": "323", + "display": "Ezindwendweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "324": { + "code": "324", + "display": "Luhlekweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "325": { + "code": "325", + "display": "Maplotini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "326": { + "code": "326", + "display": "Ntuthwakazi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "327": { + "code": "327", + "display": "Nsubane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "328": { + "code": "328", + "display": "Phangweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "329": { + "code": "329", + "display": "Vimbizibuko", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "330": { + "code": "330", + "display": "Bulekeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "331": { + "code": "331", + "display": "Mampondweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "332": { + "code": "332", + "display": "Ngwenyameni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "333": { + "code": "333", + "display": "Zombodze ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "334": { + "code": "334", + "display": "Nduma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "335": { + "code": "335", + "display": "Kupheleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "336": { + "code": "336", + "display": "Mpolonjeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "337": { + "code": "337", + "display": "Nhlalabantfu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "338": { + "code": "338", + "display": "Mhlangatane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "340": { + "code": "340", + "display": "Mhawini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "-99": { + "code": "-99", + "display": "Unspecified", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzChiefdomVS|0.1.0": { + "1": { + "code": "1", + "display": "Lamgabhi ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "2": { + "code": "2", + "display": "Dlangeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "3": { + "code": "3", + "display": "Kasiko", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "4": { + "code": "4", + "display": "Sitseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "5": { + "code": "5", + "display": "Zulwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "6": { + "code": "6", + "display": "ELangeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "7": { + "code": "7", + "display": "Lobamba ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "8": { + "code": "8", + "display": "Nkhanini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "9": { + "code": "9", + "display": "Zabeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "10": { + "code": "10", + "display": "Zandondo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "11": { + "code": "11", + "display": "Gucuka ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "12": { + "code": "12", + "display": "Tfuntini/Buhlebuyeza ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "13": { + "code": "13", + "display": "Dvokolwako / Ekuphakameni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "14": { + "code": "14", + "display": "Ekukhulumeni/ Mandlangempisi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "15": { + "code": "15", + "display": "Nyonyane/ Maguga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "16": { + "code": "16", + "display": "Mavula", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "17": { + "code": "17", + "display": "Maphalaleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "18": { + "code": "18", + "display": "Dlozini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "19": { + "code": "19", + "display": "Mcengeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "20": { + "code": "20", + "display": "Madlolo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "21": { + "code": "21", + "display": "Nsingweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "22": { + "code": "22", + "display": "Mfeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "23": { + "code": "23", + "display": "Mkhuzweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "24": { + "code": "24", + "display": "Mfasini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "25": { + "code": "25", + "display": "Mkhweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "26": { + "code": "26", + "display": "Mavula", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "27": { + "code": "27", + "display": "Herefords", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "28": { + "code": "28", + "display": "Msunduza", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "29": { + "code": "29", + "display": "Fontein", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "30": { + "code": "30", + "display": "Sidwashini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "31": { + "code": "31", + "display": "Mdzimba/Lofokati", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "32": { + "code": "32", + "display": "Manzana", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "33": { + "code": "33", + "display": "Nkwalini ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "34": { + "code": "34", + "display": "Mangwaneni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "35": { + "code": "35", + "display": "Mangweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "36": { + "code": "36", + "display": "Ndvwabangeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "37": { + "code": "37", + "display": "Nhlanguyavuka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "38": { + "code": "38", + "display": "Zinyane ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "39": { + "code": "39", + "display": "Emalibeni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "40": { + "code": "40", + "display": "Sidvwashini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "41": { + "code": "41", + "display": "Nyakatfo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "42": { + "code": "42", + "display": "Mphofu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "43": { + "code": "43", + "display": "Mgungundlovu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "44": { + "code": "44", + "display": "Nkamanzi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "45": { + "code": "45", + "display": "Ludlawini ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "46": { + "code": "46", + "display": "Mvuma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "47": { + "code": "47", + "display": "Bulandzeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "48": { + "code": "48", + "display": "Ndzingeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "49": { + "code": "49", + "display": "Kwaliweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "50": { + "code": "50", + "display": "Meleti", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "51": { + "code": "51", + "display": "Ntsanjeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "52": { + "code": "52", + "display": "Ejubukweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "53": { + "code": "53", + "display": "Malanti", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "54": { + "code": "54", + "display": "Nkhaba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "55": { + "code": "55", + "display": "Kuvinjelweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "56": { + "code": "56", + "display": "Vusweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "57": { + "code": "57", + "display": "Mshingishingini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "58": { + "code": "58", + "display": "ka-Hhohho", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "59": { + "code": "59", + "display": "Lomshiyo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "60": { + "code": "60", + "display": "Emvembili", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "61": { + "code": "61", + "display": "Kandwandwa", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "62": { + "code": "62", + "display": "Hhelehhele", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "63": { + "code": "63", + "display": "Bulembu (Luhhumaneni 1)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "64": { + "code": "64", + "display": "Luhhumaneni/kaNdeva", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "65": { + "code": "65", + "display": "Luhlangotsini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "66": { + "code": "66", + "display": "Piggs Peak", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "67": { + "code": "67", + "display": "Nginamadvolo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "68": { + "code": "68", + "display": "Nsangwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "69": { + "code": "69", + "display": "Siphocosini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "70": { + "code": "70", + "display": "Sigangeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "71": { + "code": "71", + "display": "Luhlendlweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "72": { + "code": "72", + "display": "Mantabeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "73": { + "code": "73", + "display": "Mashobeni North", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "74": { + "code": "74", + "display": "Mvembili", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "75": { + "code": "75", + "display": "Ludzibini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "76": { + "code": "76", + "display": "Hhohho", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "77": { + "code": "77", + "display": "Hlane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "78": { + "code": "78", + "display": "Malindza", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "79": { + "code": "79", + "display": "Mdumezulu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "80": { + "code": "80", + "display": "Njabulweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "81": { + "code": "81", + "display": "Ntandweni (Malindza)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "82": { + "code": "82", + "display": "Etjedze", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "83": { + "code": "83", + "display": "Sigcaweni West", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "84": { + "code": "84", + "display": "Macetjeni (Mabondvweni)", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "85": { + "code": "85", + "display": "Hlutse", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "86": { + "code": "86", + "display": "Macetjeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "87": { + "code": "87", + "display": "Vikizijula", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "88": { + "code": "88", + "display": "Bulunga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "89": { + "code": "89", + "display": "Lomahasha", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "90": { + "code": "90", + "display": "Shewula", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "91": { + "code": "91", + "display": "kaVuma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "92": { + "code": "92", + "display": "Canter berry", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "93": { + "code": "93", + "display": "Mabantaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "94": { + "code": "94", + "display": "Ntuthwakazi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "95": { + "code": "95", + "display": "kaLanga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "96": { + "code": "96", + "display": "Makhewu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "97": { + "code": "97", + "display": "Mlindazwe", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "98": { + "code": "98", + "display": "Sitsatsaweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "99": { + "code": "99", + "display": "Lukhetseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "100": { + "code": "100", + "display": "Mambane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "101": { + "code": "101", + "display": "Maphungwane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "102": { + "code": "102", + "display": "Tikhuba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "103": { + "code": "103", + "display": "Mafucula", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "104": { + "code": "104", + "display": "Mhlume", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "105": { + "code": "105", + "display": "Simunye", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "106": { + "code": "106", + "display": "Tambankulu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "107": { + "code": "107", + "display": "Tshaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "108": { + "code": "108", + "display": "Vuvulane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "109": { + "code": "109", + "display": "Tsambokhulu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "110": { + "code": "110", + "display": "kaShoba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "111": { + "code": "111", + "display": "Mpolonjeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "112": { + "code": "112", + "display": "Ndzangu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "113": { + "code": "113", + "display": "Ngcina", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "114": { + "code": "114", + "display": "Sigcaweni East", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "115": { + "code": "115", + "display": "Crooks Plantations", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "116": { + "code": "116", + "display": "Gamula", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "117": { + "code": "117", + "display": "Lunkuntfu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "118": { + "code": "118", + "display": "Nkhanini/Lusabeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "119": { + "code": "119", + "display": "Illovo/Mayaluka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "120": { + "code": "120", + "display": "Phafeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "121": { + "code": "121", + "display": "Madlenya", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "122": { + "code": "122", + "display": "Maphilingo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "123": { + "code": "123", + "display": "kaMkhweli", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "124": { + "code": "124", + "display": "Mphumakudze", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "125": { + "code": "125", + "display": "Nceka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "126": { + "code": "126", + "display": "Ngevini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "127": { + "code": "127", + "display": "Tambuti", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "128": { + "code": "128", + "display": "Luhlanyeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "129": { + "code": "129", + "display": "Mamisa", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "130": { + "code": "130", + "display": "Nkonjwa", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "131": { + "code": "131", + "display": "Nokwane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "132": { + "code": "132", + "display": "Nyakeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "133": { + "code": "133", + "display": "Nkiliji", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "134": { + "code": "134", + "display": "Bhekinkhosi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "135": { + "code": "135", + "display": "Nswaceni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "136": { + "code": "136", + "display": "Mkhulamini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "137": { + "code": "137", + "display": "Maliyaduma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "138": { + "code": "138", + "display": "Mbeka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "139": { + "code": "139", + "display": "Kwaluseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "140": { + "code": "140", + "display": "Logoba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "141": { + "code": "141", + "display": "Mhlane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "142": { + "code": "142", + "display": "Lamgabhi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "143": { + "code": "143", + "display": "Dvudvusini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "144": { + "code": "144", + "display": "Luhleko", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "145": { + "code": "145", + "display": "Emhlangeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "146": { + "code": "146", + "display": "Nhlulweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "147": { + "code": "147", + "display": "Kufinyeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "148": { + "code": "148", + "display": "Luyengo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "149": { + "code": "149", + "display": "Mahlanya", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "150": { + "code": "150", + "display": "Ngwenyameni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "151": { + "code": "151", + "display": "Mbekelweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "152": { + "code": "152", + "display": "Zombodze", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "153": { + "code": "153", + "display": "Lozitha", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "154": { + "code": "154", + "display": "Nkamanzi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "155": { + "code": "155", + "display": "Kudzeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "156": { + "code": "156", + "display": "Ngculwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "157": { + "code": "157", + "display": "Ka-Nkhambule", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "158": { + "code": "158", + "display": "Mafutseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "159": { + "code": "159", + "display": "Luhlokohla", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "160": { + "code": "160", + "display": "Timbutini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "161": { + "code": "161", + "display": "Bhudla", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "162": { + "code": "162", + "display": "Mgomfelweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "163": { + "code": "163", + "display": "Luzelweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "164": { + "code": "164", + "display": "Mambatfweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "165": { + "code": "165", + "display": "Nsangwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "166": { + "code": "166", + "display": "Mpolonjeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "167": { + "code": "167", + "display": "Ludvondvolweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "168": { + "code": "168", + "display": "KaZulu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "169": { + "code": "169", + "display": "Nciniselweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "170": { + "code": "170", + "display": "Ndzeleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "171": { + "code": "171", + "display": "Sigcineni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "172": { + "code": "172", + "display": "Bhahwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "173": { + "code": "173", + "display": "Mangcongco/Zenukeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "174": { + "code": "174", + "display": "Sandlane/Ekuthuleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "175": { + "code": "175", + "display": "Mabhukwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "176": { + "code": "176", + "display": "Dwalile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "177": { + "code": "177", + "display": "Makholweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "178": { + "code": "178", + "display": "St Pauls", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "179": { + "code": "179", + "display": "Mnyenyweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "180": { + "code": "180", + "display": "Manzini Central", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "181": { + "code": "181", + "display": "Dwaleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "182": { + "code": "182", + "display": "Mzimnene", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "183": { + "code": "183", + "display": "Mhobodleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "184": { + "code": "184", + "display": "Mjingo ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "185": { + "code": "185", + "display": "Moneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "186": { + "code": "186", + "display": "Ticancweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "187": { + "code": "187", + "display": "Zakhele", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "188": { + "code": "188", + "display": "Ngwane Park", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "189": { + "code": "189", + "display": "Zondwako", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "190": { + "code": "190", + "display": "Lundzi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "191": { + "code": "191", + "display": "Dingizwe", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "192": { + "code": "192", + "display": "Mlindazwe", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "193": { + "code": "193", + "display": "Mbangave", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "194": { + "code": "194", + "display": "Bhunya", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "195": { + "code": "195", + "display": "Dvokolwako", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "196": { + "code": "196", + "display": "Mbelebeleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "197": { + "code": "197", + "display": "Kutsimuleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "198": { + "code": "198", + "display": "Khuphuka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "199": { + "code": "199", + "display": "Likima", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "200": { + "code": "200", + "display": "Gundvwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "201": { + "code": "201", + "display": "Gundvwini/Lesibovu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "202": { + "code": "202", + "display": "Lwandle", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "203": { + "code": "203", + "display": "Ndlandlameni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "204": { + "code": "204", + "display": "Hlane/Bulunga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "205": { + "code": "205", + "display": "Dladleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "206": { + "code": "206", + "display": "Ngcoseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "207": { + "code": "207", + "display": "Bhadzeni 1", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "208": { + "code": "208", + "display": "Velezizweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "209": { + "code": "209", + "display": "Macudvulwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "210": { + "code": "210", + "display": "Ngonini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "211": { + "code": "211", + "display": "Njelu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "212": { + "code": "212", + "display": "Mphankhomo", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "213": { + "code": "213", + "display": "Masundvwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "214": { + "code": "214", + "display": "Sibuyeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "215": { + "code": "215", + "display": "Vusweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "216": { + "code": "216", + "display": "Sigombeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "217": { + "code": "217", + "display": "Ntunja", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "218": { + "code": "218", + "display": "Eni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "219": { + "code": "219", + "display": "Ngcayini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "220": { + "code": "220", + "display": "Sankolweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "221": { + "code": "221", + "display": "Nsenga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "222": { + "code": "222", + "display": "Nsingweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "223": { + "code": "223", + "display": "Ntondozi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "224": { + "code": "224", + "display": "Ncabaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "225": { + "code": "225", + "display": "Khalangilile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "226": { + "code": "226", + "display": "Mphini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "227": { + "code": "227", + "display": "Ndinda", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "228": { + "code": "228", + "display": "Ndlinilembi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "229": { + "code": "229", + "display": "Gebeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "230": { + "code": "230", + "display": "Mgazini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "231": { + "code": "231", + "display": "Bhadzeni 2", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "232": { + "code": "232", + "display": "Mahhashini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "233": { + "code": "233", + "display": "Lushikishini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "234": { + "code": "234", + "display": "Khabonina", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "235": { + "code": "235", + "display": "Dilini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "236": { + "code": "236", + "display": "KaDinga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "237": { + "code": "237", + "display": "kaTsambekwako", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "238": { + "code": "238", + "display": "Mashobeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "239": { + "code": "239", + "display": "Mhlahlweni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "240": { + "code": "240", + "display": "Mlindazwe", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "241": { + "code": "241", + "display": "Nshamanti", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "242": { + "code": "242", + "display": "Nsukazi ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "243": { + "code": "243", + "display": "Sidwala", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "244": { + "code": "244", + "display": "Sisingeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "245": { + "code": "245", + "display": "Siyendle", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "246": { + "code": "246", + "display": "Bufaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "247": { + "code": "247", + "display": "Hhohho Emuva", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "248": { + "code": "248", + "display": "kaLiba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "249": { + "code": "249", + "display": "Lushini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "250": { + "code": "250", + "display": "Manyiseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "251": { + "code": "251", + "display": "Nsingizini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "252": { + "code": "252", + "display": "Ondiyaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "253": { + "code": "253", + "display": "Ezishineni/ Manyeveni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "254": { + "code": "254", + "display": "Kaphunga", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "255": { + "code": "255", + "display": "KaNdlovu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "256": { + "code": "256", + "display": "Ngobelweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "257": { + "code": "257", + "display": "Nhlalabantfu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "258": { + "code": "258", + "display": "KaKholwane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "259": { + "code": "259", + "display": "kaMbhoke", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "260": { + "code": "260", + "display": "kaGwebu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "261": { + "code": "261", + "display": "Gasa", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "262": { + "code": "262", + "display": "Khamsile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "263": { + "code": "263", + "display": "Lomfa", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "264": { + "code": "264", + "display": "Mbabane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "265": { + "code": "265", + "display": "Mbangweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "266": { + "code": "266", + "display": "Nkalaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "267": { + "code": "267", + "display": "Nzameya", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "268": { + "code": "268", + "display": "Nkomonye", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "269": { + "code": "269", + "display": "KaDlovunga ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "270": { + "code": "270", + "display": "KaMzizi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "271": { + "code": "271", + "display": "Masibini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "272": { + "code": "272", + "display": "Mbilaneni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "273": { + "code": "273", + "display": "Simemeni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "274": { + "code": "274", + "display": "Vusweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "275": { + "code": "275", + "display": "Bambitje", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "276": { + "code": "276", + "display": "Dinabanye", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "277": { + "code": "277", + "display": "Kwaluseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "278": { + "code": "278", + "display": "Nkonka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "279": { + "code": "279", + "display": "Nsalitje", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "280": { + "code": "280", + "display": "Qomintaba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "281": { + "code": "281", + "display": "Benezer", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "282": { + "code": "282", + "display": "Bhanganoma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "283": { + "code": "283", + "display": "Kwendzeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "284": { + "code": "284", + "display": "Magele", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "285": { + "code": "285", + "display": "Zenzile", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "286": { + "code": "286", + "display": "KaMbiko", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "287": { + "code": "287", + "display": "KaMhawu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "288": { + "code": "288", + "display": "KaMshengu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "289": { + "code": "289", + "display": "Lusitini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "290": { + "code": "290", + "display": "Mphini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "291": { + "code": "291", + "display": "Ndushulweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "292": { + "code": "292", + "display": "Nokwane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "293": { + "code": "293", + "display": "Phobane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "294": { + "code": "294", + "display": "Buseleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "295": { + "code": "295", + "display": "Hlobane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "296": { + "code": "296", + "display": "Kuphumuleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "297": { + "code": "297", + "display": "Nkwene", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "298": { + "code": "298", + "display": "kaGwegwe", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "299": { + "code": "299", + "display": "Ezibondeni/Kashiba", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "300": { + "code": "300", + "display": "Nhletjeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "301": { + "code": "301", + "display": "Nkhungwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "302": { + "code": "302", + "display": "Ngololweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "303": { + "code": "303", + "display": "Dumenkhungwini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "304": { + "code": "304", + "display": "Eposini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "305": { + "code": "305", + "display": "Hhuhhuma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "306": { + "code": "306", + "display": "Mabonabulawe", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "307": { + "code": "307", + "display": "Manyandzeni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "308": { + "code": "308", + "display": "Mchinsweni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "309": { + "code": "309", + "display": "Zikhotheni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "310": { + "code": "310", + "display": "Mahlalini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "311": { + "code": "311", + "display": "Mbabala", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "312": { + "code": "312", + "display": "Mbeka", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "313": { + "code": "313", + "display": "Makhwelela", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "314": { + "code": "314", + "display": "Mpangisweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "315": { + "code": "315", + "display": "Mbangweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "316": { + "code": "316", + "display": "Mathendele", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "317": { + "code": "317", + "display": "Mkhitsini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "318": { + "code": "318", + "display": "Sikhotseni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "319": { + "code": "319", + "display": "Lulakeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "320": { + "code": "320", + "display": "Kuphumleni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "321": { + "code": "321", + "display": "Ndunayithini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "322": { + "code": "322", + "display": "Nyatsini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "323": { + "code": "323", + "display": "Ezindwendweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "324": { + "code": "324", + "display": "Luhlekweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "325": { + "code": "325", + "display": "Maplotini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "326": { + "code": "326", + "display": "Ntuthwakazi", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "327": { + "code": "327", + "display": "Nsubane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "328": { + "code": "328", + "display": "Phangweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "329": { + "code": "329", + "display": "Vimbizibuko", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "330": { + "code": "330", + "display": "Bulekeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "331": { + "code": "331", + "display": "Mampondweni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "332": { + "code": "332", + "display": "Ngwenyameni ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "333": { + "code": "333", + "display": "Zombodze ", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "334": { + "code": "334", + "display": "Nduma", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "335": { + "code": "335", + "display": "Kupheleni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "336": { + "code": "336", + "display": "Mpolonjeni", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "337": { + "code": "337", + "display": "Nhlalabantfu", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "338": { + "code": "338", + "display": "Mhlangatane", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "340": { + "code": "340", + "display": "Mhawini", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + }, + "-99": { + "code": "-99", + "display": "Unspecified", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEncounterClassificationCS": { + "OPD": { + "code": "OPD", + "display": "Outpatient Department", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEncounterClassificationCS" + }, + "IPD": { + "code": "IPD", + "display": "Inpatient Department", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEncounterClassificationCS" + }, + "CO": { + "code": "CO", + "display": "Community Outreach", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEncounterClassificationCS" + }, + "SO": { + "code": "SO", + "display": "Schools Outreach", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEncounterClassificationCS" + } + }, + "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEncounterClassificationVS|0.1.0": { + "OPD": { + "code": "OPD", + "display": "Outpatient Department", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEncounterClassificationCS" + }, + "IPD": { + "code": "IPD", + "display": "Inpatient Department", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEncounterClassificationCS" + }, + "CO": { + "code": "CO", + "display": "Community Outreach", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEncounterClassificationCS" + }, + "SO": { + "code": "SO", + "display": "Schools Outreach", + "system": "https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEncounterClassificationCS" + } + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzAppointment.json b/packages/fhir-eswatini/spec/StructureDefinition-SzAppointment.json new file mode 100644 index 0000000000..195e3b4f10 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzAppointment.json @@ -0,0 +1,2006 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzAppointment", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzAppointment

\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Appointment 0..*AppointmentA booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" start 1..1instantWhen appointment is to take place
\".\"\".\"\".\" end 1..1instantWhen appointment is to conclude
\".\"\".\"\".\" created 1..1dateTimeThe date that this appointment was initially created
\".\"\".\"\".\" participant
\".\"\".\"\".\"\".\" actor 1..1Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Device | HealthcareService | Location)Person, Location/HealthcareService or Device

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAppointment", + "version": "0.1.0", + "name": "EswatiniAppointment", + "title": "Eswatini Appointment Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Definition of Eswatini Appointment Profile", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "ical", + "uri": "http://ietf.org/rfc/2445", + "name": "iCalendar" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Appointment", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Appointment", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Appointment", + "path": "Appointment", + "short": "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)", + "definition": "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s).", + "min": 0, + "max": "*", + "base": { + "path": "Appointment", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "app-2", + "severity": "error", + "human": "Either start and end are specified, or neither", + "expression": "start.exists() = end.exists()", + "xpath": "((exists(f:start) and exists(f:end)) or (not(exists(f:start)) and not(exists(f:end))))", + "source": "http://hl7.org/fhir/StructureDefinition/Appointment" + }, + { + "key": "app-3", + "severity": "error", + "human": "Only proposed or cancelled appointments can be missing start/end dates", + "expression": "(start.exists() and end.exists()) or (status in ('proposed' | 'cancelled' | 'waitlist'))", + "xpath": "((exists(f:start) and exists(f:end)) or (f:status/@value='proposed') or (f:status/@value='cancelled') or (f:status/@value='waitlist'))", + "source": "http://hl7.org/fhir/StructureDefinition/Appointment" + }, + { + "key": "app-4", + "severity": "error", + "human": "Cancelation reason is only used for appointments that have been cancelled, or no-show", + "expression": "Appointment.cancelationReason.exists() implies (Appointment.status='no-show' or Appointment.status='cancelled')", + "xpath": "not(exists(f:cancellationReason)) or f:status/@value=('no-show', 'cancelled')", + "source": "http://hl7.org/fhir/StructureDefinition/Appointment" + }, + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Request" + }, + { + "identity": "rim", + "map": "Act[@moodCode <= 'INT']" + }, + { + "identity": "ical", + "map": "VEVENT" + } + ] + }, + { + "id": "Appointment.id", + "path": "Appointment.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Appointment.meta", + "path": "Appointment.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Appointment.implicitRules", + "path": "Appointment.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Appointment.language", + "path": "Appointment.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Appointment.text", + "path": "Appointment.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Appointment.contained", + "path": "Appointment.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Appointment.extension", + "path": "Appointment.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Appointment.modifierExtension", + "path": "Appointment.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Appointment.identifier", + "path": "Appointment.identifier", + "short": "External Ids for this item", + "definition": "This records identifiers associated with this appointment concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).", + "min": 0, + "max": "*", + "base": { + "path": "Appointment.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.identifier" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "SCH-1, SCH-2, ARQ-1, ARQ-2" + }, + { + "identity": "rim", + "map": ".id" + }, + { + "identity": "ical", + "map": "UID" + } + ] + }, + { + "id": "Appointment.status", + "path": "Appointment.status", + "short": "proposed | pending | booked | arrived | fulfilled | cancelled | noshow | entered-in-error | checked-in | waitlist", + "definition": "The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.", + "comment": "If the Appointment's status is \"cancelled\" then all participants are expected to have their calendars released for the appointment period, and as such any Slots that were marked as BUSY can be re-set to FREE.\n\nThis element is labeled as a modifier because the status contains the code entered-in-error that mark the Appointment as not currently valid.", + "min": 1, + "max": "1", + "base": { + "path": "Appointment.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "AppointmentStatus" + } + ], + "strength": "required", + "description": "The free/busy status of an appointment.", + "valueSet": "http://hl7.org/fhir/ValueSet/appointmentstatus|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "v2", + "map": "SCH-25" + }, + { + "identity": "rim", + "map": ".statusCode" + }, + { + "identity": "ical", + "map": "STATUS" + } + ] + }, + { + "id": "Appointment.cancelationReason", + "path": "Appointment.cancelationReason", + "short": "The coded reason for the appointment being cancelled", + "definition": "The coded reason for the appointment being cancelled. This is often used in reporting/billing/futher processing to determine if further actions are required, or specific fees apply.", + "min": 0, + "max": "1", + "base": { + "path": "Appointment.cancelationReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "cancelation-reason" + } + ], + "strength": "example", + "valueSet": "http://hl7.org/fhir/ValueSet/appointment-cancellation-reason|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Appointment.serviceCategory", + "path": "Appointment.serviceCategory", + "short": "A broad categorization of the service that is to be performed during this appointment", + "definition": "A broad categorization of the service that is to be performed during this appointment.", + "min": 0, + "max": "*", + "base": { + "path": "Appointment.serviceCategory", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "service-category" + } + ], + "strength": "example", + "valueSet": "http://hl7.org/fhir/ValueSet/service-category|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "n/a, might be inferred from the ServiceDeliveryLocation" + }, + { + "identity": "ical", + "map": "CATEGORIES" + } + ] + }, + { + "id": "Appointment.serviceType", + "path": "Appointment.serviceType", + "short": "The specific service that is to be performed during this appointment", + "definition": "The specific service that is to be performed during this appointment.", + "comment": "For a provider to provider appointment the code \"FOLLOWUP\" may be appropriate, as this is expected to be discussing some patient that was seen in the past.", + "min": 0, + "max": "*", + "base": { + "path": "Appointment.serviceType", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "service-type" + } + ], + "strength": "example", + "valueSet": "http://hl7.org/fhir/ValueSet/service-type|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.code" + }, + { + "identity": "rim", + "map": "n/a, might be inferred from the ServiceDeliveryLocation" + } + ] + }, + { + "id": "Appointment.specialty", + "path": "Appointment.specialty", + "short": "The specialty of a practitioner that would be required to perform the service requested in this appointment", + "definition": "The specialty of a practitioner that would be required to perform the service requested in this appointment.", + "min": 0, + "max": "*", + "base": { + "path": "Appointment.specialty", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "specialty" + } + ], + "strength": "preferred", + "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".performer.AssignedPerson.code" + } + ] + }, + { + "id": "Appointment.appointmentType", + "path": "Appointment.appointmentType", + "short": "The style of appointment or patient that has been booked in the slot (not service type)", + "definition": "The style of appointment or patient that has been booked in the slot (not service type).", + "min": 0, + "max": "1", + "base": { + "path": "Appointment.appointmentType", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "appointment-type" + } + ], + "strength": "preferred", + "valueSet": "http://terminology.hl7.org/ValueSet/v2-0276" + }, + "mapping": [ + { + "identity": "v2", + "map": "ARQ-7" + }, + { + "identity": "rim", + "map": ".code" + }, + { + "identity": "ical", + "map": "CLASSIFICATION" + } + ] + }, + { + "id": "Appointment.reasonCode", + "path": "Appointment.reasonCode", + "short": "Coded reason this appointment is scheduled", + "definition": "The coded reason that this appointment is being scheduled. This is more clinical than administrative.", + "min": 0, + "max": "*", + "base": { + "path": "Appointment.reasonCode", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ApptReason" + } + ], + "strength": "preferred", + "description": "The Reason for the appointment to take place.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-reason|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.reasonCode" + }, + { + "identity": "v2", + "map": "AIS-3, SCH-7" + }, + { + "identity": "rim", + "map": ".reasonCode" + } + ] + }, + { + "id": "Appointment.reasonReference", + "path": "Appointment.reasonReference", + "short": "Reason the appointment is to take place (resource)", + "definition": "Reason the appointment has been scheduled to take place, as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.", + "min": 0, + "max": "*", + "base": { + "path": "Appointment.reasonReference", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Condition|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.reasonReference" + }, + { + "identity": "rim", + "map": ".inboundRelationship[@typeCode = 'RSON'].observation" + } + ] + }, + { + "id": "Appointment.priority", + "path": "Appointment.priority", + "short": "Used to make informed decisions if needing to re-prioritize", + "definition": "The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).", + "comment": "Seeking implementer feedback on this property and how interoperable it is.\r\rUsing an extension to record a CodeableConcept for named values may be tested at a future connectathon.", + "min": 0, + "max": "1", + "base": { + "path": "Appointment.priority", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "unsignedInt" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.priority" + }, + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "v2", + "map": "ARQ-12, SCH-11.6 / TQ1-9" + }, + { + "identity": "rim", + "map": ".priorityCode" + }, + { + "identity": "ical", + "map": "PRIORITY" + } + ] + }, + { + "id": "Appointment.description", + "path": "Appointment.description", + "short": "Shown on a subject line in a meeting request, or appointment list", + "definition": "The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.", + "min": 0, + "max": "1", + "base": { + "path": "Appointment.description", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NTE-3" + }, + { + "identity": "rim", + "map": ".text" + }, + { + "identity": "ical", + "map": "SUMMARY" + } + ] + }, + { + "id": "Appointment.supportingInformation", + "path": "Appointment.supportingInformation", + "short": "Additional information to support the appointment", + "definition": "Additional information to support the appointment provided when making the appointment.", + "min": 0, + "max": "*", + "base": { + "path": "Appointment.supportingInformation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.supportingInfo" + }, + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "rim", + "map": ".inboundRelationship[@typeCode = 'SPRT'].observation" + }, + { + "identity": "ical", + "map": "ATTACH" + } + ] + }, + { + "id": "Appointment.start", + "path": "Appointment.start", + "short": "When appointment is to take place", + "definition": "Date/Time that the appointment is to take place.", + "min": 1, + "max": "1", + "base": { + "path": "Appointment.start", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "instant" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.init" + }, + { + "identity": "v2", + "map": "ARQ-11.1, SCH-11.4 / TQ1-7" + }, + { + "identity": "rim", + "map": ".effectiveTime.low" + }, + { + "identity": "ical", + "map": "DTSTART" + } + ] + }, + { + "id": "Appointment.end", + "path": "Appointment.end", + "short": "When appointment is to conclude", + "definition": "Date/Time that the appointment is to conclude.", + "min": 1, + "max": "1", + "base": { + "path": "Appointment.end", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "instant" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.done[x]" + }, + { + "identity": "v2", + "map": "SCH-11.5 / TQ1-8/ calculated based on the start and the duration which is in ARQ-9" + }, + { + "identity": "rim", + "map": ".effectiveTime.high" + }, + { + "identity": "ical", + "map": "DTEND" + } + ] + }, + { + "id": "Appointment.minutesDuration", + "path": "Appointment.minutesDuration", + "short": "Can be less than start/end (e.g. estimate)", + "definition": "Number of minutes that the appointment is to take. This can be less than the duration between the start and end times. For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work. Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end.", + "min": 0, + "max": "1", + "base": { + "path": "Appointment.minutesDuration", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "positiveInt" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.occurrence[x]" + }, + { + "identity": "rim", + "map": ".activityTime[@xsi:type = ('SXPR_TS', 'PIVL_TS')].width" + }, + { + "identity": "ical", + "map": "DURATION (e.g. PT15M)" + } + ] + }, + { + "id": "Appointment.slot", + "path": "Appointment.slot", + "short": "The slots that this appointment is filling", + "definition": "The slots from the participants' schedules that will be filled by the appointment.", + "min": 0, + "max": "*", + "base": { + "path": "Appointment.slot", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Slot|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[@typeCode = 'REFR'].act[@classCode = 'ACT'][@moodCode = 'SLOT']" + } + ] + }, + { + "id": "Appointment.created", + "path": "Appointment.created", + "short": "The date that this appointment was initially created", + "definition": "The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.", + "comment": "This property is required for many use cases where the age of an appointment is considered in processing workflows for scheduling and billing of appointments.", + "min": 1, + "max": "1", + "base": { + "path": "Appointment.created", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.authoredOn" + }, + { + "identity": "rim", + "map": ".author.time" + }, + { + "identity": "ical", + "map": "CREATED" + } + ] + }, + { + "id": "Appointment.comment", + "path": "Appointment.comment", + "short": "Additional comments", + "definition": "Additional comments about the appointment.", + "comment": "Additional text to aid in facilitating the appointment. For instance, a comment might be, \"patient should proceed immediately to infusion room upon arrival\"\r\rWhere this is a planned appointment and the start/end dates are not set then this field can be used to provide additional guidance on the details of the appointment request, including any restrictions on when to book it.", + "min": 0, + "max": "1", + "base": { + "path": "Appointment.comment", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.note" + }, + { + "identity": "v2", + "map": "NTE-3" + }, + { + "identity": "rim", + "map": ".subjectOf.observation[@moodCode = 'EVN'][code = 'annotation'].value" + }, + { + "identity": "ical", + "map": "DESCRIPTION (for internal use)" + } + ] + }, + { + "id": "Appointment.patientInstruction", + "path": "Appointment.patientInstruction", + "short": "Detailed information and instructions for the patient", + "definition": "While Appointment.comment contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before).", + "min": 0, + "max": "1", + "base": { + "path": "Appointment.patientInstruction", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NTE-3" + }, + { + "identity": "rim", + "map": ".subjectOf.observation[@moodCode = 'EVN'][code = 'annotation'].value" + }, + { + "identity": "ical", + "map": "DESCRIPTION (for patient use)" + } + ] + }, + { + "id": "Appointment.basedOn", + "path": "Appointment.basedOn", + "short": "The service request this appointment is allocated to assess", + "definition": "The service request this appointment is allocated to assess (e.g. incoming referral or procedure request).", + "alias": [ + "incomingReferral" + ], + "min": 0, + "max": "*", + "base": { + "path": "Appointment.basedOn", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.basedOn" + }, + { + "identity": "rim", + "map": ".outboundRelationship[@typeCode = 'FLFS'].act[@classCode < 'ActCareProvisionRequestType'][@moodCode = 'RQO']" + } + ] + }, + { + "id": "Appointment.participant", + "path": "Appointment.participant", + "short": "Participants involved in appointment", + "definition": "List of participants involved in the appointment.", + "min": 1, + "max": "*", + "base": { + "path": "Appointment.participant", + "min": 1, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "app-1", + "severity": "error", + "human": "Either the type or actor on the participant SHALL be specified", + "expression": "type.exists() or actor.exists()", + "xpath": "(exists(f:type) or exists(f:actor))", + "source": "http://hl7.org/fhir/StructureDefinition/Appointment" + }, + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.performer, Request.subject" + }, + { + "identity": "v2", + "map": "PID, AIP, AIG, AIL" + }, + { + "identity": "rim", + "map": "performer | reusableDevice | subject | location" + }, + { + "identity": "ical", + "map": "ATTENDEE component to be created" + } + ] + }, + { + "id": "Appointment.participant.id", + "path": "Appointment.participant.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Appointment.participant.extension", + "path": "Appointment.participant.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Appointment.participant.modifierExtension", + "path": "Appointment.participant.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Appointment.participant.type", + "path": "Appointment.participant.type", + "short": "Role of participant in the appointment", + "definition": "Role of participant in the appointment.", + "comment": "The role of the participant can be used to declare what the actor will be doing in the scope of this appointment.\r\rIf the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.\r\rThis value SHALL be the same when creating an AppointmentResponse so that they can be matched, and subsequently update the Appointment.", + "min": 0, + "max": "*", + "base": { + "path": "Appointment.participant.type", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ParticipantType" + } + ], + "strength": "extensible", + "description": "Role of participant in encounter.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-participant-type|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "AIP-4, AIG-4" + }, + { + "identity": "rim", + "map": "(performer | reusableDevice | subject | location).@typeCode" + }, + { + "identity": "ical", + "map": "n/a" + } + ] + }, + { + "id": "Appointment.participant.actor", + "path": "Appointment.participant.actor", + "short": "Person, Location/HealthcareService or Device", + "definition": "A Person, Location/HealthcareService or Device that is participating in the appointment.", + "min": 1, + "max": "1", + "base": { + "path": "Appointment.participant.actor", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Device|4.0.1", + "http://hl7.org/fhir/StructureDefinition/HealthcareService|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Location|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.who" + }, + { + "identity": "v2", + "map": "PID-3-Patient ID List | AIL-3 | AIG-3 | AIP-3" + }, + { + "identity": "rim", + "map": "performer.person | reusableDevice.manufacturedDevice | subject.patient | location.serviceDeliveryLocation" + }, + { + "identity": "ical", + "map": "ATTENDEE: (Need to provide the common name CN and also the MAILTO properties from the practitioner resource) where the participant type is not \"information-only\"" + } + ] + }, + { + "id": "Appointment.participant.required", + "path": "Appointment.participant.required", + "short": "required | optional | information-only", + "definition": "Whether this participant is required to be present at the meeting. This covers a use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.", + "min": 0, + "max": "1", + "base": { + "path": "Appointment.participant.required", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ParticipantRequired" + } + ], + "strength": "required", + "description": "Is the Participant required to attend the appointment.", + "valueSet": "http://hl7.org/fhir/ValueSet/participantrequired|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "(performer | reusableDevice | subject | location).@performInd" + }, + { + "identity": "ical", + "map": "ROLE=REQ-PARTICIPANT (roleparam)" + } + ] + }, + { + "id": "Appointment.participant.status", + "path": "Appointment.participant.status", + "short": "accepted | declined | tentative | needs-action", + "definition": "Participation status of the actor.", + "min": 1, + "max": "1", + "base": { + "path": "Appointment.participant.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ParticipationStatus" + } + ], + "strength": "required", + "description": "The Participation status of an appointment.", + "valueSet": "http://hl7.org/fhir/ValueSet/participationstatus|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "AIP-12, AIG-14" + }, + { + "identity": "rim", + "map": "(performer | reusableDevice | subject | location).statusCode" + }, + { + "identity": "ical", + "map": "ATTENDEE;CN=\"John Doe\";RSVP=TRUE:mailto:john@doe.com (rsvpparam | partstatparam)" + } + ] + }, + { + "id": "Appointment.participant.period", + "path": "Appointment.participant.period", + "short": "Participation period of the actor", + "definition": "Participation period of the actor.", + "min": 0, + "max": "1", + "base": { + "path": "Appointment.participant.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Appointment.requestedPeriod", + "path": "Appointment.requestedPeriod", + "short": "Potential date/time interval(s) requested to allocate the appointment within", + "definition": "A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within.\n\nThe duration (usually in minutes) could also be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time. However, in other situations the duration may be calculated by the scheduling system.", + "comment": "This does not introduce a capacity for recurring appointments.", + "min": 0, + "max": "*", + "base": { + "path": "Appointment.requestedPeriod", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.occurrence[x]" + }, + { + "identity": "v2", + "map": "ARQ-11" + }, + { + "identity": "rim", + "map": ".activityTime[@xsi:type = ('SXPR_TS', 'PIVL_TS')]" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Appointment", + "path": "Appointment" + }, + { + "id": "Appointment.id", + "path": "Appointment.id", + "min": 1 + }, + { + "id": "Appointment.start", + "path": "Appointment.start", + "min": 1 + }, + { + "id": "Appointment.end", + "path": "Appointment.end", + "min": 1 + }, + { + "id": "Appointment.created", + "path": "Appointment.created", + "min": 1 + }, + { + "id": "Appointment.participant.actor", + "path": "Appointment.participant.actor", + "min": 1 + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzAuthorizerExtension.json b/packages/fhir-eswatini/spec/StructureDefinition-SzAuthorizerExtension.json new file mode 100644 index 0000000000..49a3103181 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzAuthorizerExtension.json @@ -0,0 +1,286 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzAuthorizerExtension", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzAuthorizerExtension

\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Extension 0..*ExtensionExtention: Eswatini Lab Result Authorizer
\".\"\".\"\".\" extension 0..0Extension
\".\"\".\"\".\" url 1..1uri"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAuthorizerExtension"
\".\"\".\"\".\" value[x] 0..1Reference(Eswatini Practitioner Profile)Value of extension

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAuthorizerExtension", + "version": "0.1.0", + "name": "SzAuthorizerExtension", + "title": "Extention: Eswatini Lab Result Authorizer", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Extention for Eswatini Lab Result Authorizer", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Eswatini Lab Result Authorizer", + "definition": "Extention for Eswatini Lab Result Authorizer", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAuthorizerExtension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Eswatini Lab Result Authorizer", + "definition": "Extention for Eswatini Lab Result Authorizer" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAuthorizerExtension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzCauseOfDeath.json b/packages/fhir-eswatini/spec/StructureDefinition-SzCauseOfDeath.json new file mode 100644 index 0000000000..a3821b570a --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzCauseOfDeath.json @@ -0,0 +1,4134 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzCauseOfDeath", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzCauseOfDeath

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Observation 0..*ObservationMeasurements and simple assertions
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" code 1..1CodeableConceptCause of death
Required Pattern: At least the following
\".\"\".\"\".\"\".\" coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
\".\"\".\"\".\"\".\"\".\" system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
\".\"\".\"\".\"\".\"\".\" code1..1codeSymbol in syntax defined by the system
Fixed Value: 79378-6
\".\"\".\"\".\" subject 1..1Reference(Eswatini Patient Profile)The decedent
\".\"\".\"\".\" performer 0..*Reference(Eswatini Practitioner Profile)Cause of death certifier (coroner or medical examiner)
\".\"\".\"\".\" value[x] 1..1CodeableConceptActual result
\".\"\".\"\".\"\".\" text 1..1stringCause of death Intermediate | Intermediate I | Intermediat II | Underlying
Max Length:255
\".\"\".\"\".\" Slices for component 2..*BackboneElementComponent results
Slice: Unordered, Open by value:code
\".\"\".\"\".\"\".\" component:sequenceOfConditions 1..1BackboneElementSequence of conditions
\".\"\".\"\".\"\".\"\".\" value[x] 1..1stringSequence of conditions e.g Intermediate | Intermediate I | Intermediat II | Underlying
\".\"\".\"\".\"\".\" component:timeInterval 1..1BackboneElementCause of death time interval for Intermediate, Intermediate I, Intermediat II, Underlying
\".\"\".\"\".\"\".\"\".\" code 1..1CodeableConceptDisease onset to death interval
Required Pattern: At least the following
\".\"\".\"\".\"\".\"\".\"\".\" coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
\".\"\".\"\".\"\".\"\".\"\".\"\".\" system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
\".\"\".\"\".\"\".\"\".\"\".\"\".\" code1..1codeSymbol in syntax defined by the system
Fixed Value: 69440-6
\".\"\".\"\".\"\".\"\".\" Slices for value[x] 0..1Actual component result
Slice: Unordered, Open by type:$this
\".\"\".\"\".\"\".\"\".\"\".\" valueQuantityQuantity
\".\"\".\"\".\"\".\"\".\"\".\" valueCodeableConceptCodeableConcept
\".\"\".\"\".\"\".\"\".\"\".\" valueStringstring
\".\"\".\"\".\"\".\"\".\"\".\" value[x]:valueString 0..1stringInterval - string description
Max Length:20
\".\"\".\"\".\"\".\"\".\"\".\" value[x]:valueQuantity 0..1QuantityInterval - quantity with units of time
\".\"\".\"\".\"\".\"\".\"\".\" value[x]:valueCodeableConcept 0..1CodeableConceptInterval Unknown

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzCauseOfDeath", + "version": "0.1.0", + "name": "SzCauseOfDeath", + "title": "Eswatini Cause of Death Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Eswatini Cause of Death Profile", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "sct-concept", + "uri": "http://snomed.info/conceptdomain", + "name": "SNOMED CT Concept Domain Binding" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "sct-attr", + "uri": "http://snomed.org/attributebinding", + "name": "SNOMED CT Attribute Binding" + } + ], + "kind": "resource", + "abstract": false, + "type": "Observation", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Observation", + "path": "Observation", + "short": "Measurements and simple assertions", + "definition": "Measurements and simple assertions made about a patient, device or other subject.", + "comment": "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc. Other resources are used to provide context for observations such as laboratory reports, etc.", + "alias": [ + "Vital Signs", + "Measurement", + "Results", + "Tests" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "obs-6", + "severity": "error", + "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", + "expression": "dataAbsentReason.empty() or value.empty()", + "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + }, + { + "key": "obs-7", + "severity": "error", + "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present", + "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()", + "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Event" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity|" + }, + { + "identity": "v2", + "map": "OBX" + }, + { + "identity": "rim", + "map": "Observation[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.id", + "path": "Observation.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Observation.meta", + "path": "Observation.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Observation.implicitRules", + "path": "Observation.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Observation.language", + "path": "Observation.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Observation.text", + "path": "Observation.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Observation.contained", + "path": "Observation.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.extension", + "path": "Observation.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.modifierExtension", + "path": "Observation.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.identifier", + "path": "Observation.identifier", + "short": "Business Identifier for observation", + "definition": "A unique identifier assigned to this observation.", + "requirements": "Allows observations to be distinguished and referenced.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.identifier" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4." + }, + { + "identity": "rim", + "map": "id" + } + ] + }, + { + "id": "Observation.basedOn", + "path": "Observation.basedOn", + "short": "Fulfills plan, proposal or order", + "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.", + "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.", + "alias": [ + "Fulfills" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.basedOn", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DeviceRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/NutritionOrder|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.basedOn" + }, + { + "identity": "v2", + "map": "ORC" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]" + } + ] + }, + { + "id": "Observation.partOf", + "path": "Observation.partOf", + "short": "Part of referenced event", + "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.", + "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below for guidance on referencing another Observation.", + "alias": [ + "Container" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.partOf", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationDispense|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Immunization|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.partOf" + }, + { + "identity": "v2", + "map": "Varies by domain" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=FLFS].target" + } + ] + }, + { + "id": "Observation.status", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", + "valueString": "default: final" + } + ], + "path": "Observation.status", + "short": "registered | preliminary | final | amended +", + "definition": "The status of the result value.", + "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", + "requirements": "Need to track the status of individual results. Some results are finalized before the whole report is finalized.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationStatus" + } + ], + "strength": "required", + "description": "Codes providing the status of an observation.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "sct-concept", + "map": "< 445584004 |Report by finality status|" + }, + { + "identity": "v2", + "map": "OBX-11" + }, + { + "identity": "rim", + "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\"" + } + ] + }, + { + "id": "Observation.category", + "path": "Observation.category", + "short": "Classification of type of observation", + "definition": "A code that classifies the general type of observation being made.", + "comment": "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.", + "requirements": "Used for filtering what observations are retrieved and displayed.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.category", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCategory" + } + ], + "strength": "preferred", + "description": "Codes for high level observation categories.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-category|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code" + } + ] + }, + { + "id": "Observation.code", + "path": "Observation.code", + "short": "Cause of death", + "definition": "Describes what was observed. Sometimes this is called the observation \"name\".", + "comment": "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.", + "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.", + "alias": [ + "Name" + ], + "min": 1, + "max": "1", + "base": { + "path": "Observation.code", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "patternCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "79378-6" + } + ] + }, + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCode" + } + ], + "strength": "example", + "description": "Codes identifying names of simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.code" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "code" + }, + { + "identity": "sct-attr", + "map": "116680003 |Is a|" + } + ] + }, + { + "id": "Observation.subject", + "path": "Observation.subject", + "label": "The decedent", + "short": "The decedent", + "definition": "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.", + "comment": "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.", + "requirements": "Observations have no value if you don't know who or what they're about.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.subject", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "PID-3" + }, + { + "identity": "rim", + "map": "participation[typeCode=RTGT]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Observation.focus", + "path": "Observation.focus", + "short": "What the observation is about, when it is not about the subject of record", + "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.", + "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/R4/extension-observation-focuscode.html).", + "min": 0, + "max": "*", + "base": { + "path": "Observation.focus", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "participation[typeCode=SBJ]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Observation.encounter", + "path": "Observation.encounter", + "short": "Healthcare event during which this observation is made", + "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.", + "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).", + "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.", + "alias": [ + "Context" + ], + "min": 0, + "max": "1", + "base": { + "path": "Observation.encounter", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.context" + }, + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "v2", + "map": "PV1" + }, + { + "identity": "rim", + "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.effective[x]", + "path": "Observation.effective[x]", + "short": "Clinically relevant time/time-period for observation", + "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.", + "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/R4/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.", + "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.", + "alias": [ + "Occurrence" + ], + "min": 0, + "max": "1", + "base": { + "path": "Observation.effective[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + }, + { + "code": "Period" + }, + { + "code": "Timing" + }, + { + "code": "instant" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.done[x]" + }, + { + "identity": "v2", + "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)" + }, + { + "identity": "rim", + "map": "effectiveTime" + } + ] + }, + { + "id": "Observation.issued", + "path": "Observation.issued", + "short": "Date/Time this version was made available", + "definition": "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.", + "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/R4/resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.issued", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "instant" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.recorded" + }, + { + "identity": "v2", + "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)" + }, + { + "identity": "rim", + "map": "participation[typeCode=AUT].time" + } + ] + }, + { + "id": "Observation.performer", + "path": "Observation.performer", + "label": "Cause of death certifier (coroner or medical examiner)", + "short": "Cause of death certifier (coroner or medical examiner)", + "definition": "Who was responsible for asserting the observed value as \"true\".", + "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.performer", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.actor" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'" + }, + { + "identity": "rim", + "map": "participation[typeCode=PRF]" + } + ] + }, + { + "id": "Observation.value[x]", + "path": "Observation.value[x]", + "short": "Actual result", + "definition": "The information determined as a result of making the observation, if the information has a simple value.", + "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "obs-7" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.value[x].id", + "path": "Observation.value[x].id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.value[x].extension", + "path": "Observation.value[x].extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.value[x].coding", + "path": "Observation.value[x].coding", + "short": "Code defined by a terminology system", + "definition": "A reference to a code defined by a terminology system.", + "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.", + "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.", + "min": 0, + "max": "*", + "base": { + "path": "CodeableConcept.coding", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Coding" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.1-8, C*E.10-22" + }, + { + "identity": "rim", + "map": "union(., ./translation)" + }, + { + "identity": "orim", + "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" + } + ] + }, + { + "id": "Observation.value[x].text", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", + "valueBoolean": true + } + ], + "path": "Observation.value[x].text", + "short": "Cause of death Intermediate | Intermediate I | Intermediat II | Underlying", + "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", + "comment": "Very often the text is the same as a displayName of one of the codings.", + "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", + "min": 1, + "max": "1", + "base": { + "path": "CodeableConcept.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "maxLength": 255, + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.9. But note many systems use C*E.2 for this" + }, + { + "identity": "rim", + "map": "./originalText[mediaType/code=\"text/plain\"]/data" + }, + { + "identity": "orim", + "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" + } + ] + }, + { + "id": "Observation.dataAbsentReason", + "path": "Observation.dataAbsentReason", + "short": "Why the result is missing", + "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.", + "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.", + "requirements": "For many results it is necessary to handle exceptional values in measurements.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.dataAbsentReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "obs-6" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationValueAbsentReason" + } + ], + "strength": "extensible", + "description": "Codes specifying why the result (`Observation.value[x]`) is missing.", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": "value.nullFlavor" + } + ] + }, + { + "id": "Observation.interpretation", + "path": "Observation.interpretation", + "short": "High, low, normal, etc.", + "definition": "A categorical assessment of an observation value. For example, high, low, normal.", + "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.", + "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.", + "alias": [ + "Abnormal Flag" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.interpretation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationInterpretation" + } + ], + "strength": "extensible", + "description": "Codes identifying interpretations of observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values|" + }, + { + "identity": "v2", + "map": "OBX-8" + }, + { + "identity": "rim", + "map": "interpretationCode" + }, + { + "identity": "sct-attr", + "map": "363713009 |Has interpretation|" + } + ] + }, + { + "id": "Observation.note", + "path": "Observation.note", + "short": "Comments about the observation", + "definition": "Comments about the observation or the results.", + "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.", + "requirements": "Need to be able to provide free text additional information.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)" + }, + { + "identity": "rim", + "map": "subjectOf.observationEvent[code=\"annotation\"].value" + } + ] + }, + { + "id": "Observation.bodySite", + "path": "Observation.bodySite", + "short": "Observed body part", + "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).", + "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/R4/extension-bodysite.html).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.bodySite", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "BodySite" + } + ], + "strength": "example", + "description": "Codes describing anatomical locations. May include laterality.", + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 123037004 |Body structure|" + }, + { + "identity": "v2", + "map": "OBX-20" + }, + { + "identity": "rim", + "map": "targetSiteCode" + }, + { + "identity": "sct-attr", + "map": "718497002 |Inherent location|" + } + ] + }, + { + "id": "Observation.method", + "path": "Observation.method", + "short": "How it was done", + "definition": "Indicates the mechanism used to perform the observation.", + "comment": "Only used if not implicit in code for Observation.code.", + "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.method", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationMethod" + } + ], + "strength": "example", + "description": "Methods for simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "OBX-17" + }, + { + "identity": "rim", + "map": "methodCode" + } + ] + }, + { + "id": "Observation.specimen", + "path": "Observation.specimen", + "short": "Specimen used for this observation", + "definition": "The specimen that was used when this observation was made.", + "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.specimen", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 123038009 |Specimen|" + }, + { + "identity": "v2", + "map": "SPM segment" + }, + { + "identity": "rim", + "map": "participation[typeCode=SPC].specimen" + }, + { + "identity": "sct-attr", + "map": "704319004 |Inherent in|" + } + ] + }, + { + "id": "Observation.device", + "path": "Observation.device", + "short": "(Measurement) Device", + "definition": "The device used to generate the observation data.", + "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.device", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Device|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DeviceMetric|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 49062001 |Device|" + }, + { + "identity": "v2", + "map": "OBX-17 / PRT -10" + }, + { + "identity": "rim", + "map": "participation[typeCode=DEV]" + }, + { + "identity": "sct-attr", + "map": "424226004 |Using device|" + } + ] + }, + { + "id": "Observation.referenceRange", + "path": "Observation.referenceRange", + "short": "Provides guide for interpretation", + "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.", + "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.", + "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.referenceRange", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "obs-3", + "severity": "error", + "human": "Must have at least a low or a high or text", + "expression": "low.exists() or high.exists() or text.exists()", + "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX.7" + }, + { + "identity": "rim", + "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.referenceRange.id", + "path": "Observation.referenceRange.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.referenceRange.extension", + "path": "Observation.referenceRange.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.referenceRange.modifierExtension", + "path": "Observation.referenceRange.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.referenceRange.low", + "path": "Observation.referenceRange.low", + "short": "Low Range, if relevant", + "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.low", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "condition": [ + "obs-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:IVL_PQ.low" + } + ] + }, + { + "id": "Observation.referenceRange.high", + "path": "Observation.referenceRange.high", + "short": "High Range, if relevant", + "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.high", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "condition": [ + "obs-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:IVL_PQ.high" + } + ] + }, + { + "id": "Observation.referenceRange.type", + "path": "Observation.referenceRange.type", + "short": "Reference range qualifier", + "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.", + "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.", + "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationRangeMeaning" + } + ], + "strength": "preferred", + "description": "Code for the meaning of a reference range.", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|" + }, + { + "identity": "v2", + "map": "OBX-10" + }, + { + "identity": "rim", + "map": "interpretationCode" + } + ] + }, + { + "id": "Observation.referenceRange.appliesTo", + "path": "Observation.referenceRange.appliesTo", + "short": "Reference range population", + "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.", + "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.", + "requirements": "Need to be able to identify the target population for proper interpretation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.referenceRange.appliesTo", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationRangeType" + } + ], + "strength": "example", + "description": "Codes identifying the population the reference range applies to.", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|" + }, + { + "identity": "v2", + "map": "OBX-10" + }, + { + "identity": "rim", + "map": "interpretationCode" + } + ] + }, + { + "id": "Observation.referenceRange.age", + "path": "Observation.referenceRange.age", + "short": "Applicable age range, if relevant", + "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.", + "requirements": "Some analytes vary greatly over age.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.age", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Range" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value" + } + ] + }, + { + "id": "Observation.referenceRange.text", + "path": "Observation.referenceRange.text", + "short": "Text based reference range in an observation", + "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:ST" + } + ] + }, + { + "id": "Observation.hasMember", + "path": "Observation.hasMember", + "short": "Related resource that belongs to the Observation group", + "definition": "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.", + "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/R4/questionnaireresponse.html) into a final score and represent the score as an Observation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.hasMember", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "Relationships established by OBX-4 usage" + }, + { + "identity": "rim", + "map": "outBoundRelationship" + } + ] + }, + { + "id": "Observation.derivedFrom", + "path": "Observation.derivedFrom", + "short": "Related measurements the observation is made from", + "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.", + "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.derivedFrom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Media|4.0.1", + "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "Relationships established by OBX-4 usage" + }, + { + "identity": "rim", + "map": ".targetObservation" + } + ] + }, + { + "id": "Observation.component", + "path": "Observation.component", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "code" + } + ], + "rules": "open" + }, + "short": "Component results", + "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.", + "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.", + "min": 2, + "max": "*", + "base": { + "path": "Observation.component", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "containment by OBX-4?" + }, + { + "identity": "rim", + "map": "outBoundRelationship[typeCode=COMP]" + } + ] + }, + { + "id": "Observation.component.id", + "path": "Observation.component.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component.extension", + "path": "Observation.component.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component.modifierExtension", + "path": "Observation.component.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.component.code", + "path": "Observation.component.code", + "short": "Type of component observation (code / type)", + "definition": "Describes what was observed. Sometimes this is called the observation \"code\".", + "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.", + "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.component.code", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCode" + } + ], + "strength": "example", + "description": "Codes identifying names of simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "code" + } + ] + }, + { + "id": "Observation.component.value[x]", + "path": "Observation.component.value[x]", + "short": "Actual component result", + "definition": "The information determined as a result of making the observation, if the information has a simple value.", + "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity" + }, + { + "code": "CodeableConcept" + }, + { + "code": "string" + }, + { + "code": "boolean" + }, + { + "code": "integer" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "SampledData" + }, + { + "code": "time" + }, + { + "code": "dateTime" + }, + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "363714003 |Interprets| < 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.component.dataAbsentReason", + "path": "Observation.component.dataAbsentReason", + "short": "Why the component result is missing", + "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.", + "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.", + "requirements": "For many results it is necessary to handle exceptional values in measurements.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.dataAbsentReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "obs-6" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationValueAbsentReason" + } + ], + "strength": "extensible", + "description": "Codes specifying why the result (`Observation.value[x]`) is missing.", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": "value.nullFlavor" + } + ] + }, + { + "id": "Observation.component.interpretation", + "path": "Observation.component.interpretation", + "short": "High, low, normal, etc.", + "definition": "A categorical assessment of an observation value. For example, high, low, normal.", + "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.", + "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.", + "alias": [ + "Abnormal Flag" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.interpretation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationInterpretation" + } + ], + "strength": "extensible", + "description": "Codes identifying interpretations of observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values|" + }, + { + "identity": "v2", + "map": "OBX-8" + }, + { + "identity": "rim", + "map": "interpretationCode" + }, + { + "identity": "sct-attr", + "map": "363713009 |Has interpretation|" + } + ] + }, + { + "id": "Observation.component.referenceRange", + "path": "Observation.component.referenceRange", + "short": "Provides guide for interpretation of component result", + "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.", + "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.", + "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.referenceRange", + "min": 0, + "max": "*" + }, + "contentReference": "http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX.7" + }, + { + "identity": "rim", + "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.component:sequenceOfConditions", + "path": "Observation.component", + "sliceName": "sequenceOfConditions", + "short": "Sequence of conditions", + "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.", + "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.component", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "containment by OBX-4?" + }, + { + "identity": "rim", + "map": "outBoundRelationship[typeCode=COMP]" + } + ] + }, + { + "id": "Observation.component:sequenceOfConditions.id", + "path": "Observation.component.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component:sequenceOfConditions.extension", + "path": "Observation.component.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component:sequenceOfConditions.modifierExtension", + "path": "Observation.component.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.component:sequenceOfConditions.code", + "path": "Observation.component.code", + "short": "Type of component observation (code / type)", + "definition": "Describes what was observed. Sometimes this is called the observation \"code\".", + "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.", + "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.component.code", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCode" + } + ], + "strength": "example", + "description": "Codes identifying names of simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "code" + } + ] + }, + { + "id": "Observation.component:sequenceOfConditions.value[x]", + "path": "Observation.component.value[x]", + "short": "Sequence of conditions e.g Intermediate | Intermediate I | Intermediat II | Underlying", + "definition": "The information determined as a result of making the observation, if the information has a simple value.", + "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.component.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "363714003 |Interprets| < 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.component:sequenceOfConditions.dataAbsentReason", + "path": "Observation.component.dataAbsentReason", + "short": "Why the component result is missing", + "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.", + "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.", + "requirements": "For many results it is necessary to handle exceptional values in measurements.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.dataAbsentReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "obs-6" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationValueAbsentReason" + } + ], + "strength": "extensible", + "description": "Codes specifying why the result (`Observation.value[x]`) is missing.", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": "value.nullFlavor" + } + ] + }, + { + "id": "Observation.component:sequenceOfConditions.interpretation", + "path": "Observation.component.interpretation", + "short": "High, low, normal, etc.", + "definition": "A categorical assessment of an observation value. For example, high, low, normal.", + "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.", + "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.", + "alias": [ + "Abnormal Flag" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.interpretation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationInterpretation" + } + ], + "strength": "extensible", + "description": "Codes identifying interpretations of observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values|" + }, + { + "identity": "v2", + "map": "OBX-8" + }, + { + "identity": "rim", + "map": "interpretationCode" + }, + { + "identity": "sct-attr", + "map": "363713009 |Has interpretation|" + } + ] + }, + { + "id": "Observation.component:sequenceOfConditions.referenceRange", + "path": "Observation.component.referenceRange", + "short": "Provides guide for interpretation of component result", + "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.", + "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.", + "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.referenceRange", + "min": 0, + "max": "*" + }, + "contentReference": "http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX.7" + }, + { + "identity": "rim", + "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.component:timeInterval", + "path": "Observation.component", + "sliceName": "timeInterval", + "short": "Cause of death time interval for Intermediate, Intermediate I, Intermediat II, Underlying", + "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.", + "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.component", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "containment by OBX-4?" + }, + { + "identity": "rim", + "map": "outBoundRelationship[typeCode=COMP]" + } + ] + }, + { + "id": "Observation.component:timeInterval.id", + "path": "Observation.component.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component:timeInterval.extension", + "path": "Observation.component.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component:timeInterval.modifierExtension", + "path": "Observation.component.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.component:timeInterval.code", + "path": "Observation.component.code", + "short": "Disease onset to death interval", + "definition": "Describes what was observed. Sometimes this is called the observation \"code\".", + "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.", + "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.component.code", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "patternCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "69440-6" + } + ] + }, + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCode" + } + ], + "strength": "example", + "description": "Codes identifying names of simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "code" + } + ] + }, + { + "id": "Observation.component:timeInterval.value[x]", + "path": "Observation.component.value[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "closed" + }, + "short": "Actual component result", + "definition": "The information determined as a result of making the observation, if the information has a simple value.", + "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity" + }, + { + "code": "CodeableConcept" + }, + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "363714003 |Interprets| < 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.component:timeInterval.value[x]:valueString", + "path": "Observation.component.value[x]", + "sliceName": "valueString", + "short": "Interval - string description", + "definition": "The information determined as a result of making the observation, if the information has a simple value.", + "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "maxLength": 20, + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "363714003 |Interprets| < 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.component:timeInterval.value[x]:valueQuantity", + "path": "Observation.component.value[x]", + "sliceName": "valueQuantity", + "short": "Interval - quantity with units of time", + "definition": "The information determined as a result of making the observation, if the information has a simple value.", + "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "363714003 |Interprets| < 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.component:timeInterval.value[x]:valueCodeableConcept", + "path": "Observation.component.value[x]", + "sliceName": "valueCodeableConcept", + "short": "Interval Unknown", + "definition": "The information determined as a result of making the observation, if the information has a simple value.", + "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "363714003 |Interprets| < 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.component:timeInterval.dataAbsentReason", + "path": "Observation.component.dataAbsentReason", + "short": "Why the component result is missing", + "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.", + "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.", + "requirements": "For many results it is necessary to handle exceptional values in measurements.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.dataAbsentReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "obs-6" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationValueAbsentReason" + } + ], + "strength": "extensible", + "description": "Codes specifying why the result (`Observation.value[x]`) is missing.", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": "value.nullFlavor" + } + ] + }, + { + "id": "Observation.component:timeInterval.interpretation", + "path": "Observation.component.interpretation", + "short": "High, low, normal, etc.", + "definition": "A categorical assessment of an observation value. For example, high, low, normal.", + "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.", + "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.", + "alias": [ + "Abnormal Flag" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.interpretation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationInterpretation" + } + ], + "strength": "extensible", + "description": "Codes identifying interpretations of observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values|" + }, + { + "identity": "v2", + "map": "OBX-8" + }, + { + "identity": "rim", + "map": "interpretationCode" + }, + { + "identity": "sct-attr", + "map": "363713009 |Has interpretation|" + } + ] + }, + { + "id": "Observation.component:timeInterval.referenceRange", + "path": "Observation.component.referenceRange", + "short": "Provides guide for interpretation of component result", + "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.", + "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.", + "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.referenceRange", + "min": 0, + "max": "*" + }, + "contentReference": "http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX.7" + }, + { + "identity": "rim", + "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Observation", + "path": "Observation" + }, + { + "id": "Observation.id", + "path": "Observation.id", + "min": 1 + }, + { + "id": "Observation.code", + "path": "Observation.code", + "short": "Cause of death", + "patternCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "79378-6" + } + ] + } + }, + { + "id": "Observation.subject", + "path": "Observation.subject", + "label": "The decedent", + "short": "The decedent", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ] + }, + { + "id": "Observation.performer", + "path": "Observation.performer", + "label": "Cause of death certifier (coroner or medical examiner)", + "short": "Cause of death certifier (coroner or medical examiner)", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner" + ] + } + ] + }, + { + "id": "Observation.value[x]", + "path": "Observation.value[x]", + "min": 1, + "type": [ + { + "code": "CodeableConcept" + } + ] + }, + { + "id": "Observation.value[x].text", + "path": "Observation.value[x].text", + "short": "Cause of death Intermediate | Intermediate I | Intermediat II | Underlying", + "min": 1, + "maxLength": 255 + }, + { + "id": "Observation.component", + "path": "Observation.component", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "code" + } + ], + "rules": "open" + }, + "min": 2 + }, + { + "id": "Observation.component:sequenceOfConditions", + "path": "Observation.component", + "sliceName": "sequenceOfConditions", + "short": "Sequence of conditions", + "min": 1, + "max": "1" + }, + { + "id": "Observation.component:sequenceOfConditions.value[x]", + "path": "Observation.component.value[x]", + "short": "Sequence of conditions e.g Intermediate | Intermediate I | Intermediat II | Underlying", + "min": 1, + "type": [ + { + "code": "string" + } + ] + }, + { + "id": "Observation.component:timeInterval", + "path": "Observation.component", + "sliceName": "timeInterval", + "short": "Cause of death time interval for Intermediate, Intermediate I, Intermediat II, Underlying", + "min": 1, + "max": "1" + }, + { + "id": "Observation.component:timeInterval.code", + "path": "Observation.component.code", + "short": "Disease onset to death interval", + "patternCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "69440-6" + } + ] + } + }, + { + "id": "Observation.component:timeInterval.value[x]", + "path": "Observation.component.value[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "open" + }, + "type": [ + { + "code": "Quantity" + }, + { + "code": "CodeableConcept" + }, + { + "code": "string" + } + ] + }, + { + "id": "Observation.component:timeInterval.value[x]:valueString", + "path": "Observation.component.value[x]", + "sliceName": "valueString", + "short": "Interval - string description", + "min": 0, + "max": "1", + "type": [ + { + "code": "string" + } + ], + "maxLength": 20 + }, + { + "id": "Observation.component:timeInterval.value[x]:valueQuantity", + "path": "Observation.component.value[x]", + "sliceName": "valueQuantity", + "short": "Interval - quantity with units of time", + "min": 0, + "max": "1", + "type": [ + { + "code": "Quantity" + } + ] + }, + { + "id": "Observation.component:timeInterval.value[x]:valueCodeableConcept", + "path": "Observation.component.value[x]", + "sliceName": "valueCodeableConcept", + "short": "Interval Unknown", + "min": 0, + "max": "1", + "type": [ + { + "code": "CodeableConcept" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzChiefdomExtension.json b/packages/fhir-eswatini/spec/StructureDefinition-SzChiefdomExtension.json new file mode 100644 index 0000000000..f3101d86d8 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzChiefdomExtension.json @@ -0,0 +1,288 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzChiefdomExtension", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzChiefdomExtension

\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Extension 0..*ExtensionExtention: Eswatini Chiefdom
\".\"\".\"\".\" extension 0..0Extension
\".\"\".\"\".\" url 1..1uri"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzChiefdomExtension"
\".\"\".\"\".\" value[x] 0..1CodeableConceptValue of extension
Binding: Value Set: Chiefdoms Value Set (required)

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzChiefdomExtension", + "version": "0.1.0", + "name": "SzChiefdomExtension", + "title": "Extention: Eswatini Chiefdom", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Extention for Eswatini Chiefdom", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Eswatini Chiefdom", + "definition": "Extention for Eswatini Chiefdom", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzChiefdomExtension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzChiefdomVS|0.1.0" + }, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Eswatini Chiefdom", + "definition": "Extention for Eswatini Chiefdom" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzChiefdomExtension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "type": [ + { + "code": "CodeableConcept" + } + ], + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzChiefdomVS|0.1.0" + } + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzClinicalObservation.json b/packages/fhir-eswatini/spec/StructureDefinition-SzClinicalObservation.json new file mode 100644 index 0000000000..674d165d69 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzClinicalObservation.json @@ -0,0 +1,2747 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzClinicalObservation", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzClinicalObservation

\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Observation 0..*ObservationMeasurements and simple assertions
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" code S1..1CodeableConceptObservation code
\".\"\".\"\".\" subject 1..1Reference(Eswatini Patient Profile)Patient's information
\".\"\".\"\".\" encounter 0..1Reference(Eswatini Encounter Profile)Encounter information
\".\"\".\"\".\" value[x] 1..1Quantity, CodeableConcept, string, boolean, integer, Range, Ratio, SampledData, time, dateTime, PeriodActual result

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzClinicalObservation", + "version": "0.1.0", + "name": "EswatiniClinicalObservation", + "title": "Eswatini Clinical Observation Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Eswatini Clinical Observation Profile", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "sct-concept", + "uri": "http://snomed.info/conceptdomain", + "name": "SNOMED CT Concept Domain Binding" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "sct-attr", + "uri": "http://snomed.org/attributebinding", + "name": "SNOMED CT Attribute Binding" + } + ], + "kind": "resource", + "abstract": false, + "type": "Observation", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Observation", + "path": "Observation", + "short": "Measurements and simple assertions", + "definition": "Measurements and simple assertions made about a patient, device or other subject.", + "comment": "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc. Other resources are used to provide context for observations such as laboratory reports, etc.", + "alias": [ + "Vital Signs", + "Measurement", + "Results", + "Tests" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "obs-6", + "severity": "error", + "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", + "expression": "dataAbsentReason.empty() or value.empty()", + "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + }, + { + "key": "obs-7", + "severity": "error", + "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present", + "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()", + "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Event" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity|" + }, + { + "identity": "v2", + "map": "OBX" + }, + { + "identity": "rim", + "map": "Observation[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.id", + "path": "Observation.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Observation.meta", + "path": "Observation.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Observation.implicitRules", + "path": "Observation.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Observation.language", + "path": "Observation.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Observation.text", + "path": "Observation.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Observation.contained", + "path": "Observation.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.extension", + "path": "Observation.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.modifierExtension", + "path": "Observation.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.identifier", + "path": "Observation.identifier", + "short": "Business Identifier for observation", + "definition": "A unique identifier assigned to this observation.", + "requirements": "Allows observations to be distinguished and referenced.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.identifier" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4." + }, + { + "identity": "rim", + "map": "id" + } + ] + }, + { + "id": "Observation.basedOn", + "path": "Observation.basedOn", + "short": "Fulfills plan, proposal or order", + "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.", + "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.", + "alias": [ + "Fulfills" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.basedOn", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DeviceRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/NutritionOrder|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.basedOn" + }, + { + "identity": "v2", + "map": "ORC" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]" + } + ] + }, + { + "id": "Observation.partOf", + "path": "Observation.partOf", + "short": "Part of referenced event", + "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.", + "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below for guidance on referencing another Observation.", + "alias": [ + "Container" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.partOf", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationDispense|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Immunization|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.partOf" + }, + { + "identity": "v2", + "map": "Varies by domain" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=FLFS].target" + } + ] + }, + { + "id": "Observation.status", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", + "valueString": "default: final" + } + ], + "path": "Observation.status", + "short": "registered | preliminary | final | amended +", + "definition": "The status of the result value.", + "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", + "requirements": "Need to track the status of individual results. Some results are finalized before the whole report is finalized.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationStatus" + } + ], + "strength": "required", + "description": "Codes providing the status of an observation.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "sct-concept", + "map": "< 445584004 |Report by finality status|" + }, + { + "identity": "v2", + "map": "OBX-11" + }, + { + "identity": "rim", + "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\"" + } + ] + }, + { + "id": "Observation.category", + "path": "Observation.category", + "short": "Classification of type of observation", + "definition": "A code that classifies the general type of observation being made.", + "comment": "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.", + "requirements": "Used for filtering what observations are retrieved and displayed.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.category", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCategory" + } + ], + "strength": "preferred", + "description": "Codes for high level observation categories.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-category|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code" + } + ] + }, + { + "id": "Observation.code", + "path": "Observation.code", + "short": "Observation code", + "definition": "Code for a particular observation e.g ART Initiation Date", + "comment": "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.", + "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.", + "alias": [ + "Name" + ], + "min": 1, + "max": "1", + "base": { + "path": "Observation.code", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCode" + } + ], + "strength": "example", + "description": "Codes identifying names of simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.code" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "code" + }, + { + "identity": "sct-attr", + "map": "116680003 |Is a|" + } + ] + }, + { + "id": "Observation.subject", + "path": "Observation.subject", + "short": "Patient's information", + "definition": "Patient relevant to the requested lab order", + "comment": "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.", + "requirements": "Observations have no value if you don't know who or what they're about.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.subject", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "PID-3" + }, + { + "identity": "rim", + "map": "participation[typeCode=RTGT]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Observation.focus", + "path": "Observation.focus", + "short": "What the observation is about, when it is not about the subject of record", + "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.", + "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/R4/extension-observation-focuscode.html).", + "min": 0, + "max": "*", + "base": { + "path": "Observation.focus", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "participation[typeCode=SBJ]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Observation.encounter", + "path": "Observation.encounter", + "short": "Encounter information", + "definition": "Encounter relevant to the requested lab order", + "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).", + "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.", + "alias": [ + "Context" + ], + "min": 0, + "max": "1", + "base": { + "path": "Observation.encounter", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.context" + }, + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "v2", + "map": "PV1" + }, + { + "identity": "rim", + "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.effective[x]", + "path": "Observation.effective[x]", + "short": "Clinically relevant time/time-period for observation", + "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.", + "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/R4/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.", + "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.", + "alias": [ + "Occurrence" + ], + "min": 0, + "max": "1", + "base": { + "path": "Observation.effective[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + }, + { + "code": "Period" + }, + { + "code": "Timing" + }, + { + "code": "instant" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.done[x]" + }, + { + "identity": "v2", + "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)" + }, + { + "identity": "rim", + "map": "effectiveTime" + } + ] + }, + { + "id": "Observation.issued", + "path": "Observation.issued", + "short": "Date/Time this version was made available", + "definition": "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.", + "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/R4/resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.issued", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "instant" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.recorded" + }, + { + "identity": "v2", + "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)" + }, + { + "identity": "rim", + "map": "participation[typeCode=AUT].time" + } + ] + }, + { + "id": "Observation.performer", + "path": "Observation.performer", + "short": "Who is responsible for the observation", + "definition": "Who was responsible for asserting the observed value as \"true\".", + "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.performer", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1", + "http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.actor" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'" + }, + { + "identity": "rim", + "map": "participation[typeCode=PRF]" + } + ] + }, + { + "id": "Observation.value[x]", + "path": "Observation.value[x]", + "short": "Actual result", + "definition": "The information determined as a result of making the observation, if the information has a simple value.", + "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity" + }, + { + "code": "CodeableConcept" + }, + { + "code": "string" + }, + { + "code": "boolean" + }, + { + "code": "integer" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "SampledData" + }, + { + "code": "time" + }, + { + "code": "dateTime" + }, + { + "code": "Period" + } + ], + "condition": [ + "obs-7" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.dataAbsentReason", + "path": "Observation.dataAbsentReason", + "short": "Why the result is missing", + "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.", + "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.", + "requirements": "For many results it is necessary to handle exceptional values in measurements.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.dataAbsentReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "obs-6" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationValueAbsentReason" + } + ], + "strength": "extensible", + "description": "Codes specifying why the result (`Observation.value[x]`) is missing.", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": "value.nullFlavor" + } + ] + }, + { + "id": "Observation.interpretation", + "path": "Observation.interpretation", + "short": "High, low, normal, etc.", + "definition": "A categorical assessment of an observation value. For example, high, low, normal.", + "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.", + "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.", + "alias": [ + "Abnormal Flag" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.interpretation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationInterpretation" + } + ], + "strength": "extensible", + "description": "Codes identifying interpretations of observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values|" + }, + { + "identity": "v2", + "map": "OBX-8" + }, + { + "identity": "rim", + "map": "interpretationCode" + }, + { + "identity": "sct-attr", + "map": "363713009 |Has interpretation|" + } + ] + }, + { + "id": "Observation.note", + "path": "Observation.note", + "short": "Comments about the observation", + "definition": "Comments about the observation or the results.", + "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.", + "requirements": "Need to be able to provide free text additional information.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)" + }, + { + "identity": "rim", + "map": "subjectOf.observationEvent[code=\"annotation\"].value" + } + ] + }, + { + "id": "Observation.bodySite", + "path": "Observation.bodySite", + "short": "Observed body part", + "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).", + "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/R4/extension-bodysite.html).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.bodySite", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "BodySite" + } + ], + "strength": "example", + "description": "Codes describing anatomical locations. May include laterality.", + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 123037004 |Body structure|" + }, + { + "identity": "v2", + "map": "OBX-20" + }, + { + "identity": "rim", + "map": "targetSiteCode" + }, + { + "identity": "sct-attr", + "map": "718497002 |Inherent location|" + } + ] + }, + { + "id": "Observation.method", + "path": "Observation.method", + "short": "How it was done", + "definition": "Indicates the mechanism used to perform the observation.", + "comment": "Only used if not implicit in code for Observation.code.", + "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.method", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationMethod" + } + ], + "strength": "example", + "description": "Methods for simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "OBX-17" + }, + { + "identity": "rim", + "map": "methodCode" + } + ] + }, + { + "id": "Observation.specimen", + "path": "Observation.specimen", + "short": "Specimen used for this observation", + "definition": "The specimen that was used when this observation was made.", + "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.specimen", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 123038009 |Specimen|" + }, + { + "identity": "v2", + "map": "SPM segment" + }, + { + "identity": "rim", + "map": "participation[typeCode=SPC].specimen" + }, + { + "identity": "sct-attr", + "map": "704319004 |Inherent in|" + } + ] + }, + { + "id": "Observation.device", + "path": "Observation.device", + "short": "(Measurement) Device", + "definition": "The device used to generate the observation data.", + "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.device", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Device|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DeviceMetric|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 49062001 |Device|" + }, + { + "identity": "v2", + "map": "OBX-17 / PRT -10" + }, + { + "identity": "rim", + "map": "participation[typeCode=DEV]" + }, + { + "identity": "sct-attr", + "map": "424226004 |Using device|" + } + ] + }, + { + "id": "Observation.referenceRange", + "path": "Observation.referenceRange", + "short": "Provides guide for interpretation", + "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.", + "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.", + "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.referenceRange", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "obs-3", + "severity": "error", + "human": "Must have at least a low or a high or text", + "expression": "low.exists() or high.exists() or text.exists()", + "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX.7" + }, + { + "identity": "rim", + "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.referenceRange.id", + "path": "Observation.referenceRange.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.referenceRange.extension", + "path": "Observation.referenceRange.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.referenceRange.modifierExtension", + "path": "Observation.referenceRange.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.referenceRange.low", + "path": "Observation.referenceRange.low", + "short": "Low Range, if relevant", + "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.low", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "condition": [ + "obs-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:IVL_PQ.low" + } + ] + }, + { + "id": "Observation.referenceRange.high", + "path": "Observation.referenceRange.high", + "short": "High Range, if relevant", + "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.high", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "condition": [ + "obs-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:IVL_PQ.high" + } + ] + }, + { + "id": "Observation.referenceRange.type", + "path": "Observation.referenceRange.type", + "short": "Reference range qualifier", + "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.", + "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.", + "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationRangeMeaning" + } + ], + "strength": "preferred", + "description": "Code for the meaning of a reference range.", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|" + }, + { + "identity": "v2", + "map": "OBX-10" + }, + { + "identity": "rim", + "map": "interpretationCode" + } + ] + }, + { + "id": "Observation.referenceRange.appliesTo", + "path": "Observation.referenceRange.appliesTo", + "short": "Reference range population", + "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.", + "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.", + "requirements": "Need to be able to identify the target population for proper interpretation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.referenceRange.appliesTo", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationRangeType" + } + ], + "strength": "example", + "description": "Codes identifying the population the reference range applies to.", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|" + }, + { + "identity": "v2", + "map": "OBX-10" + }, + { + "identity": "rim", + "map": "interpretationCode" + } + ] + }, + { + "id": "Observation.referenceRange.age", + "path": "Observation.referenceRange.age", + "short": "Applicable age range, if relevant", + "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.", + "requirements": "Some analytes vary greatly over age.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.age", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Range" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value" + } + ] + }, + { + "id": "Observation.referenceRange.text", + "path": "Observation.referenceRange.text", + "short": "Text based reference range in an observation", + "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:ST" + } + ] + }, + { + "id": "Observation.hasMember", + "path": "Observation.hasMember", + "short": "Related resource that belongs to the Observation group", + "definition": "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.", + "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/R4/questionnaireresponse.html) into a final score and represent the score as an Observation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.hasMember", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "Relationships established by OBX-4 usage" + }, + { + "identity": "rim", + "map": "outBoundRelationship" + } + ] + }, + { + "id": "Observation.derivedFrom", + "path": "Observation.derivedFrom", + "short": "Related measurements the observation is made from", + "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.", + "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.derivedFrom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Media|4.0.1", + "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "Relationships established by OBX-4 usage" + }, + { + "identity": "rim", + "map": ".targetObservation" + } + ] + }, + { + "id": "Observation.component", + "path": "Observation.component", + "short": "Component results", + "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.", + "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.component", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "containment by OBX-4?" + }, + { + "identity": "rim", + "map": "outBoundRelationship[typeCode=COMP]" + } + ] + }, + { + "id": "Observation.component.id", + "path": "Observation.component.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component.extension", + "path": "Observation.component.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component.modifierExtension", + "path": "Observation.component.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.component.code", + "path": "Observation.component.code", + "short": "Type of component observation (code / type)", + "definition": "Describes what was observed. Sometimes this is called the observation \"code\".", + "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.", + "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.component.code", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCode" + } + ], + "strength": "example", + "description": "Codes identifying names of simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "code" + } + ] + }, + { + "id": "Observation.component.value[x]", + "path": "Observation.component.value[x]", + "short": "Actual component result", + "definition": "The information determined as a result of making the observation, if the information has a simple value.", + "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity" + }, + { + "code": "CodeableConcept" + }, + { + "code": "string" + }, + { + "code": "boolean" + }, + { + "code": "integer" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "SampledData" + }, + { + "code": "time" + }, + { + "code": "dateTime" + }, + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "363714003 |Interprets| < 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.component.dataAbsentReason", + "path": "Observation.component.dataAbsentReason", + "short": "Why the component result is missing", + "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.", + "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.", + "requirements": "For many results it is necessary to handle exceptional values in measurements.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.dataAbsentReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "obs-6" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationValueAbsentReason" + } + ], + "strength": "extensible", + "description": "Codes specifying why the result (`Observation.value[x]`) is missing.", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": "value.nullFlavor" + } + ] + }, + { + "id": "Observation.component.interpretation", + "path": "Observation.component.interpretation", + "short": "High, low, normal, etc.", + "definition": "A categorical assessment of an observation value. For example, high, low, normal.", + "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.", + "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.", + "alias": [ + "Abnormal Flag" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.interpretation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationInterpretation" + } + ], + "strength": "extensible", + "description": "Codes identifying interpretations of observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values|" + }, + { + "identity": "v2", + "map": "OBX-8" + }, + { + "identity": "rim", + "map": "interpretationCode" + }, + { + "identity": "sct-attr", + "map": "363713009 |Has interpretation|" + } + ] + }, + { + "id": "Observation.component.referenceRange", + "path": "Observation.component.referenceRange", + "short": "Provides guide for interpretation of component result", + "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.", + "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.", + "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.referenceRange", + "min": 0, + "max": "*" + }, + "contentReference": "http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX.7" + }, + { + "identity": "rim", + "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Observation", + "path": "Observation" + }, + { + "id": "Observation.id", + "path": "Observation.id", + "min": 1 + }, + { + "id": "Observation.code", + "path": "Observation.code", + "short": "Observation code", + "definition": "Code for a particular observation e.g ART Initiation Date", + "mustSupport": true + }, + { + "id": "Observation.subject", + "path": "Observation.subject", + "short": "Patient's information", + "definition": "Patient relevant to the requested lab order", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ] + }, + { + "id": "Observation.encounter", + "path": "Observation.encounter", + "short": "Encounter information", + "definition": "Encounter relevant to the requested lab order", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ] + }, + { + "id": "Observation.value[x]", + "path": "Observation.value[x]", + "min": 1 + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzCondition.json b/packages/fhir-eswatini/spec/StructureDefinition-SzCondition.json new file mode 100644 index 0000000000..f4a17d87c3 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzCondition.json @@ -0,0 +1,2098 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzCondition", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzCondition

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Condition 0..*ConditionDetailed information about conditions, problems or diagnoses
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" category S1..1CodeableConceptproblem-list-item | encounter-diagnosis
\".\"\".\"\".\" code 1..1CodeableConceptCondition Identification
\".\"\".\"\".\" encounter 1..1Reference(Encounter)Encounter created as part of
\".\"\".\"\".\" Slices for onset[x] 1..1dateTimeEstimated or actual date, date-time, or age
Slice: Unordered, Open by type:$this
\".\"\".\"\".\"\".\" onset[x]:onsetDateTime 1..1dateTimeDiagnosis date
\".\"\".\"\".\" recordedDate 1..1dateTimeDate record was first recorded

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzCondition", + "version": "0.1.0", + "name": "SzCondition", + "title": "Eswatini Condition Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Eswatini Condition Profile", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "sct-concept", + "uri": "http://snomed.info/conceptdomain", + "name": "SNOMED CT Concept Domain Binding" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "sct-attr", + "uri": "http://snomed.org/attributebinding", + "name": "SNOMED CT Attribute Binding" + } + ], + "kind": "resource", + "abstract": false, + "type": "Condition", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Condition", + "path": "Condition", + "short": "Detailed information about conditions, problems or diagnoses", + "definition": "A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern.", + "min": 0, + "max": "*", + "base": { + "path": "Condition", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "Most systems will expect a clinicalStatus to be valued for problem-list-items that are managed over time, but might not need a clinicalStatus for point in time encounter-diagnosis." + } + ], + "key": "con-3", + "severity": "warning", + "human": "Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item", + "expression": "clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty()", + "xpath": "exists(f:clinicalStatus) or exists(f:verificationStatus/f:coding/f:code/@value='entered-in-error') or not(exists(category[@value='problem-list-item']))", + "source": "http://hl7.org/fhir/StructureDefinition/Condition" + }, + { + "key": "con-4", + "severity": "error", + "human": "If condition is abated, then clinicalStatus must be either inactive, resolved, or remission", + "expression": "abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists()", + "xpath": "not(exists(*[starts-with(local-name(.), 'abatement')])) or exists(f:clinicalStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-clinical' and f:code/@value=('resolved', 'remission', 'inactive')])", + "source": "http://hl7.org/fhir/StructureDefinition/Condition" + }, + { + "key": "con-5", + "severity": "error", + "human": "Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error", + "expression": "verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty()", + "xpath": "not(exists(f:verificationStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-ver-status' and f:code/@value='entered-in-error'])) or not(exists(f:clinicalStatus))", + "source": "http://hl7.org/fhir/StructureDefinition/Condition" + }, + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Event" + }, + { + "identity": "sct-concept", + "map": "< 243796009 |Situation with explicit context| : 246090004 |Associated finding| = ( ( < 404684003 |Clinical finding| MINUS ( << 420134006 |Propensity to adverse reactions| OR << 473010000 |Hypersensitivity condition| OR << 79899007 |Drug interaction| OR << 69449002 |Drug action| OR << 441742003 |Evaluation finding| OR << 307824009 |Administrative status| OR << 385356007 |Tumor stage finding|)) OR < 272379006 |Event|)" + }, + { + "identity": "v2", + "map": "PPR message" + }, + { + "identity": "rim", + "map": "Observation[classCode=OBS, moodCode=EVN, code=ASSERTION, value id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Condition.implicitRules", + "path": "Condition.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Condition.language", + "path": "Condition.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Condition.text", + "path": "Condition.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Condition.contained", + "path": "Condition.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Condition.extension", + "path": "Condition.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Condition.modifierExtension", + "path": "Condition.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Condition.identifier", + "path": "Condition.identifier", + "short": "External Ids for this condition", + "definition": "Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", + "comment": "This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.", + "requirements": "Allows identification of the condition as it is known by various participating systems and in a way that remains consistent across servers.", + "min": 0, + "max": "*", + "base": { + "path": "Condition.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.identifier" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "rim", + "map": ".id" + } + ] + }, + { + "id": "Condition.clinicalStatus", + "path": "Condition.clinicalStatus", + "short": "active | recurrence | relapse | inactive | remission | resolved", + "definition": "The clinical status of the condition.", + "comment": "The data type is CodeableConcept because clinicalStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.", + "min": 0, + "max": "1", + "base": { + "path": "Condition.clinicalStatus", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "con-3", + "con-4", + "con-5" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the status contains codes that mark the condition as no longer active.", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ConditionClinicalStatus" + } + ], + "strength": "required", + "description": "The clinical status of the condition or diagnosis.", + "valueSet": "http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "sct-concept", + "map": "< 303105007 |Disease phases|" + }, + { + "identity": "v2", + "map": "PRB-14" + }, + { + "identity": "rim", + "map": "Observation ACT\n.inboundRelationship[typeCode=COMP].source[classCode=OBS, code=\"clinicalStatus\", moodCode=EVN].value" + } + ] + }, + { + "id": "Condition.verificationStatus", + "path": "Condition.verificationStatus", + "short": "unconfirmed | provisional | differential | confirmed | refuted | entered-in-error", + "definition": "The verification status to support the clinical status of the condition.", + "comment": "verificationStatus is not required. For example, when a patient has abdominal pain in the ED, there is not likely going to be a verification status.\nThe data type is CodeableConcept because verificationStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.", + "min": 0, + "max": "1", + "base": { + "path": "Condition.verificationStatus", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "con-3", + "con-5" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the status contains the code refuted and entered-in-error that mark the Condition as not currently valid.", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ConditionVerificationStatus" + } + ], + "strength": "required", + "description": "The verification status to support or decline the clinical status of the condition or diagnosis.", + "valueSet": "http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "sct-concept", + "map": "< 410514004 |Finding context value|" + }, + { + "identity": "v2", + "map": "PRB-13" + }, + { + "identity": "rim", + "map": "Observation ACT\n.inboundRelationship[typeCode=COMP].source[classCode=OBS, code=\"verificationStatus\", moodCode=EVN].value" + }, + { + "identity": "sct-attr", + "map": "408729009" + } + ] + }, + { + "id": "Condition.category", + "path": "Condition.category", + "short": "problem-list-item | encounter-diagnosis", + "definition": "A category assigned to the condition.", + "comment": "The categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts.", + "min": 1, + "max": "1", + "base": { + "path": "Condition.category", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ConditionCategory" + } + ], + "strength": "extensible", + "description": "A category assigned to the condition.", + "valueSet": "http://hl7.org/fhir/ValueSet/condition-category|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "sct-concept", + "map": "< 404684003 |Clinical finding|" + }, + { + "identity": "v2", + "map": "'problem' if from PRB-3. 'diagnosis' if from DG1 segment in PV1 message" + }, + { + "identity": "rim", + "map": ".code" + } + ] + }, + { + "id": "Condition.severity", + "path": "Condition.severity", + "short": "Subjective severity of condition", + "definition": "A subjective assessment of the severity of the condition as evaluated by the clinician.", + "comment": "Coding of the severity with a terminology is preferred, where possible.", + "min": 0, + "max": "1", + "base": { + "path": "Condition.severity", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ConditionSeverity" + } + ], + "strength": "preferred", + "description": "A subjective assessment of the severity of the condition as evaluated by the clinician.", + "valueSet": "http://hl7.org/fhir/ValueSet/condition-severity|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.grade" + }, + { + "identity": "sct-concept", + "map": "< 272141005 |Severities|" + }, + { + "identity": "v2", + "map": "PRB-26 / ABS-3" + }, + { + "identity": "rim", + "map": "Can be pre/post-coordinated into value. Or ./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"severity\"].value" + }, + { + "identity": "sct-attr", + "map": "246112005" + } + ] + }, + { + "id": "Condition.code", + "path": "Condition.code", + "short": "Condition Identification", + "definition": "Details specifying the ICD 10 or 11 diagnosis recorded in this profile", + "requirements": "0..1 to account for primarily narrative only resources.", + "alias": [ + "type" + ], + "min": 1, + "max": "1", + "base": { + "path": "Condition.code", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ConditionKind" + } + ], + "strength": "example", + "description": "Identification of the condition or diagnosis.", + "valueSet": "http://hl7.org/fhir/ValueSet/condition-code|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.code" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "sct-concept", + "map": "code 246090004 |Associated finding| (< 404684003 |Clinical finding| MINUS\n<< 420134006 |Propensity to adverse reactions| MINUS \n<< 473010000 |Hypersensitivity condition| MINUS \n<< 79899007 |Drug interaction| MINUS\n<< 69449002 |Drug action| MINUS \n<< 441742003 |Evaluation finding| MINUS \n<< 307824009 |Administrative status| MINUS \n<< 385356007 |Tumor stage finding|) \nOR < 413350009 |Finding with explicit context|\nOR < 272379006 |Event|" + }, + { + "identity": "v2", + "map": "PRB-3" + }, + { + "identity": "rim", + "map": ".value" + }, + { + "identity": "sct-attr", + "map": "246090004" + } + ] + }, + { + "id": "Condition.bodySite", + "path": "Condition.bodySite", + "short": "Anatomical location, if relevant", + "definition": "The anatomical location where this condition manifests itself.", + "comment": "Only used if not implicit in code found in Condition.code. If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](http://hl7.org/fhir/R4/extension-bodysite.html). May be a summary code, or a reference to a very precise definition of the location, or both.", + "min": 0, + "max": "*", + "base": { + "path": "Condition.bodySite", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "BodySite" + } + ], + "strength": "example", + "description": "Codes describing anatomical locations. May include laterality.", + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 442083009 |Anatomical or acquired body structure|" + }, + { + "identity": "rim", + "map": ".targetBodySiteCode" + }, + { + "identity": "sct-attr", + "map": "363698007" + } + ] + }, + { + "id": "Condition.subject", + "path": "Condition.subject", + "short": "Who has the condition?", + "definition": "Indicates the patient or group who the condition record is associated with.", + "requirements": "Group is typically used for veterinary or public health use cases.", + "alias": [ + "patient" + ], + "min": 1, + "max": "1", + "base": { + "path": "Condition.subject", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Group|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "PID-3" + }, + { + "identity": "rim", + "map": ".participation[typeCode=SBJ].role[classCode=PAT]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Condition.encounter", + "path": "Condition.encounter", + "short": "Encounter created as part of", + "definition": "The Encounter during which this Condition was created or to which the creation of this record is tightly associated.", + "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. This record indicates the encounter this particular record is associated with. In the case of a \"new\" diagnosis reflecting ongoing/revised information about the condition, this might be distinct from the first encounter in which the underlying condition was first \"known\".", + "min": 1, + "max": "1", + "base": { + "path": "Condition.encounter", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.context" + }, + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "v2", + "map": "PV1-19 (+PV1-54)" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" + } + ] + }, + { + "id": "Condition.onset[x]", + "path": "Condition.onset[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "closed" + }, + "short": "Estimated or actual date, date-time, or age", + "definition": "Estimated or actual date or date-time the condition began, in the opinion of the clinician.", + "comment": "Age is generally used when the patient reports an age at which the Condition began to occur.", + "min": 1, + "max": "1", + "base": { + "path": "Condition.onset[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.init" + }, + { + "identity": "v2", + "map": "PRB-16" + }, + { + "identity": "rim", + "map": ".effectiveTime.low or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at onset\"].value" + } + ] + }, + { + "id": "Condition.onset[x]:onsetDateTime", + "path": "Condition.onset[x]", + "sliceName": "onsetDateTime", + "short": "Diagnosis date", + "definition": "Date at which the client was diagnosed with the condition", + "comment": "Age is generally used when the patient reports an age at which the Condition began to occur.", + "min": 1, + "max": "1", + "base": { + "path": "Condition.onset[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.init" + }, + { + "identity": "v2", + "map": "PRB-16" + }, + { + "identity": "rim", + "map": ".effectiveTime.low or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at onset\"].value" + } + ] + }, + { + "id": "Condition.abatement[x]", + "path": "Condition.abatement[x]", + "short": "When in resolution/remission", + "definition": "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", + "comment": "There is no explicit distinction between resolution and remission because in many cases the distinction is not clear. Age is generally used when the patient reports an age at which the Condition abated. If there is no abatement element, it is unknown whether the condition has resolved or entered remission; applications and users should generally assume that the condition is still valid. When abatementString exists, it implies the condition is abated.", + "min": 0, + "max": "1", + "base": { + "path": "Condition.abatement[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + }, + { + "code": "Age" + }, + { + "code": "Period" + }, + { + "code": "Range" + }, + { + "code": "string" + } + ], + "condition": [ + "con-4" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.done[x]" + }, + { + "identity": "rim", + "map": ".effectiveTime.high or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at remission\"].value or .inboundRelationship[typeCode=SUBJ]source[classCode=CONC, moodCode=EVN].status=completed" + } + ] + }, + { + "id": "Condition.recordedDate", + "path": "Condition.recordedDate", + "short": "Date record was first recorded", + "definition": "The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date.", + "min": 1, + "max": "1", + "base": { + "path": "Condition.recordedDate", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.recorded" + }, + { + "identity": "v2", + "map": "REL-11" + }, + { + "identity": "rim", + "map": ".participation[typeCode=AUT].time" + } + ] + }, + { + "id": "Condition.recorder", + "path": "Condition.recorder", + "short": "Who recorded the condition", + "definition": "Individual who recorded the record and takes responsibility for its content.", + "min": 0, + "max": "1", + "base": { + "path": "Condition.recorder", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.author" + }, + { + "identity": "rim", + "map": ".participation[typeCode=AUT].role" + } + ] + }, + { + "id": "Condition.asserter", + "path": "Condition.asserter", + "short": "Person who asserts this condition", + "definition": "Individual who is making the condition statement.", + "min": 0, + "max": "1", + "base": { + "path": "Condition.asserter", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.source" + }, + { + "identity": "v2", + "map": "REL-7.1 identifier + REL-7.12 type code" + }, + { + "identity": "rim", + "map": ".participation[typeCode=INF].role" + } + ] + }, + { + "id": "Condition.stage", + "path": "Condition.stage", + "short": "Stage/grade, usually assessed formally", + "definition": "Clinical stage or grade of a condition. May include formal severity assessments.", + "min": 0, + "max": "*", + "base": { + "path": "Condition.stage", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "con-1", + "severity": "error", + "human": "Stage SHALL have summary or assessment", + "expression": "summary.exists() or assessment.exists()", + "xpath": "exists(f:summary) or exists(f:assessment)", + "source": "http://hl7.org/fhir/StructureDefinition/Condition" + }, + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"stage/grade\"]" + } + ] + }, + { + "id": "Condition.stage.id", + "path": "Condition.stage.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Condition.stage.extension", + "path": "Condition.stage.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Condition.stage.modifierExtension", + "path": "Condition.stage.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Condition.stage.summary", + "path": "Condition.stage.summary", + "short": "Simple summary (disease specific)", + "definition": "A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific.", + "min": 0, + "max": "1", + "base": { + "path": "Condition.stage.summary", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "con-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ConditionStage" + } + ], + "strength": "example", + "description": "Codes describing condition stages (e.g. Cancer stages).", + "valueSet": "http://hl7.org/fhir/ValueSet/condition-stage|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 254291000 |Staging and scales|" + }, + { + "identity": "v2", + "map": "PRB-14" + }, + { + "identity": "rim", + "map": ".value" + } + ] + }, + { + "id": "Condition.stage.assessment", + "path": "Condition.stage.assessment", + "short": "Formal record of assessment", + "definition": "Reference to a formal record of the evidence on which the staging assessment is based.", + "min": 0, + "max": "*", + "base": { + "path": "Condition.stage.assessment", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/ClinicalImpression|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DiagnosticReport|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1" + ] + } + ], + "condition": [ + "con-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".self" + } + ] + }, + { + "id": "Condition.stage.type", + "path": "Condition.stage.type", + "short": "Kind of staging", + "definition": "The kind of staging, such as pathological or clinical staging.", + "min": 0, + "max": "1", + "base": { + "path": "Condition.stage.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ConditionStageType" + } + ], + "strength": "example", + "description": "Codes describing the kind of condition staging (e.g. clinical or pathological).", + "valueSet": "http://hl7.org/fhir/ValueSet/condition-stage-type|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"stage type\"]" + } + ] + }, + { + "id": "Condition.evidence", + "path": "Condition.evidence", + "short": "Supporting evidence", + "definition": "Supporting evidence / manifestations that are the basis of the Condition's verification status, such as evidence that confirmed or refuted the condition.", + "comment": "The evidence may be a simple list of coded symptoms/manifestations, or references to observations or formal assessments, or both.", + "min": 0, + "max": "*", + "base": { + "path": "Condition.evidence", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "con-2", + "severity": "error", + "human": "evidence SHALL have code or details", + "expression": "code.exists() or detail.exists()", + "xpath": "exists(f:code) or exists(f:detail)", + "source": "http://hl7.org/fhir/StructureDefinition/Condition" + }, + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=SPRT].target[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Condition.evidence.id", + "path": "Condition.evidence.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Condition.evidence.extension", + "path": "Condition.evidence.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Condition.evidence.modifierExtension", + "path": "Condition.evidence.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Condition.evidence.code", + "path": "Condition.evidence.code", + "short": "Manifestation/symptom", + "definition": "A manifestation or symptom that led to the recording of this condition.", + "min": 0, + "max": "*", + "base": { + "path": "Condition.evidence.code", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "con-2" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ManifestationOrSymptom" + } + ], + "strength": "example", + "description": "Codes that describe the manifestation or symptoms of a condition.", + "valueSet": "http://hl7.org/fhir/ValueSet/manifestation-or-symptom|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.reasonCode" + }, + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "sct-concept", + "map": "< 404684003 |Clinical finding|" + }, + { + "identity": "rim", + "map": "[code=\"diagnosis\"].value" + } + ] + }, + { + "id": "Condition.evidence.detail", + "path": "Condition.evidence.detail", + "short": "Supporting information found elsewhere", + "definition": "Links to other relevant information, including pathology reports.", + "min": 0, + "max": "*", + "base": { + "path": "Condition.evidence.detail", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" + ] + } + ], + "condition": [ + "con-2" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "rim", + "map": ".self" + } + ] + }, + { + "id": "Condition.note", + "path": "Condition.note", + "short": "Additional information about the Condition", + "definition": "Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis.", + "min": 0, + "max": "*", + "base": { + "path": "Condition.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.note" + }, + { + "identity": "v2", + "map": "NTE child of PRB" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Condition", + "path": "Condition" + }, + { + "id": "Condition.id", + "path": "Condition.id", + "min": 1 + }, + { + "id": "Condition.category", + "path": "Condition.category", + "min": 1, + "max": "1", + "mustSupport": true + }, + { + "id": "Condition.code", + "path": "Condition.code", + "short": "Condition Identification", + "definition": "Details specifying the ICD 10 or 11 diagnosis recorded in this profile", + "min": 1 + }, + { + "id": "Condition.encounter", + "path": "Condition.encounter", + "min": 1 + }, + { + "id": "Condition.onset[x]", + "path": "Condition.onset[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "open" + }, + "min": 1 + }, + { + "id": "Condition.onset[x]:onsetDateTime", + "path": "Condition.onset[x]", + "sliceName": "onsetDateTime", + "short": "Diagnosis date", + "definition": "Date at which the client was diagnosed with the condition", + "min": 1, + "max": "1", + "type": [ + { + "code": "dateTime" + } + ] + }, + { + "id": "Condition.recordedDate", + "path": "Condition.recordedDate", + "min": 1 + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzEncounter.json b/packages/fhir-eswatini/spec/StructureDefinition-SzEncounter.json new file mode 100644 index 0000000000..8469a2050e --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzEncounter.json @@ -0,0 +1,3730 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzEncounter", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzEncounter

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Encounter 0..*EncounterEswatini Health Information Exchange Encounter
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" class S1..1CodingDepartment in which the encounter took place
Binding: Value Set: Encounter Classification (required)
\".\"\".\"\".\" subject 0..1Reference(Eswatini Patient Profile)Patient associated with the encounter
\".\"\".\"\".\" participant S1..1BackboneElementList of participants involved in the encounter
\".\"\".\"\".\"\".\" individual 0..1Reference(Eswatini Practitioner Profile)Clinicians who participated in the encounter
\".\"\".\"\".\" period 1..1PeriodThe start and end time of the encounter
\".\"\".\"\".\"\".\" start 1..1dateTimeStart date and time of the encounter
\".\"\".\"\".\" location S1..1BackboneElementEncounter location
\".\"\".\"\".\"\".\" location 1..1Reference(Eswatini Location Profile)Health facility

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter", + "version": "0.1.0", + "name": "EswatiniEncounter", + "title": "Eswatini Encounter Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "The Eswatini Encounter Profile inherits from .... This profile sets minimum expectations for the Encounter resource to record basic encounter\ninformation for a patient. It specifies which core elements shall be present and constrains how the elements are used.", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Encounter", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Encounter", + "path": "Encounter", + "short": "Eswatini Health Information Exchange Encounter", + "definition": "An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.", + "alias": [ + "Visit" + ], + "min": 0, + "max": "*", + "base": { + "path": "Encounter", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Event" + }, + { + "identity": "rim", + "map": "Encounter[@moodCode='EVN']" + } + ] + }, + { + "id": "Encounter.id", + "path": "Encounter.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Encounter.meta", + "path": "Encounter.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Encounter.implicitRules", + "path": "Encounter.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Encounter.language", + "path": "Encounter.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages|4.0.1" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Encounter.text", + "path": "Encounter.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Encounter.contained", + "path": "Encounter.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Encounter.extension", + "path": "Encounter.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Encounter.modifierExtension", + "path": "Encounter.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Encounter.identifier", + "path": "Encounter.identifier", + "short": "Identifier(s) by which this encounter is known", + "definition": "Identifier(s) by which this encounter is known.", + "min": 0, + "max": "*", + "base": { + "path": "Encounter.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.identifier" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "PV1-19" + }, + { + "identity": "rim", + "map": ".id" + } + ] + }, + { + "id": "Encounter.status", + "path": "Encounter.status", + "short": "planned | arrived | triaged | in-progress | onleave | finished | cancelled +", + "definition": "planned | arrived | triaged | in-progress | onleave | finished | cancelled +.", + "comment": "Note that internal business rules will determine the appropriate transitions that may occur between statuses (and also classes).", + "min": 1, + "max": "1", + "base": { + "path": "Encounter.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "EncounterStatus" + } + ], + "strength": "required", + "description": "Current state of the encounter.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "v2", + "map": "No clear equivalent in HL7 v2; active/finished could be inferred from PV1-44, PV1-45, PV2-24; inactive could be inferred from PV2-16" + }, + { + "identity": "rim", + "map": ".statusCode" + } + ] + }, + { + "id": "Encounter.statusHistory", + "path": "Encounter.statusHistory", + "short": "List of past encounter statuses", + "definition": "The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them.", + "comment": "The current status is always found in the current version of the resource, not the status history.", + "min": 0, + "max": "*", + "base": { + "path": "Encounter.statusHistory", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.statusHistory.id", + "path": "Encounter.statusHistory.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.statusHistory.extension", + "path": "Encounter.statusHistory.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.statusHistory.modifierExtension", + "path": "Encounter.statusHistory.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Encounter.statusHistory.status", + "path": "Encounter.statusHistory.status", + "short": "planned | arrived | triaged | in-progress | onleave | finished | cancelled +", + "definition": "planned | arrived | triaged | in-progress | onleave | finished | cancelled +.", + "min": 1, + "max": "1", + "base": { + "path": "Encounter.statusHistory.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "EncounterStatus" + } + ], + "strength": "required", + "description": "Current state of the encounter.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-status|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.statusHistory.period", + "path": "Encounter.statusHistory.period", + "short": "The time that the episode was in the specified status", + "definition": "The time that the episode was in the specified status.", + "min": 1, + "max": "1", + "base": { + "path": "Encounter.statusHistory.period", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.class", + "path": "Encounter.class", + "short": "Department in which the encounter took place", + "definition": "Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations.", + "min": 1, + "max": "1", + "base": { + "path": "Encounter.class", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Coding" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEncounterClassificationVS|0.1.0" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "v2", + "map": "PV1-2" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code" + } + ] + }, + { + "id": "Encounter.classHistory", + "path": "Encounter.classHistory", + "short": "List of past encounter classes", + "definition": "The class history permits the tracking of the encounters transitions without needing to go through the resource history. This would be used for a case where an admission starts of as an emergency encounter, then transitions into an inpatient scenario. Doing this and not restarting a new encounter ensures that any lab/diagnostic results can more easily follow the patient and not require re-processing and not get lost or cancelled during a kind of discharge from emergency to inpatient.", + "min": 0, + "max": "*", + "base": { + "path": "Encounter.classHistory", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.classHistory.id", + "path": "Encounter.classHistory.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.classHistory.extension", + "path": "Encounter.classHistory.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.classHistory.modifierExtension", + "path": "Encounter.classHistory.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Encounter.classHistory.class", + "path": "Encounter.classHistory.class", + "short": "inpatient | outpatient | ambulatory | emergency +", + "definition": "inpatient | outpatient | ambulatory | emergency +.", + "min": 1, + "max": "1", + "base": { + "path": "Encounter.classHistory.class", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Coding" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "EncounterClass" + } + ], + "strength": "extensible", + "description": "Classification of the encounter.", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode|3.0.0" + }, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.classHistory.period", + "path": "Encounter.classHistory.period", + "short": "The time that the episode was in the specified class", + "definition": "The time that the episode was in the specified class.", + "min": 1, + "max": "1", + "base": { + "path": "Encounter.classHistory.period", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.type", + "path": "Encounter.type", + "short": "Specific type of encounter", + "definition": "Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation).", + "comment": "Since there are many ways to further classify encounters, this element is 0..*.", + "min": 0, + "max": "*", + "base": { + "path": "Encounter.type", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "EncounterType" + } + ], + "strength": "example", + "description": "The type of encounter.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-type|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.code" + }, + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "v2", + "map": "PV1-4 / PV1-18" + }, + { + "identity": "rim", + "map": ".code" + } + ] + }, + { + "id": "Encounter.serviceType", + "path": "Encounter.serviceType", + "short": "Specific type of service", + "definition": "Broad categorization of the service that is to be provided (e.g. cardiology).", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.serviceType", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "EncounterServiceType" + } + ], + "strength": "example", + "description": "Broad categorization of the service that is to be provided.", + "valueSet": "http://hl7.org/fhir/ValueSet/service-type|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.code" + }, + { + "identity": "v2", + "map": "PV1-10" + }, + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.priority", + "path": "Encounter.priority", + "short": "Indicates the urgency of the encounter", + "definition": "Indicates the urgency of the encounter.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.priority", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Priority" + } + ], + "strength": "example", + "description": "Indicates the urgency of the encounter.", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActPriority|3.0.0" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.grade" + }, + { + "identity": "v2", + "map": "PV2-25" + }, + { + "identity": "rim", + "map": ".priorityCode" + } + ] + }, + { + "id": "Encounter.subject", + "path": "Encounter.subject", + "short": "Patient associated with the encounter", + "definition": "The patient or group present at the encounter.", + "comment": "While the encounter is always about the patient, the patient might not actually be known in all contexts of use, and there may be a group of patients that could be anonymous (such as in a group therapy for Alcoholics Anonymous - where the recording of the encounter could be used for billing on the number of people/staff and not important to the context of the specific patients) or alternately in veterinary care a herd of sheep receiving treatment (where the animals are not individually tracked).", + "alias": [ + "patient" + ], + "min": 0, + "max": "1", + "base": { + "path": "Encounter.subject", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient|0.1.0" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "PID-3" + }, + { + "identity": "rim", + "map": ".participation[typeCode=SBJ]/role[classCode=PAT]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Encounter.episodeOfCare", + "path": "Encounter.episodeOfCare", + "short": "Episode(s) of care that this encounter should be recorded against", + "definition": "Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem. The association is recorded on the encounter as these are typically created after the episode of care and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).", + "min": 0, + "max": "*", + "base": { + "path": "Encounter.episodeOfCare", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.context" + }, + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "v2", + "map": "PV1-54, PV1-53" + }, + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.basedOn", + "path": "Encounter.basedOn", + "short": "The ServiceRequest that initiated this encounter", + "definition": "The request this encounter satisfies (e.g. incoming referral or procedure request).", + "alias": [ + "incomingReferral" + ], + "min": 0, + "max": "*", + "base": { + "path": "Encounter.basedOn", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.basedOn" + }, + { + "identity": "rim", + "map": ".reason.ClinicalDocument" + } + ] + }, + { + "id": "Encounter.participant", + "path": "Encounter.participant", + "short": "List of participants involved in the encounter", + "definition": "The list of people responsible for providing the service.", + "min": 1, + "max": "1", + "base": { + "path": "Encounter.participant", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer" + }, + { + "identity": "v2", + "map": "ROL" + }, + { + "identity": "rim", + "map": ".participation[typeCode=PFM]" + } + ] + }, + { + "id": "Encounter.participant.id", + "path": "Encounter.participant.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.participant.extension", + "path": "Encounter.participant.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.participant.modifierExtension", + "path": "Encounter.participant.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Encounter.participant.type", + "path": "Encounter.participant.type", + "short": "Role of participant in encounter", + "definition": "Role of participant in encounter.", + "comment": "The participant type indicates how an individual participates in an encounter. It includes non-practitioner participants, and for practitioners this is to describe the action type in the context of this encounter (e.g. Admitting Dr, Attending Dr, Translator, Consulting Dr). This is different to the practitioner roles which are functional roles, derived from terms of employment, education, licensing, etc.", + "min": 0, + "max": "*", + "base": { + "path": "Encounter.participant.type", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ParticipantType" + } + ], + "strength": "extensible", + "description": "Role of participant in encounter.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-participant-type|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.function" + }, + { + "identity": "v2", + "map": "ROL-3 (or maybe PRT-4)" + }, + { + "identity": "rim", + "map": ".functionCode" + } + ] + }, + { + "id": "Encounter.participant.period", + "path": "Encounter.participant.period", + "short": "Period of time during the encounter that the participant participated", + "definition": "The period of time that the specified participant participated in the encounter. These can overlap or be sub-sets of the overall encounter's period.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.participant.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "ROL-5, ROL-6 (or maybe PRT-5)" + }, + { + "identity": "rim", + "map": ".time" + } + ] + }, + { + "id": "Encounter.participant.individual", + "path": "Encounter.participant.individual", + "short": "Clinicians who participated in the encounter", + "definition": "Persons involved in the encounter other than the patient.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.participant.individual", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner|0.1.0" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.actor" + }, + { + "identity": "w5", + "map": "FiveWs.who" + }, + { + "identity": "v2", + "map": "ROL-4" + }, + { + "identity": "rim", + "map": ".role" + } + ] + }, + { + "id": "Encounter.appointment", + "path": "Encounter.appointment", + "short": "The appointment that scheduled this encounter", + "definition": "The appointment that scheduled this encounter.", + "min": 0, + "max": "*", + "base": { + "path": "Encounter.appointment", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Appointment|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.basedOn" + }, + { + "identity": "v2", + "map": "SCH-1 / SCH-2" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=FLFS].target[classCode=ENC, moodCode=APT]" + } + ] + }, + { + "id": "Encounter.period", + "path": "Encounter.period", + "short": "The start and end time of the encounter", + "definition": "The start and end time of the encounter.", + "comment": "If not (yet) known, the end of the Period may be omitted.", + "min": 1, + "max": "1", + "base": { + "path": "Encounter.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.done[x]" + }, + { + "identity": "v2", + "map": "PV1-44, PV1-45" + }, + { + "identity": "rim", + "map": ".effectiveTime (low & high)" + } + ] + }, + { + "id": "Encounter.period.id", + "path": "Encounter.period.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.period.extension", + "path": "Encounter.period.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.period.start", + "path": "Encounter.period.start", + "short": "Start date and time of the encounter", + "definition": "The start of the period. The boundary is inclusive.", + "comment": "If the low element is missing, the meaning is that the low boundary is not known.", + "min": 1, + "max": "1", + "base": { + "path": "Period.start", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "condition": [ + "per-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "DR.1" + }, + { + "identity": "rim", + "map": "./low" + } + ] + }, + { + "id": "Encounter.period.end", + "path": "Encounter.period.end", + "short": "End time with inclusive boundary, if not ongoing", + "definition": "The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.", + "comment": "The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03.", + "min": 0, + "max": "1", + "base": { + "path": "Period.end", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "meaningWhenMissing": "If the end of the period is missing, it means that the period is ongoing", + "condition": [ + "per-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "DR.2" + }, + { + "identity": "rim", + "map": "./high" + } + ] + }, + { + "id": "Encounter.length", + "path": "Encounter.length", + "short": "Quantity of time the encounter lasted (less time absent)", + "definition": "Quantity of time the encounter lasted. This excludes the time during leaves of absence.", + "comment": "May differ from the time the Encounter.period lasted because of leave of absence.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.length", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Duration" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.occurrence[x]" + }, + { + "identity": "v2", + "map": "(PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes" + }, + { + "identity": "rim", + "map": ".lengthOfStayQuantity" + } + ] + }, + { + "id": "Encounter.reasonCode", + "path": "Encounter.reasonCode", + "short": "Coded reason the encounter takes place", + "definition": "Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.", + "comment": "For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis).", + "alias": [ + "Indication", + "Admission diagnosis" + ], + "min": 0, + "max": "*", + "base": { + "path": "Encounter.reasonCode", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "EncounterReason" + } + ], + "strength": "preferred", + "description": "Reason why the encounter takes place.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-reason|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.reasonCode" + }, + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "v2", + "map": "EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )" + }, + { + "identity": "rim", + "map": ".reasonCode" + } + ] + }, + { + "id": "Encounter.reasonReference", + "path": "Encounter.reasonReference", + "short": "Reason the encounter takes place (reference)", + "definition": "Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.", + "comment": "For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis).", + "alias": [ + "Indication", + "Admission diagnosis" + ], + "min": 0, + "max": "*", + "base": { + "path": "Encounter.reasonReference", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Condition|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.reasonCode" + }, + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "v2", + "map": "EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )" + }, + { + "identity": "rim", + "map": ".reasonCode" + } + ] + }, + { + "id": "Encounter.diagnosis", + "path": "Encounter.diagnosis", + "short": "The list of diagnosis relevant to this encounter", + "definition": "The list of diagnosis relevant to this encounter.", + "min": 0, + "max": "*", + "base": { + "path": "Encounter.diagnosis", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=RSON]" + } + ] + }, + { + "id": "Encounter.diagnosis.id", + "path": "Encounter.diagnosis.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.diagnosis.extension", + "path": "Encounter.diagnosis.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.diagnosis.modifierExtension", + "path": "Encounter.diagnosis.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Encounter.diagnosis.condition", + "path": "Encounter.diagnosis.condition", + "short": "The diagnosis or procedure relevant to the encounter", + "definition": "Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.", + "comment": "For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis).", + "alias": [ + "Admission diagnosis", + "discharge diagnosis", + "indication" + ], + "min": 1, + "max": "1", + "base": { + "path": "Encounter.diagnosis.condition", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Condition|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.reasonReference" + }, + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "v2", + "map": "Resources that would commonly referenced at Encounter.indication would be Condition and/or Procedure. These most closely align with DG1/PRB and PR1 respectively." + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=RSON].target" + } + ] + }, + { + "id": "Encounter.diagnosis.use", + "path": "Encounter.diagnosis.use", + "short": "Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …)", + "definition": "Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …).", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.diagnosis.use", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "DiagnosisRole" + } + ], + "strength": "preferred", + "description": "The type of diagnosis this condition represents.", + "valueSet": "http://hl7.org/fhir/ValueSet/diagnosis-role|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.diagnosis.rank", + "path": "Encounter.diagnosis.rank", + "short": "Ranking of the diagnosis (for each role type)", + "definition": "Ranking of the diagnosis (for each role type).", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.diagnosis.rank", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "positiveInt" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=RSON].priority" + } + ] + }, + { + "id": "Encounter.account", + "path": "Encounter.account", + "short": "The set of accounts that may be used for billing for this Encounter", + "definition": "The set of accounts that may be used for billing for this Encounter.", + "comment": "The billing system may choose to allocate billable items associated with the Encounter to different referenced Accounts based on internal business rules.", + "min": 0, + "max": "*", + "base": { + "path": "Encounter.account", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Account|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".pertains.A_Account" + } + ] + }, + { + "id": "Encounter.hospitalization", + "path": "Encounter.hospitalization", + "short": "Details about the admission to a healthcare service", + "definition": "Details about the admission to a healthcare service.", + "comment": "An Encounter may cover more than just the inpatient stay. Contexts such as outpatients, community clinics, and aged care facilities are also included.\r\rThe duration recorded in the period of this encounter covers the entire scope of this hospitalization record.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.hospitalization", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COMP].target[classCode=ENC, moodCode=EVN]" + } + ] + }, + { + "id": "Encounter.hospitalization.id", + "path": "Encounter.hospitalization.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.hospitalization.extension", + "path": "Encounter.hospitalization.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.hospitalization.modifierExtension", + "path": "Encounter.hospitalization.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Encounter.hospitalization.preAdmissionIdentifier", + "path": "Encounter.hospitalization.preAdmissionIdentifier", + "short": "Pre-admission identifier", + "definition": "Pre-admission identifier.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.hospitalization.preAdmissionIdentifier", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PV1-5" + }, + { + "identity": "rim", + "map": ".id" + } + ] + }, + { + "id": "Encounter.hospitalization.origin", + "path": "Encounter.hospitalization.origin", + "short": "The location/organization from which the patient came before admission", + "definition": "The location/organization from which the patient came before admission.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.hospitalization.origin", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Location|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".participation[typeCode=ORG].role" + } + ] + }, + { + "id": "Encounter.hospitalization.admitSource", + "path": "Encounter.hospitalization.admitSource", + "short": "From where patient was admitted (physician referral, transfer)", + "definition": "From where patient was admitted (physician referral, transfer).", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.hospitalization.admitSource", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "AdmitSource" + } + ], + "strength": "preferred", + "description": "From where the patient was admitted.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-admit-source|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "PV1-14" + }, + { + "identity": "rim", + "map": ".admissionReferralSourceCode" + } + ] + }, + { + "id": "Encounter.hospitalization.reAdmission", + "path": "Encounter.hospitalization.reAdmission", + "short": "The type of hospital re-admission that has occurred (if any). If the value is absent, then this is not identified as a readmission", + "definition": "Whether this hospitalization is a readmission and why if known.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.hospitalization.reAdmission", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ReAdmissionType" + } + ], + "strength": "example", + "description": "The reason for re-admission of this hospitalization encounter.", + "valueSet": "http://terminology.hl7.org/ValueSet/v2-0092|3.0.0" + }, + "mapping": [ + { + "identity": "v2", + "map": "PV1-13" + }, + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.hospitalization.dietPreference", + "path": "Encounter.hospitalization.dietPreference", + "short": "Diet preferences reported by the patient", + "definition": "Diet preferences reported by the patient.", + "comment": "For example, a patient may request both a dairy-free and nut-free diet preference (not mutually exclusive).", + "requirements": "Used to track patient's diet restrictions and/or preference. For a complete description of the nutrition needs of a patient during their stay, one should use the nutritionOrder resource which links to Encounter.", + "min": 0, + "max": "*", + "base": { + "path": "Encounter.hospitalization.dietPreference", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "PatientDiet" + } + ], + "strength": "example", + "description": "Medical, cultural or ethical food preferences to help with catering requirements.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-diet|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "PV1-38" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=EVN, code=\"diet\"]" + } + ] + }, + { + "id": "Encounter.hospitalization.specialCourtesy", + "path": "Encounter.hospitalization.specialCourtesy", + "short": "Special courtesies (VIP, board member)", + "definition": "Special courtesies (VIP, board member).", + "min": 0, + "max": "*", + "base": { + "path": "Encounter.hospitalization.specialCourtesy", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Courtesies" + } + ], + "strength": "preferred", + "description": "Special courtesies.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-special-courtesy|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "PV1-16" + }, + { + "identity": "rim", + "map": ".specialCourtesiesCode" + } + ] + }, + { + "id": "Encounter.hospitalization.specialArrangement", + "path": "Encounter.hospitalization.specialArrangement", + "short": "Wheelchair, translator, stretcher, etc.", + "definition": "Any special requests that have been made for this hospitalization encounter, such as the provision of specific equipment or other things.", + "min": 0, + "max": "*", + "base": { + "path": "Encounter.hospitalization.specialArrangement", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Arrangements" + } + ], + "strength": "preferred", + "description": "Special arrangements.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-special-arrangements|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "PV1-15 / OBR-30 / OBR-43" + }, + { + "identity": "rim", + "map": ".specialArrangementCode" + } + ] + }, + { + "id": "Encounter.hospitalization.destination", + "path": "Encounter.hospitalization.destination", + "short": "Location/organization to which the patient is discharged", + "definition": "Location/organization to which the patient is discharged.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.hospitalization.destination", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Location|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PV1-37" + }, + { + "identity": "rim", + "map": ".participation[typeCode=DST]" + } + ] + }, + { + "id": "Encounter.hospitalization.dischargeDisposition", + "path": "Encounter.hospitalization.dischargeDisposition", + "short": "Category or kind of location after discharge", + "definition": "Category or kind of location after discharge.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.hospitalization.dischargeDisposition", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "DischargeDisp" + } + ], + "strength": "example", + "description": "Discharge Disposition.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "PV1-36" + }, + { + "identity": "rim", + "map": ".dischargeDispositionCode" + } + ] + }, + { + "id": "Encounter.location", + "path": "Encounter.location", + "short": "Encounter location", + "definition": "Location where the encouter took place", + "comment": "Virtual encounters can be recorded in the Encounter by specifying a location reference to a location of type \"kind\" such as \"client's home\" and an encounter.class = \"virtual\".", + "min": 1, + "max": "1", + "base": { + "path": "Encounter.location", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".participation[typeCode=LOC]" + } + ] + }, + { + "id": "Encounter.location.id", + "path": "Encounter.location.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.location.extension", + "path": "Encounter.location.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Encounter.location.modifierExtension", + "path": "Encounter.location.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Encounter.location.location", + "path": "Encounter.location.location", + "short": "Health facility", + "definition": "Location e.g KSII | Mbabane PHU", + "min": 1, + "max": "1", + "base": { + "path": "Encounter.location.location", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation|0.1.0" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.location" + }, + { + "identity": "w5", + "map": "FiveWs.where[x]" + }, + { + "identity": "v2", + "map": "PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43" + }, + { + "identity": "rim", + "map": ".role" + } + ] + }, + { + "id": "Encounter.location.status", + "path": "Encounter.location.status", + "short": "planned | active | reserved | completed", + "definition": "The status of the participants' presence at the specified location during the period specified. If the participant is no longer at the location, then the period will have an end date/time.", + "comment": "When the patient is no longer active at a location, then the period end date is entered, and the status may be changed to completed.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.location.status", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "EncounterLocationStatus" + } + ], + "strength": "required", + "description": "The status of the location.", + "valueSet": "http://hl7.org/fhir/ValueSet/encounter-location-status|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": ".role.statusCode" + } + ] + }, + { + "id": "Encounter.location.physicalType", + "path": "Encounter.location.physicalType", + "short": "The physical type of the location (usually the level in the location hierachy - bed room ward etc.)", + "definition": "This will be used to specify the required levels (bed/ward/room/etc.) desired to be recorded to simplify either messaging or query.", + "comment": "This information is de-normalized from the Location resource to support the easier understanding of the encounter resource and processing in messaging or query.\n\nThere may be many levels in the hierachy, and this may only pic specific levels that are required for a specific usage scenario.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.location.physicalType", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "PhysicalType" + } + ], + "strength": "example", + "description": "Physical form of the location.", + "valueSet": "http://hl7.org/fhir/ValueSet/location-physical-type|4.0.1" + } + }, + { + "id": "Encounter.location.period", + "path": "Encounter.location.period", + "short": "Time period during which the patient was present at the location", + "definition": "Time period during which the patient was present at the location.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.location.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".time" + } + ] + }, + { + "id": "Encounter.serviceProvider", + "path": "Encounter.serviceProvider", + "short": "The organization (facility) responsible for this encounter", + "definition": "The organization that is primarily responsible for this Encounter's services. This MAY be the same as the organization on the Patient record, however it could be different, such as if the actor performing the services was from an external organization (which may be billed seperately) for an external consultation. Refer to the example bundle showing an abbreviated set of Encounters for a colonoscopy.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.serviceProvider", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.actor" + }, + { + "identity": "v2", + "map": "PL.6 & PL.1" + }, + { + "identity": "rim", + "map": ".particiaption[typeCode=PFM].role" + } + ] + }, + { + "id": "Encounter.partOf", + "path": "Encounter.partOf", + "short": "Another Encounter this encounter is part of", + "definition": "Another Encounter of which this encounter is a part of (administratively or in time).", + "comment": "This is also used for associating a child's encounter back to the mother's encounter.\r\rRefer to the Notes section in the Patient resource for further details.", + "min": 0, + "max": "1", + "base": { + "path": "Encounter.partOf", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy", + "valueBoolean": true + } + ], + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.partOf" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=COMP].source[classCode=COMP, moodCode=EVN]" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Encounter", + "path": "Encounter", + "short": "Eswatini Health Information Exchange Encounter" + }, + { + "id": "Encounter.id", + "path": "Encounter.id", + "min": 1 + }, + { + "id": "Encounter.class", + "path": "Encounter.class", + "short": "Department in which the encounter took place", + "mustSupport": true, + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEncounterClassificationVS|0.1.0" + } + }, + { + "id": "Encounter.subject", + "path": "Encounter.subject", + "short": "Patient associated with the encounter", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient|0.1.0" + ] + } + ] + }, + { + "id": "Encounter.participant", + "path": "Encounter.participant", + "min": 1, + "max": "1", + "mustSupport": true + }, + { + "id": "Encounter.participant.individual", + "path": "Encounter.participant.individual", + "short": "Clinicians who participated in the encounter", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner|0.1.0" + ] + } + ] + }, + { + "id": "Encounter.period", + "path": "Encounter.period", + "min": 1 + }, + { + "id": "Encounter.period.start", + "path": "Encounter.period.start", + "short": "Start date and time of the encounter", + "min": 1 + }, + { + "id": "Encounter.location", + "path": "Encounter.location", + "short": "Encounter location", + "definition": "Location where the encouter took place", + "min": 1, + "max": "1", + "mustSupport": true + }, + { + "id": "Encounter.location.location", + "path": "Encounter.location.location", + "short": "Health facility", + "definition": "Location e.g KSII | Mbabane PHU", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation|0.1.0" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzEpisodeOfCare.json b/packages/fhir-eswatini/spec/StructureDefinition-SzEpisodeOfCare.json new file mode 100644 index 0000000000..e6381e27ac --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzEpisodeOfCare.json @@ -0,0 +1,1429 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzEpisodeOfCare", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzEpisodeOfCare

\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" EpisodeOfCare 0..*EpisodeOfCareEswatini Episode of Care
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" type S1..1CodeableConceptEpisode of care classification
Binding: Eswatini Episode of Care Valueset (preferred)
\".\"\".\"\".\" period 1..1PeriodStart and end datest of the Episode of care

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEpisodeOfCare", + "version": "0.1.0", + "name": "EswatiniEncounter", + "title": "Eswatini Episode of Care", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Eswatini Episode of Care", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "EpisodeOfCare", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "EpisodeOfCare", + "path": "EpisodeOfCare", + "short": "Eswatini Episode of Care", + "definition": "An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time.", + "alias": [ + "Case Program Problem" + ], + "min": 0, + "max": "*", + "base": { + "path": "EpisodeOfCare", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Event" + }, + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "EpisodeOfCare.id", + "path": "EpisodeOfCare.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "EpisodeOfCare.meta", + "path": "EpisodeOfCare.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "EpisodeOfCare.implicitRules", + "path": "EpisodeOfCare.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "EpisodeOfCare.language", + "path": "EpisodeOfCare.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "EpisodeOfCare.text", + "path": "EpisodeOfCare.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "EpisodeOfCare.contained", + "path": "EpisodeOfCare.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "EpisodeOfCare.extension", + "path": "EpisodeOfCare.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "EpisodeOfCare.modifierExtension", + "path": "EpisodeOfCare.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "EpisodeOfCare.identifier", + "path": "EpisodeOfCare.identifier", + "short": "Business Identifier(s) relevant for this EpisodeOfCare", + "definition": "The EpisodeOfCare may be known by different identifiers for different contexts of use, such as when an external agency is tracking the Episode for funding purposes.", + "min": 0, + "max": "*", + "base": { + "path": "EpisodeOfCare.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.identifier" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + } + ] + }, + { + "id": "EpisodeOfCare.status", + "path": "EpisodeOfCare.status", + "short": "planned | waitlist | active | onhold | finished | cancelled | entered-in-error", + "definition": "planned | waitlist | active | onhold | finished | cancelled.", + "comment": "This element is labeled as a modifier because the status contains codes that mark the episode as not currently valid.", + "min": 1, + "max": "1", + "base": { + "path": "EpisodeOfCare.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "EpisodeOfCareStatus" + } + ], + "strength": "required", + "description": "The status of the episode of care.", + "valueSet": "http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + } + ] + }, + { + "id": "EpisodeOfCare.statusHistory", + "path": "EpisodeOfCare.statusHistory", + "short": "Past list of status codes (the current status may be included to cover the start date of the status)", + "definition": "The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource).", + "min": 0, + "max": "*", + "base": { + "path": "EpisodeOfCare.statusHistory", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "EpisodeOfCare.statusHistory.id", + "path": "EpisodeOfCare.statusHistory.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "EpisodeOfCare.statusHistory.extension", + "path": "EpisodeOfCare.statusHistory.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "EpisodeOfCare.statusHistory.modifierExtension", + "path": "EpisodeOfCare.statusHistory.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "EpisodeOfCare.statusHistory.status", + "path": "EpisodeOfCare.statusHistory.status", + "short": "planned | waitlist | active | onhold | finished | cancelled | entered-in-error", + "definition": "planned | waitlist | active | onhold | finished | cancelled.", + "min": 1, + "max": "1", + "base": { + "path": "EpisodeOfCare.statusHistory.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "EpisodeOfCareStatus" + } + ], + "strength": "required", + "description": "The status of the episode of care.", + "valueSet": "http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1" + } + }, + { + "id": "EpisodeOfCare.statusHistory.period", + "path": "EpisodeOfCare.statusHistory.period", + "short": "Duration the EpisodeOfCare was in the specified status", + "definition": "The period during this EpisodeOfCare that the specific status applied.", + "min": 1, + "max": "1", + "base": { + "path": "EpisodeOfCare.statusHistory.period", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "EpisodeOfCare.type", + "path": "EpisodeOfCare.type", + "short": "Episode of care classification", + "definition": "A classification of the type of episode of care e.g ART | TPT | Family Planning | ANC etc", + "comment": "The type can be very important in processing as this could be used in determining if the EpisodeOfCare is relevant to specific government reporting, or other types of classifications.", + "min": 1, + "max": "1", + "base": { + "path": "EpisodeOfCare.type", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "binding": { + "strength": "preferred", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEpisodeOfCareTypeVS" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.code" + }, + { + "identity": "w5", + "map": "FiveWs.class" + } + ] + }, + { + "id": "EpisodeOfCare.diagnosis", + "path": "EpisodeOfCare.diagnosis", + "short": "The list of diagnosis relevant to this episode of care", + "definition": "The list of diagnosis relevant to this episode of care.", + "min": 0, + "max": "*", + "base": { + "path": "EpisodeOfCare.diagnosis", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "EpisodeOfCare.diagnosis.id", + "path": "EpisodeOfCare.diagnosis.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "EpisodeOfCare.diagnosis.extension", + "path": "EpisodeOfCare.diagnosis.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "EpisodeOfCare.diagnosis.modifierExtension", + "path": "EpisodeOfCare.diagnosis.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "EpisodeOfCare.diagnosis.condition", + "path": "EpisodeOfCare.diagnosis.condition", + "short": "Conditions/problems/diagnoses this episode of care is for", + "definition": "A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for.", + "min": 1, + "max": "1", + "base": { + "path": "EpisodeOfCare.diagnosis.condition", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Condition|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.reasonReference" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + } + ] + }, + { + "id": "EpisodeOfCare.diagnosis.role", + "path": "EpisodeOfCare.diagnosis.role", + "short": "Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …)", + "definition": "Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …).", + "min": 0, + "max": "1", + "base": { + "path": "EpisodeOfCare.diagnosis.role", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "DiagnosisRole" + } + ], + "strength": "preferred", + "description": "The type of diagnosis this condition represents.", + "valueSet": "http://hl7.org/fhir/ValueSet/diagnosis-role|4.0.1" + } + }, + { + "id": "EpisodeOfCare.diagnosis.rank", + "path": "EpisodeOfCare.diagnosis.rank", + "short": "Ranking of the diagnosis (for each role type)", + "definition": "Ranking of the diagnosis (for each role type).", + "min": 0, + "max": "1", + "base": { + "path": "EpisodeOfCare.diagnosis.rank", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "positiveInt" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "EpisodeOfCare.patient", + "path": "EpisodeOfCare.patient", + "short": "The patient who is the focus of this episode of care", + "definition": "The patient who is the focus of this episode of care.", + "min": 1, + "max": "1", + "base": { + "path": "EpisodeOfCare.patient", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "EpisodeOfCare.managingOrganization", + "path": "EpisodeOfCare.managingOrganization", + "short": "Organization that assumes care", + "definition": "The organization that has assumed the specific responsibilities for the specified duration.", + "min": 0, + "max": "1", + "base": { + "path": "EpisodeOfCare.managingOrganization", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.actor" + } + ] + }, + { + "id": "EpisodeOfCare.period", + "path": "EpisodeOfCare.period", + "short": "Start and end datest of the Episode of care", + "definition": "Time period at which the facility was responsible for the particular episode of care", + "min": 1, + "max": "1", + "base": { + "path": "EpisodeOfCare.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.init" + } + ] + }, + { + "id": "EpisodeOfCare.referralRequest", + "path": "EpisodeOfCare.referralRequest", + "short": "Originating Referral Request(s)", + "definition": "Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals.", + "min": 0, + "max": "*", + "base": { + "path": "EpisodeOfCare.referralRequest", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.basedOn" + } + ] + }, + { + "id": "EpisodeOfCare.careManager", + "path": "EpisodeOfCare.careManager", + "short": "Care manager/care coordinator for the patient", + "definition": "The practitioner that is the care manager/care coordinator for this patient.", + "min": 0, + "max": "1", + "base": { + "path": "EpisodeOfCare.careManager", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.actor" + } + ] + }, + { + "id": "EpisodeOfCare.team", + "path": "EpisodeOfCare.team", + "short": "Other practitioners facilitating this episode of care", + "definition": "The list of practitioners that may be facilitating this episode of care for specific purposes.", + "alias": [ + "CareTeam" + ], + "min": 0, + "max": "*", + "base": { + "path": "EpisodeOfCare.team", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.actor" + } + ] + }, + { + "id": "EpisodeOfCare.account", + "path": "EpisodeOfCare.account", + "short": "The set of accounts that may be used for billing for this EpisodeOfCare", + "definition": "The set of accounts that may be used for billing for this EpisodeOfCare.", + "comment": "The billing system may choose to allocate billable items associated with the EpisodeOfCare to different referenced Accounts based on internal business rules.", + "min": 0, + "max": "*", + "base": { + "path": "EpisodeOfCare.account", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Account|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + } + ] + }, + "differential": { + "element": [ + { + "id": "EpisodeOfCare", + "path": "EpisodeOfCare", + "short": "Eswatini Episode of Care" + }, + { + "id": "EpisodeOfCare.id", + "path": "EpisodeOfCare.id", + "min": 1 + }, + { + "id": "EpisodeOfCare.type", + "path": "EpisodeOfCare.type", + "short": "Episode of care classification", + "definition": "A classification of the type of episode of care e.g ART | TPT | Family Planning | ANC etc", + "min": 1, + "max": "1", + "mustSupport": true, + "binding": { + "strength": "preferred", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEpisodeOfCareTypeVS" + } + }, + { + "id": "EpisodeOfCare.period", + "path": "EpisodeOfCare.period", + "short": "Start and end datest of the Episode of care", + "definition": "Time period at which the facility was responsible for the particular episode of care", + "min": 1 + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzInkhundlaExtension.json b/packages/fhir-eswatini/spec/StructureDefinition-SzInkhundlaExtension.json new file mode 100644 index 0000000000..89356f2391 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzInkhundlaExtension.json @@ -0,0 +1,288 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzInkhundlaExtension", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzInkhundlaExtension

\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Extension 0..*ExtensionExtention: Eswatini Inkhundla
\".\"\".\"\".\" extension 0..0Extension
\".\"\".\"\".\" url 1..1uri"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzInkhundlaExtension"
\".\"\".\"\".\" value[x] 0..1CodeableConceptValue of extension
Binding: Value Set: Tinkhundla (required)

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzInkhundlaExtension", + "version": "0.1.0", + "name": "SzInkhundlaExtension", + "title": "Extention: Eswatini Inkhundla", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Extention for Eswatini Tinkhundla", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Eswatini Inkhundla", + "definition": "Extention for Eswatini Tinkhundla", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzInkhundlaExtension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTinkhundlaVS|0.1.0" + }, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Eswatini Inkhundla", + "definition": "Extention for Eswatini Tinkhundla" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzInkhundlaExtension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "type": [ + { + "code": "CodeableConcept" + } + ], + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTinkhundlaVS|0.1.0" + } + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzLabRequest.json b/packages/fhir-eswatini/spec/StructureDefinition-SzLabRequest.json new file mode 100644 index 0000000000..2fd45b8118 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzLabRequest.json @@ -0,0 +1,2893 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzLabRequest", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzLabRequest

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" ServiceRequest 0..*ServiceRequestA request for a service to be performed
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" intent 1..1codeproposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
Required Pattern: order
\".\"\".\"\".\" category 1..1CodeableConceptType of service request
\".\"\".\"\".\"\".\" coding 1..1CodingCode defined by a terminology system
\".\"\".\"\".\"\".\"\".\" system 0..1uriIdentity of the terminology system
Required Pattern: http://snomed.info/sct
\".\"\".\"\".\"\".\"\".\" code 0..1codeSymbol in syntax defined by the system
Required Pattern: 108252007
\".\"\".\"\".\"\".\"\".\" display 0..1stringRepresentation defined by the system
Required Pattern: Laboratory procedure
\".\"\".\"\".\" code 1..1CodeableConceptLocal test code
Binding: Value Set: Local Test Codes (preferred)
\".\"\".\"\".\" subject 1..1Reference(Eswatini Patient Profile)Patient's information
\".\"\".\"\".\" encounter 1..1Reference(Eswatini Encounter Profile)Encounter information
\".\"\".\"\".\" specimen S1..1Reference(Eswatini Specimen Profile)Lab test specimen

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabRequest", + "version": "0.1.0", + "name": "EswatiniLabTest", + "title": "Eswatini Lab Test Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Eswatini Lab Test Profile", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "quick", + "uri": "http://siframework.org/cqf", + "name": "Quality Improvement and Clinical Knowledge (QUICK)" + } + ], + "kind": "resource", + "abstract": false, + "type": "ServiceRequest", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "ServiceRequest", + "path": "ServiceRequest", + "short": "A request for a service to be performed", + "definition": "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed.", + "alias": [ + "diagnostic request", + "referral", + "referral request", + "transfer of care request" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "prr-1", + "severity": "error", + "human": "orderDetail SHALL only be present if code is present", + "expression": "orderDetail.empty() or code.exists()", + "xpath": "exists(f:code) or not(exists(f:orderDetail))", + "source": "http://hl7.org/fhir/StructureDefinition/ServiceRequest" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Request" + }, + { + "identity": "v2", + "map": "ORC" + }, + { + "identity": "rim", + "map": "Act[moodCode<=INT]" + } + ] + }, + { + "id": "ServiceRequest.id", + "path": "ServiceRequest.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "ServiceRequest.meta", + "path": "ServiceRequest.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "ServiceRequest.implicitRules", + "path": "ServiceRequest.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "ServiceRequest.language", + "path": "ServiceRequest.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "ServiceRequest.text", + "path": "ServiceRequest.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "ServiceRequest.contained", + "path": "ServiceRequest.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "ServiceRequest.extension", + "path": "ServiceRequest.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "ServiceRequest.modifierExtension", + "path": "ServiceRequest.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "ServiceRequest.identifier", + "path": "ServiceRequest.identifier", + "short": "Identifiers assigned to this order", + "definition": "Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.", + "comment": "The identifier.type element is used to distinguish between the identifiers assigned by the orderer (known as the 'Placer' in HL7 v2) and the producer of the observations in response to the order (known as the 'Filler' in HL7 v2). For further discussion and examples see the resource notes section below.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.identifier" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "ORC.2, ORC.3, RF1-6 / RF1-11," + }, + { + "identity": "rim", + "map": ".identifier" + }, + { + "identity": "quick", + "map": "ClinicalStatement.identifier" + } + ] + }, + { + "id": "ServiceRequest.instantiatesCanonical", + "path": "ServiceRequest.instantiatesCanonical", + "short": "Instantiates FHIR protocol or definition", + "definition": "The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.", + "comment": "Note: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.instantiatesCanonical", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "canonical", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/ActivityDefinition|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PlanDefinition|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.instantiatesCanonical" + }, + { + "identity": "v2", + "map": "Varies by domain" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=DEFN].target" + } + ] + }, + { + "id": "ServiceRequest.instantiatesUri", + "path": "ServiceRequest.instantiatesUri", + "short": "Instantiates external protocol or definition", + "definition": "The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.", + "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.instantiatesUri", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.instantiatesUri" + }, + { + "identity": "v2", + "map": "Varies by domain" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=DEFN].target" + } + ] + }, + { + "id": "ServiceRequest.basedOn", + "path": "ServiceRequest.basedOn", + "short": "What request fulfills", + "definition": "Plan/proposal/order fulfilled by this request.", + "alias": [ + "fulfills" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.basedOn", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.basedOn" + }, + { + "identity": "v2", + "map": "ORC.8 (plus others)" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=FLFS].target" + } + ] + }, + { + "id": "ServiceRequest.replaces", + "path": "ServiceRequest.replaces", + "short": "What request replaces", + "definition": "The request takes the place of the referenced completed or terminated request(s).", + "alias": [ + "supersedes", + "prior", + "renewed order" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.replaces", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.replaces" + }, + { + "identity": "v2", + "map": "Handled by message location of ORC (ORC.1=RO or RU)" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=RPLC].target" + } + ] + }, + { + "id": "ServiceRequest.requisition", + "path": "ServiceRequest.requisition", + "short": "Composite Request ID", + "definition": "A shared identifier common to all service requests that were authorized more or less simultaneously by a single author, representing the composite or group identifier.", + "comment": "Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.", + "requirements": "Some business processes need to know if multiple items were ordered as part of the same \"requisition\" for billing or other purposes.", + "alias": [ + "grouperId", + "groupIdentifier" + ], + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.requisition", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.groupIdentifier" + }, + { + "identity": "v2", + "map": "ORC.4" + }, + { + "identity": "rim", + "map": ".inboundRelationship(typeCode=COMP].source[moodCode=INT].identifier" + } + ] + }, + { + "id": "ServiceRequest.status", + "path": "ServiceRequest.status", + "short": "draft | active | on-hold | revoked | completed | entered-in-error | unknown", + "definition": "The status of the order.", + "comment": "The status is generally fully in the control of the requester - they determine whether the order is draft or active and, after it has been activated, competed, cancelled or suspended. States relating to the activities of the performer are reflected on either the corresponding event (see [Event Pattern](http://hl7.org/fhir/R4/event.html) for general discussion) or using the [Task](http://hl7.org/fhir/R4/task.html) resource.", + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestStatus" + } + ], + "strength": "required", + "description": "The status of a service order.", + "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "v2", + "map": "ORC.5,RF1-1" + }, + { + "identity": "rim", + "map": ".status" + }, + { + "identity": "quick", + "map": "Action.currentStatus" + } + ] + }, + { + "id": "ServiceRequest.intent", + "path": "ServiceRequest.intent", + "short": "proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option", + "definition": "Whether the request is a proposal, plan, an original order or a reflex order.", + "comment": "This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.", + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.intent", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "patternCode": "order", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestIntent" + } + ], + "strength": "required", + "description": "The kind of service request.", + "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.intent" + }, + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": ".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)" + } + ] + }, + { + "id": "ServiceRequest.category", + "path": "ServiceRequest.category", + "short": "Type of service request", + "definition": "Classification of the requested service", + "comment": "There may be multiple axis of categorization depending on the context or use case for retrieving or displaying the resource. The level of granularity is defined by the category concepts in the value set.", + "requirements": "Used for filtering what service request are retrieved and displayed.", + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.category", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestCategory" + } + ], + "strength": "example", + "description": "Classification of the requested service.", + "valueSet": "http://hl7.org/fhir/ValueSet/servicerequest-category|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "v2", + "map": "RF1-5" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"INT\"].code" + } + ] + }, + { + "id": "ServiceRequest.category.id", + "path": "ServiceRequest.category.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "ServiceRequest.category.extension", + "path": "ServiceRequest.category.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "ServiceRequest.category.coding", + "path": "ServiceRequest.category.coding", + "short": "Code defined by a terminology system", + "definition": "A reference to a code defined by a terminology system.", + "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.", + "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.", + "min": 1, + "max": "1", + "base": { + "path": "CodeableConcept.coding", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Coding" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.1-8, C*E.10-22" + }, + { + "identity": "rim", + "map": "union(., ./translation)" + }, + { + "identity": "orim", + "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" + } + ] + }, + { + "id": "ServiceRequest.category.coding.id", + "path": "ServiceRequest.category.coding.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "ServiceRequest.category.coding.extension", + "path": "ServiceRequest.category.coding.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "ServiceRequest.category.coding.system", + "path": "ServiceRequest.category.coding.system", + "short": "Identity of the terminology system", + "definition": "The identification of the code system that defines the meaning of the symbol in the code.", + "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.", + "requirements": "Need to be unambiguous about the source of the definition of the symbol.", + "min": 0, + "max": "1", + "base": { + "path": "Coding.system", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "patternUri": "http://snomed.info/sct", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.3" + }, + { + "identity": "rim", + "map": "./codeSystem" + }, + { + "identity": "orim", + "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" + } + ] + }, + { + "id": "ServiceRequest.category.coding.version", + "path": "ServiceRequest.category.coding.version", + "short": "Version of the system - if relevant", + "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.", + "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.", + "min": 0, + "max": "1", + "base": { + "path": "Coding.version", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.7" + }, + { + "identity": "rim", + "map": "./codeSystemVersion" + }, + { + "identity": "orim", + "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" + } + ] + }, + { + "id": "ServiceRequest.category.coding.code", + "path": "ServiceRequest.category.coding.code", + "short": "Symbol in syntax defined by the system", + "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).", + "requirements": "Need to refer to a particular code in the system.", + "min": 0, + "max": "1", + "base": { + "path": "Coding.code", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "patternCode": "108252007", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.1" + }, + { + "identity": "rim", + "map": "./code" + }, + { + "identity": "orim", + "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" + } + ] + }, + { + "id": "ServiceRequest.category.coding.display", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", + "valueBoolean": true + } + ], + "path": "ServiceRequest.category.coding.display", + "short": "Representation defined by the system", + "definition": "A representation of the meaning of the code in the system, following the rules of the system.", + "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.", + "min": 0, + "max": "1", + "base": { + "path": "Coding.display", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "patternString": "Laboratory procedure", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.2 - but note this is not well followed" + }, + { + "identity": "rim", + "map": "CV.displayName" + }, + { + "identity": "orim", + "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" + } + ] + }, + { + "id": "ServiceRequest.category.coding.userSelected", + "path": "ServiceRequest.category.coding.userSelected", + "short": "If this coding was chosen directly by the user", + "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).", + "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.", + "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.", + "min": 0, + "max": "1", + "base": { + "path": "Coding.userSelected", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "Sometimes implied by being first" + }, + { + "identity": "rim", + "map": "CD.codingRationale" + }, + { + "identity": "orim", + "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]" + } + ] + }, + { + "id": "ServiceRequest.category.text", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", + "valueBoolean": true + } + ], + "path": "ServiceRequest.category.text", + "short": "Plain text representation of the concept", + "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", + "comment": "Very often the text is the same as a displayName of one of the codings.", + "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", + "min": 0, + "max": "1", + "base": { + "path": "CodeableConcept.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.9. But note many systems use C*E.2 for this" + }, + { + "identity": "rim", + "map": "./originalText[mediaType/code=\"text/plain\"]/data" + }, + { + "identity": "orim", + "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" + } + ] + }, + { + "id": "ServiceRequest.priority", + "path": "ServiceRequest.priority", + "short": "routine | urgent | asap | stat", + "definition": "Indicates how quickly the ServiceRequest should be addressed with respect to other requests.", + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.priority", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "meaningWhenMissing": "If missing, this task should be performed with normal priority", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestPriority" + } + ], + "strength": "required", + "description": "Identifies the level of importance to be assigned to actioning the request.", + "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.priority" + }, + { + "identity": "w5", + "map": "FiveWs.grade" + }, + { + "identity": "v2", + "map": "TQ1.9, RF1-2" + }, + { + "identity": "rim", + "map": ".priorityCode" + } + ] + }, + { + "id": "ServiceRequest.doNotPerform", + "path": "ServiceRequest.doNotPerform", + "short": "True if service/procedure should not be performed", + "definition": "Set this to true if the record is saying that the service/procedure should NOT be performed.", + "comment": "In general, only the code and timeframe will be present, though occasional additional qualifiers such as body site or even performer could be included to narrow the scope of the prohibition. If the ServiceRequest.code and ServiceRequest.doNotPerform both contain negation, that will reinforce prohibition and should not have a double negative interpretation.", + "requirements": "Used for do not ambulate, do not elevate head of bed, do not flush NG tube, do not take blood pressure on a certain arm, etc.", + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.doNotPerform", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "meaningWhenMissing": "If missing, the request is a positive request e.g. \"do perform\"", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "If true this element negates the specified action. For Example, instead of a request for a procedure, it is a request for the procedure to not occur.", + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.doNotPerform" + }, + { + "identity": "rim", + "map": ".actionNegationInd" + } + ] + }, + { + "id": "ServiceRequest.code", + "path": "ServiceRequest.code", + "short": "Local test code", + "definition": "A code that identifies a particular service (i.e., procedure, diagnostic investigation, or panel of investigations) that have been requested.", + "comment": "Many laboratory and radiology procedure codes embed the specimen/organ system in the test order name, for example, serum or serum/plasma glucose, or a chest x-ray. The specimen might not be recorded separately from the test code.", + "alias": [ + "service requested" + ], + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.code", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "strength": "preferred", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestCodeVS" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.code" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "v2", + "map": "PR1-3 / OBR-4 (varies by domain)" + }, + { + "identity": "rim", + "map": ".code" + }, + { + "identity": "quick", + "map": "Procedure.procedureCode" + } + ] + }, + { + "id": "ServiceRequest.orderDetail", + "path": "ServiceRequest.orderDetail", + "short": "Additional order information", + "definition": "Additional details and instructions about the how the services are to be delivered. For example, and order for a urinary catheter may have an order detail for an external or indwelling catheter, or an order for a bandage may require additional instructions specifying how the bandage should be applied.", + "comment": "For information from the medical record intended to support the delivery of the requested services, use the `supportingInformation` element.", + "alias": [ + "detailed instructions" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.orderDetail", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "prr-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "OrderDetail" + } + ], + "strength": "example", + "description": "Codified order entry details which are based on order context.", + "valueSet": "http://hl7.org/fhir/ValueSet/servicerequest-orderdetail|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "NTE" + }, + { + "identity": "rim", + "map": ".code" + }, + { + "identity": "quick", + "map": "Procedure.procedureCode" + } + ] + }, + { + "id": "ServiceRequest.quantity[x]", + "path": "ServiceRequest.quantity[x]", + "short": "Service amount", + "definition": "An amount of service being requested which can be a quantity ( for example $1,500 home modification), a ratio ( for example, 20 half day visits per month), or a range (2.0 to 1.8 Gy per fraction).", + "requirements": "When ordering a service the number of service items may need to be specified separately from the the service item.", + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.quantity[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity" + }, + { + "code": "Ratio" + }, + { + "code": "Range" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "NTE" + }, + { + "identity": "rim", + "map": ".quantity" + } + ] + }, + { + "id": "ServiceRequest.subject", + "path": "ServiceRequest.subject", + "short": "Patient's information", + "definition": "Patient relevant to the requested lab order", + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.subject", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "PID" + }, + { + "identity": "rim", + "map": ".participation[typeCode=SBJ].role" + }, + { + "identity": "quick", + "map": "ClinicalStatement.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "ServiceRequest.encounter", + "path": "ServiceRequest.encounter", + "short": "Encounter information", + "definition": "Encounter relevant to the requested lab order", + "alias": [ + "context" + ], + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.encounter", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.encounter" + }, + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "v2", + "map": "PV1" + }, + { + "identity": "rim", + "map": ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]" + }, + { + "identity": "quick", + "map": "ClinicalStatement.encounter" + } + ] + }, + { + "id": "ServiceRequest.occurrence[x]", + "path": "ServiceRequest.occurrence[x]", + "short": "When service should occur", + "definition": "The date/time at which the requested service should occur.", + "alias": [ + "schedule" + ], + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.occurrence[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + }, + { + "code": "Period" + }, + { + "code": "Timing" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.planned" + }, + { + "identity": "v2", + "map": "TQ1/TQ2, OBR-7/OBR-8" + }, + { + "identity": "rim", + "map": ".effectiveTime" + }, + { + "identity": "quick", + "map": "Procedure.procedureSchedule" + } + ] + }, + { + "id": "ServiceRequest.asNeeded[x]", + "path": "ServiceRequest.asNeeded[x]", + "short": "Preconditions for service", + "definition": "If a CodeableConcept is present, it indicates the pre-condition for performing the service. For example \"pain\", \"on flare-up\", etc.", + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.asNeeded[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + }, + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ProcedureAsNeededReason" + } + ], + "strength": "example", + "description": "A coded concept identifying the pre-condition that should hold prior to performing a procedure. For example \"pain\", \"on flare-up\", etc.", + "valueSet": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "boolean: precondition.negationInd (inversed - so negationInd = true means asNeeded=false CodeableConcept: precondition.observationEventCriterion[code=\"Assertion\"].value" + }, + { + "identity": "quick", + "map": "Proposal.prnReason.reason" + } + ] + }, + { + "id": "ServiceRequest.authoredOn", + "path": "ServiceRequest.authoredOn", + "short": "Date request signed", + "definition": "When the request transitioned to being actionable.", + "alias": [ + "orderedOn" + ], + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.authoredOn", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.authoredOn" + }, + { + "identity": "w5", + "map": "FiveWs.recorded" + }, + { + "identity": "v2", + "map": "ORC.9, RF1-7 / RF1-9" + }, + { + "identity": "rim", + "map": ".participation[typeCode=AUT].time" + }, + { + "identity": "quick", + "map": "Proposal.proposedAtTime" + } + ] + }, + { + "id": "ServiceRequest.requester", + "path": "ServiceRequest.requester", + "short": "Who/what is requesting service", + "definition": "The individual who initiated the request and has responsibility for its activation.", + "comment": "This not the dispatcher, but rather who is the authorizer. This element is not intended to handle delegation which would generally be managed through the Provenance resource.", + "alias": [ + "author", + "orderer" + ], + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.requester", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Device|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.requester" + }, + { + "identity": "w5", + "map": "FiveWs.author" + }, + { + "identity": "v2", + "map": "ORC.12, PRT" + }, + { + "identity": "rim", + "map": ".participation[typeCode=AUT].role" + }, + { + "identity": "quick", + "map": "ClinicalStatement.statementAuthor" + } + ] + }, + { + "id": "ServiceRequest.performerType", + "path": "ServiceRequest.performerType", + "short": "Performer role", + "definition": "Desired type of performer for doing the requested service.", + "comment": "This is a role, not a participation type. In other words, does not describe the task but describes the capacity. For example, “compounding pharmacy”, “psychiatrist” or “internal referral”.", + "alias": [ + "specialty" + ], + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.performerType", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestParticipantRole" + } + ], + "strength": "example", + "description": "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.", + "valueSet": "http://hl7.org/fhir/ValueSet/participant-role|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.performerType" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "PRT, RF!-3" + }, + { + "identity": "rim", + "map": ".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code" + } + ] + }, + { + "id": "ServiceRequest.performer", + "path": "ServiceRequest.performer", + "short": "Requested performer", + "definition": "The desired performer for doing the requested service. For example, the surgeon, dermatopathologist, endoscopist, etc.", + "comment": "If multiple performers are present, it is interpreted as a list of *alternative* performers without any preference regardless of order. If order of preference is needed use the [request-performerOrder extension](http://hl7.org/fhir/R4/extension-request-performerorder.html). Use CareTeam to represent a group of performers (for example, Practitioner A *and* Practitioner B).", + "alias": [ + "request recipient" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.performer", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1", + "http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1", + "http://hl7.org/fhir/StructureDefinition/HealthcareService|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Device|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.performer" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "PRT, Practitioner: PRD-2/PRD-7 where PRD-3 = RT; Organization: PRD-10 where PRD-3 = RT" + }, + { + "identity": "rim", + "map": ".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" + } + ] + }, + { + "id": "ServiceRequest.locationCode", + "path": "ServiceRequest.locationCode", + "short": "Requested location", + "definition": "The preferred location(s) where the procedure should actually happen in coded or free text form. E.g. at home or nursing day care center.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.locationCode", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestLocation" + } + ], + "strength": "example", + "description": "A location type where services are delivered.", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "rim", + "map": ".participation[typeCode=LOC].role[scoper.determinerCode=KIND].code" + } + ] + }, + { + "id": "ServiceRequest.locationReference", + "path": "ServiceRequest.locationReference", + "short": "Requested location", + "definition": "A reference to the the preferred location(s) where the procedure should actually happen. E.g. at home or nursing day care center.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.locationReference", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Location|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "rim", + "map": ".participation[typeCode=LOC].role[scoper.determinerCode=INSTANCE]" + } + ] + }, + { + "id": "ServiceRequest.reasonCode", + "path": "ServiceRequest.reasonCode", + "short": "Explanation/Justification for procedure or service", + "definition": "An explanation or justification for why this service is being requested in coded or textual form. This is often for billing purposes. May relate to the resources referred to in `supportingInfo`.", + "comment": "This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all. Use `CodeableConcept.text` element if the data is free (uncoded) text as shown in the [CT Scan example](http://hl7.org/fhir/R4/servicerequest-example-di.html).", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.reasonCode", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestReason" + } + ], + "strength": "example", + "description": "Diagnosis or problem codes justifying the reason for requesting the service investigation.", + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.reasonCode" + }, + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "v2", + "map": "ORC.16, RF1-10" + }, + { + "identity": "rim", + "map": ".reasonCode" + } + ] + }, + { + "id": "ServiceRequest.reasonReference", + "path": "ServiceRequest.reasonReference", + "short": "Explanation/Justification for service or service", + "definition": "Indicates another resource that provides a justification for why this service is being requested. May relate to the resources referred to in `supportingInfo`.", + "comment": "This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all. To be as specific as possible, a reference to *Observation* or *Condition* should be used if available. Otherwise when referencing *DiagnosticReport* it should contain a finding in `DiagnosticReport.conclusion` and/or `DiagnosticReport.conclusionCode`. When using a reference to *DocumentReference*, the target document should contain clear findings language providing the relevant reason for this service request. Use the CodeableConcept text element in `ServiceRequest.reasonCode` if the data is free (uncoded) text as shown in the [CT Scan example](http://hl7.org/fhir/R4/servicerequest-example-di.html).", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.reasonReference", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Condition|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DiagnosticReport|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.reasonReference" + }, + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "v2", + "map": "ORC.16" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=RSON].target" + } + ] + }, + { + "id": "ServiceRequest.insurance", + "path": "ServiceRequest.insurance", + "short": "Associated insurance coverage", + "definition": "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be needed for delivering the requested service.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.insurance", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Coverage|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ClaimResponse|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.insurance" + }, + { + "identity": "v2", + "map": "IN1/IN2" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COVBY].target" + } + ] + }, + { + "id": "ServiceRequest.supportingInfo", + "path": "ServiceRequest.supportingInfo", + "short": "Additional clinical information", + "definition": "Additional clinical information about the patient or specimen that may influence the services or their interpretations. This information includes diagnosis, clinical findings and other observations. In laboratory ordering these are typically referred to as \"ask at order entry questions (AOEs)\". This includes observations explicitly requested by the producer (filler) to provide context or supporting information needed to complete the order. For example, reporting the amount of inspired oxygen for blood gas measurements.", + "comment": "To represent information about how the services are to be delivered use the `instructions` element.", + "alias": [ + "Ask at order entry question", + "AOE" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.supportingInfo", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.supportingInfo" + }, + { + "identity": "v2", + "map": "Accompanying segments" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=PERT].target" + } + ] + }, + { + "id": "ServiceRequest.specimen", + "path": "ServiceRequest.specimen", + "short": "Lab test specimen", + "definition": "Specimen relevant to the order being reqested", + "comment": "Many diagnostic procedures need a specimen, but the request itself is not actually about the specimen. This element is for when the diagnostic is requested on already existing specimens and the request points to the specimen it applies to. Conversely, if the request is entered first with an unknown specimen, then the [Specimen](http://hl7.org/fhir/R4/specimen.html) resource points to the ServiceRequest.", + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.specimen", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabSpecimen" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "SPM" + }, + { + "identity": "rim", + "map": ".participation[typeCode=SPC].role" + } + ] + }, + { + "id": "ServiceRequest.bodySite", + "path": "ServiceRequest.bodySite", + "short": "Location on Body", + "definition": "Anatomic location where the procedure should be performed. This is the target site.", + "comment": "Only used if not implicit in the code found in ServiceRequest.code. If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately) then use the standard extension [procedure-targetBodyStructure](http://hl7.org/fhir/R4/extension-procedure-targetbodystructure.html).", + "requirements": "Knowing where the procedure is performed is important for tracking if multiple sites are possible.", + "alias": [ + "location" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.bodySite", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "BodySite" + } + ], + "strength": "example", + "description": "Codes describing anatomical locations. May include laterality.", + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "SPM" + }, + { + "identity": "rim", + "map": "targetSiteCode" + }, + { + "identity": "quick", + "map": "Procedure.targetBodySite" + } + ] + }, + { + "id": "ServiceRequest.note", + "path": "ServiceRequest.note", + "short": "Comments", + "definition": "Any other notes and comments made about the service request. For example, internal billing notes.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.note" + }, + { + "identity": "v2", + "map": "NTE" + }, + { + "identity": "rim", + "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]" + }, + { + "identity": "quick", + "map": "ClinicalStatement.additionalText" + } + ] + }, + { + "id": "ServiceRequest.patientInstruction", + "path": "ServiceRequest.patientInstruction", + "short": "Patient or consumer-oriented instructions", + "definition": "Instructions in terms that are understood by the patient or consumer.", + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.patientInstruction", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "NTE" + }, + { + "identity": "rim", + "map": ".text" + } + ] + }, + { + "id": "ServiceRequest.relevantHistory", + "path": "ServiceRequest.relevantHistory", + "short": "Request provenance", + "definition": "Key events in the history of the request.", + "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.relevantHistory", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Provenance|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.relevantHistory" + }, + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "ServiceRequest", + "path": "ServiceRequest" + }, + { + "id": "ServiceRequest.id", + "path": "ServiceRequest.id", + "min": 1 + }, + { + "id": "ServiceRequest.intent", + "path": "ServiceRequest.intent", + "patternCode": "order" + }, + { + "id": "ServiceRequest.category", + "path": "ServiceRequest.category", + "short": "Type of service request", + "definition": "Classification of the requested service", + "min": 1, + "max": "1" + }, + { + "id": "ServiceRequest.category.coding", + "path": "ServiceRequest.category.coding", + "min": 1, + "max": "1" + }, + { + "id": "ServiceRequest.category.coding.system", + "path": "ServiceRequest.category.coding.system", + "patternUri": "http://snomed.info/sct" + }, + { + "id": "ServiceRequest.category.coding.code", + "path": "ServiceRequest.category.coding.code", + "patternCode": "108252007" + }, + { + "id": "ServiceRequest.category.coding.display", + "path": "ServiceRequest.category.coding.display", + "patternString": "Laboratory procedure" + }, + { + "id": "ServiceRequest.code", + "path": "ServiceRequest.code", + "short": "Local test code", + "min": 1, + "binding": { + "strength": "preferred", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestCodeVS" + } + }, + { + "id": "ServiceRequest.subject", + "path": "ServiceRequest.subject", + "short": "Patient's information", + "definition": "Patient relevant to the requested lab order", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ] + }, + { + "id": "ServiceRequest.encounter", + "path": "ServiceRequest.encounter", + "short": "Encounter information", + "definition": "Encounter relevant to the requested lab order", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ] + }, + { + "id": "ServiceRequest.specimen", + "path": "ServiceRequest.specimen", + "short": "Lab test specimen", + "definition": "Specimen relevant to the order being reqested", + "min": 1, + "max": "1", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabSpecimen" + ] + } + ], + "mustSupport": true + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzLabResult.json b/packages/fhir-eswatini/spec/StructureDefinition-SzLabResult.json new file mode 100644 index 0000000000..12ada5e259 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzLabResult.json @@ -0,0 +1,2907 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzLabResult", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzLabResult

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Observation 0..*ObservationMeasurements and simple assertions
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
\".\"\".\"\".\"\".\" extension:authorizer 0..1Reference(Eswatini Practitioner Profile)Lab results authorizer
URL: https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAuthorizerExtension
\".\"\".\"\".\"\".\" extension:testingLaboratory 0..1Reference(Eswatini Location Profile)Testing laboratory
URL: https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzTestingLabExtension
\".\"\".\"\".\" category 1..1CodeableConceptClassification of type of observation
\".\"\".\"\".\" code S1..1CodeableConceptLocal test parameter code
Binding: Value Set: Eswatini Local Test Parameter Codes (required)
\".\"\".\"\".\" subject 0..1Reference(Eswatini Patient Profile)Patient profile
\".\"\".\"\".\" encounter 0..1Reference(Eswatini Encounter Profile)Encounter
\".\"\".\"\".\" performer 0..*Reference(Eswatini Practitioner Profile)Who is responsible for the observation
\".\"\".\"\".\" value[x] S1..1Quantity, CodeableConcept, string, boolean, integer, Range, Ratio, SampledData, time, dateTime, PeriodActual result
\".\"\".\"\".\" specimen 0..1Reference(Eswatini Specimen Profile)Specimen used for this observation

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabResult", + "version": "0.1.0", + "name": "SzLabResult", + "title": "Eswatini Lab Result Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Eswatini Lab Result Profile", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "sct-concept", + "uri": "http://snomed.info/conceptdomain", + "name": "SNOMED CT Concept Domain Binding" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "sct-attr", + "uri": "http://snomed.org/attributebinding", + "name": "SNOMED CT Attribute Binding" + } + ], + "kind": "resource", + "abstract": false, + "type": "Observation", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Observation", + "path": "Observation", + "short": "Measurements and simple assertions", + "definition": "Measurements and simple assertions made about a patient, device or other subject.", + "comment": "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc. Other resources are used to provide context for observations such as laboratory reports, etc.", + "alias": [ + "Vital Signs", + "Measurement", + "Results", + "Tests" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "obs-6", + "severity": "error", + "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", + "expression": "dataAbsentReason.empty() or value.empty()", + "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + }, + { + "key": "obs-7", + "severity": "error", + "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present", + "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()", + "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Event" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity|" + }, + { + "identity": "v2", + "map": "OBX" + }, + { + "identity": "rim", + "map": "Observation[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.id", + "path": "Observation.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Observation.meta", + "path": "Observation.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Observation.implicitRules", + "path": "Observation.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Observation.language", + "path": "Observation.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Observation.text", + "path": "Observation.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Observation.contained", + "path": "Observation.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.extension", + "path": "Observation.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Observation.extension:authorizer", + "path": "Observation.extension", + "sliceName": "authorizer", + "short": "Lab results authorizer", + "definition": "Lab technician who authorized the lab results", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAuthorizerExtension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Observation.extension:testingLaboratory", + "path": "Observation.extension", + "sliceName": "testingLaboratory", + "short": "Testing laboratory", + "definition": "Laboratory who performed the test", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzTestingLabExtension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Observation.modifierExtension", + "path": "Observation.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.identifier", + "path": "Observation.identifier", + "short": "Business Identifier for observation", + "definition": "A unique identifier assigned to this observation.", + "requirements": "Allows observations to be distinguished and referenced.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.identifier" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4." + }, + { + "identity": "rim", + "map": "id" + } + ] + }, + { + "id": "Observation.basedOn", + "path": "Observation.basedOn", + "short": "Fulfills plan, proposal or order", + "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.", + "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.", + "alias": [ + "Fulfills" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.basedOn", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DeviceRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/NutritionOrder|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.basedOn" + }, + { + "identity": "v2", + "map": "ORC" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]" + } + ] + }, + { + "id": "Observation.partOf", + "path": "Observation.partOf", + "short": "Part of referenced event", + "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.", + "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below for guidance on referencing another Observation.", + "alias": [ + "Container" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.partOf", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationDispense|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Immunization|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.partOf" + }, + { + "identity": "v2", + "map": "Varies by domain" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=FLFS].target" + } + ] + }, + { + "id": "Observation.status", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", + "valueString": "default: final" + } + ], + "path": "Observation.status", + "short": "registered | preliminary | final | amended +", + "definition": "The status of the result value.", + "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", + "requirements": "Need to track the status of individual results. Some results are finalized before the whole report is finalized.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationStatus" + } + ], + "strength": "required", + "description": "Codes providing the status of an observation.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "sct-concept", + "map": "< 445584004 |Report by finality status|" + }, + { + "identity": "v2", + "map": "OBX-11" + }, + { + "identity": "rim", + "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\"" + } + ] + }, + { + "id": "Observation.category", + "path": "Observation.category", + "short": "Classification of type of observation", + "definition": "A code that classifies the general type of observation being made.", + "comment": "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.", + "requirements": "Used for filtering what observations are retrieved and displayed.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.category", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCategory" + } + ], + "strength": "preferred", + "description": "Codes for high level observation categories.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-category|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code" + } + ] + }, + { + "id": "Observation.code", + "path": "Observation.code", + "short": "Local test parameter code", + "definition": "Describes what was observed. Sometimes this is called the observation \"name\".", + "comment": "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.", + "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.", + "alias": [ + "Name" + ], + "min": 1, + "max": "1", + "base": { + "path": "Observation.code", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestParameterCodeVS" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.code" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "code" + }, + { + "identity": "sct-attr", + "map": "116680003 |Is a|" + } + ] + }, + { + "id": "Observation.subject", + "path": "Observation.subject", + "short": "Patient profile", + "definition": "The patient this observation is about", + "comment": "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.", + "requirements": "Observations have no value if you don't know who or what they're about.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.subject", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "PID-3" + }, + { + "identity": "rim", + "map": "participation[typeCode=RTGT]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Observation.focus", + "path": "Observation.focus", + "short": "What the observation is about, when it is not about the subject of record", + "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.", + "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/R4/extension-observation-focuscode.html).", + "min": 0, + "max": "*", + "base": { + "path": "Observation.focus", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "participation[typeCode=SBJ]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Observation.encounter", + "path": "Observation.encounter", + "short": "Encounter", + "definition": "The encounter/visit this observation was made", + "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).", + "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.", + "alias": [ + "Context" + ], + "min": 0, + "max": "1", + "base": { + "path": "Observation.encounter", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.context" + }, + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "v2", + "map": "PV1" + }, + { + "identity": "rim", + "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.effective[x]", + "path": "Observation.effective[x]", + "short": "Clinically relevant time/time-period for observation", + "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.", + "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/R4/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.", + "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.", + "alias": [ + "Occurrence" + ], + "min": 0, + "max": "1", + "base": { + "path": "Observation.effective[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + }, + { + "code": "Period" + }, + { + "code": "Timing" + }, + { + "code": "instant" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.done[x]" + }, + { + "identity": "v2", + "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)" + }, + { + "identity": "rim", + "map": "effectiveTime" + } + ] + }, + { + "id": "Observation.issued", + "path": "Observation.issued", + "short": "Date/Time this version was made available", + "definition": "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.", + "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/R4/resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.issued", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "instant" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.recorded" + }, + { + "identity": "v2", + "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)" + }, + { + "identity": "rim", + "map": "participation[typeCode=AUT].time" + } + ] + }, + { + "id": "Observation.performer", + "path": "Observation.performer", + "short": "Who is responsible for the observation", + "definition": "Lab Technician who performed the test", + "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.performer", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.actor" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'" + }, + { + "identity": "rim", + "map": "participation[typeCode=PRF]" + } + ] + }, + { + "id": "Observation.value[x]", + "path": "Observation.value[x]", + "short": "Actual result", + "definition": "The information determined as a result of making the observation, if the information has a simple value.", + "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity" + }, + { + "code": "CodeableConcept" + }, + { + "code": "string" + }, + { + "code": "boolean" + }, + { + "code": "integer" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "SampledData" + }, + { + "code": "time" + }, + { + "code": "dateTime" + }, + { + "code": "Period" + } + ], + "condition": [ + "obs-7" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.dataAbsentReason", + "path": "Observation.dataAbsentReason", + "short": "Why the result is missing", + "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.", + "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.", + "requirements": "For many results it is necessary to handle exceptional values in measurements.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.dataAbsentReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "obs-6" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationValueAbsentReason" + } + ], + "strength": "extensible", + "description": "Codes specifying why the result (`Observation.value[x]`) is missing.", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": "value.nullFlavor" + } + ] + }, + { + "id": "Observation.interpretation", + "path": "Observation.interpretation", + "short": "High, low, normal, etc.", + "definition": "A categorical assessment of an observation value. For example, high, low, normal.", + "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.", + "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.", + "alias": [ + "Abnormal Flag" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.interpretation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationInterpretation" + } + ], + "strength": "extensible", + "description": "Codes identifying interpretations of observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values|" + }, + { + "identity": "v2", + "map": "OBX-8" + }, + { + "identity": "rim", + "map": "interpretationCode" + }, + { + "identity": "sct-attr", + "map": "363713009 |Has interpretation|" + } + ] + }, + { + "id": "Observation.note", + "path": "Observation.note", + "short": "Comments about the observation", + "definition": "Comments about the observation or the results.", + "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.", + "requirements": "Need to be able to provide free text additional information.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)" + }, + { + "identity": "rim", + "map": "subjectOf.observationEvent[code=\"annotation\"].value" + } + ] + }, + { + "id": "Observation.bodySite", + "path": "Observation.bodySite", + "short": "Observed body part", + "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).", + "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/R4/extension-bodysite.html).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.bodySite", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "BodySite" + } + ], + "strength": "example", + "description": "Codes describing anatomical locations. May include laterality.", + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 123037004 |Body structure|" + }, + { + "identity": "v2", + "map": "OBX-20" + }, + { + "identity": "rim", + "map": "targetSiteCode" + }, + { + "identity": "sct-attr", + "map": "718497002 |Inherent location|" + } + ] + }, + { + "id": "Observation.method", + "path": "Observation.method", + "short": "How it was done", + "definition": "Indicates the mechanism used to perform the observation.", + "comment": "Only used if not implicit in code for Observation.code.", + "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.method", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationMethod" + } + ], + "strength": "example", + "description": "Methods for simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "OBX-17" + }, + { + "identity": "rim", + "map": "methodCode" + } + ] + }, + { + "id": "Observation.specimen", + "path": "Observation.specimen", + "short": "Specimen used for this observation", + "definition": "The specimen that was used when this observation was made.", + "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.specimen", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabSpecimen" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 123038009 |Specimen|" + }, + { + "identity": "v2", + "map": "SPM segment" + }, + { + "identity": "rim", + "map": "participation[typeCode=SPC].specimen" + }, + { + "identity": "sct-attr", + "map": "704319004 |Inherent in|" + } + ] + }, + { + "id": "Observation.device", + "path": "Observation.device", + "short": "(Measurement) Device", + "definition": "The device used to generate the observation data.", + "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.device", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Device|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DeviceMetric|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 49062001 |Device|" + }, + { + "identity": "v2", + "map": "OBX-17 / PRT -10" + }, + { + "identity": "rim", + "map": "participation[typeCode=DEV]" + }, + { + "identity": "sct-attr", + "map": "424226004 |Using device|" + } + ] + }, + { + "id": "Observation.referenceRange", + "path": "Observation.referenceRange", + "short": "Provides guide for interpretation", + "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.", + "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.", + "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.referenceRange", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "obs-3", + "severity": "error", + "human": "Must have at least a low or a high or text", + "expression": "low.exists() or high.exists() or text.exists()", + "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX.7" + }, + { + "identity": "rim", + "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.referenceRange.id", + "path": "Observation.referenceRange.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.referenceRange.extension", + "path": "Observation.referenceRange.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.referenceRange.modifierExtension", + "path": "Observation.referenceRange.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.referenceRange.low", + "path": "Observation.referenceRange.low", + "short": "Low Range, if relevant", + "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.low", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "condition": [ + "obs-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:IVL_PQ.low" + } + ] + }, + { + "id": "Observation.referenceRange.high", + "path": "Observation.referenceRange.high", + "short": "High Range, if relevant", + "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.high", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "condition": [ + "obs-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:IVL_PQ.high" + } + ] + }, + { + "id": "Observation.referenceRange.type", + "path": "Observation.referenceRange.type", + "short": "Reference range qualifier", + "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.", + "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.", + "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationRangeMeaning" + } + ], + "strength": "preferred", + "description": "Code for the meaning of a reference range.", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|" + }, + { + "identity": "v2", + "map": "OBX-10" + }, + { + "identity": "rim", + "map": "interpretationCode" + } + ] + }, + { + "id": "Observation.referenceRange.appliesTo", + "path": "Observation.referenceRange.appliesTo", + "short": "Reference range population", + "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.", + "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.", + "requirements": "Need to be able to identify the target population for proper interpretation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.referenceRange.appliesTo", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationRangeType" + } + ], + "strength": "example", + "description": "Codes identifying the population the reference range applies to.", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|" + }, + { + "identity": "v2", + "map": "OBX-10" + }, + { + "identity": "rim", + "map": "interpretationCode" + } + ] + }, + { + "id": "Observation.referenceRange.age", + "path": "Observation.referenceRange.age", + "short": "Applicable age range, if relevant", + "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.", + "requirements": "Some analytes vary greatly over age.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.age", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Range" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value" + } + ] + }, + { + "id": "Observation.referenceRange.text", + "path": "Observation.referenceRange.text", + "short": "Text based reference range in an observation", + "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:ST" + } + ] + }, + { + "id": "Observation.hasMember", + "path": "Observation.hasMember", + "short": "Related resource that belongs to the Observation group", + "definition": "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.", + "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/R4/questionnaireresponse.html) into a final score and represent the score as an Observation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.hasMember", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "Relationships established by OBX-4 usage" + }, + { + "identity": "rim", + "map": "outBoundRelationship" + } + ] + }, + { + "id": "Observation.derivedFrom", + "path": "Observation.derivedFrom", + "short": "Related measurements the observation is made from", + "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.", + "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.derivedFrom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Media|4.0.1", + "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "Relationships established by OBX-4 usage" + }, + { + "identity": "rim", + "map": ".targetObservation" + } + ] + }, + { + "id": "Observation.component", + "path": "Observation.component", + "short": "Component results", + "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.", + "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.component", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "containment by OBX-4?" + }, + { + "identity": "rim", + "map": "outBoundRelationship[typeCode=COMP]" + } + ] + }, + { + "id": "Observation.component.id", + "path": "Observation.component.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component.extension", + "path": "Observation.component.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component.modifierExtension", + "path": "Observation.component.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.component.code", + "path": "Observation.component.code", + "short": "Type of component observation (code / type)", + "definition": "Describes what was observed. Sometimes this is called the observation \"code\".", + "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.", + "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.component.code", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCode" + } + ], + "strength": "example", + "description": "Codes identifying names of simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "code" + } + ] + }, + { + "id": "Observation.component.value[x]", + "path": "Observation.component.value[x]", + "short": "Actual component result", + "definition": "The information determined as a result of making the observation, if the information has a simple value.", + "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity" + }, + { + "code": "CodeableConcept" + }, + { + "code": "string" + }, + { + "code": "boolean" + }, + { + "code": "integer" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "SampledData" + }, + { + "code": "time" + }, + { + "code": "dateTime" + }, + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "363714003 |Interprets| < 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.component.dataAbsentReason", + "path": "Observation.component.dataAbsentReason", + "short": "Why the component result is missing", + "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.", + "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.", + "requirements": "For many results it is necessary to handle exceptional values in measurements.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.dataAbsentReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "obs-6" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationValueAbsentReason" + } + ], + "strength": "extensible", + "description": "Codes specifying why the result (`Observation.value[x]`) is missing.", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": "value.nullFlavor" + } + ] + }, + { + "id": "Observation.component.interpretation", + "path": "Observation.component.interpretation", + "short": "High, low, normal, etc.", + "definition": "A categorical assessment of an observation value. For example, high, low, normal.", + "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.", + "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.", + "alias": [ + "Abnormal Flag" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.interpretation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationInterpretation" + } + ], + "strength": "extensible", + "description": "Codes identifying interpretations of observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values|" + }, + { + "identity": "v2", + "map": "OBX-8" + }, + { + "identity": "rim", + "map": "interpretationCode" + }, + { + "identity": "sct-attr", + "map": "363713009 |Has interpretation|" + } + ] + }, + { + "id": "Observation.component.referenceRange", + "path": "Observation.component.referenceRange", + "short": "Provides guide for interpretation of component result", + "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.", + "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.", + "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.referenceRange", + "min": 0, + "max": "*" + }, + "contentReference": "http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX.7" + }, + { + "identity": "rim", + "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Observation", + "path": "Observation" + }, + { + "id": "Observation.id", + "path": "Observation.id", + "min": 1 + }, + { + "id": "Observation.extension", + "path": "Observation.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + } + }, + { + "id": "Observation.extension:authorizer", + "path": "Observation.extension", + "sliceName": "authorizer", + "short": "Lab results authorizer", + "definition": "Lab technician who authorized the lab results", + "min": 0, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAuthorizerExtension" + ] + } + ] + }, + { + "id": "Observation.extension:testingLaboratory", + "path": "Observation.extension", + "sliceName": "testingLaboratory", + "short": "Testing laboratory", + "definition": "Laboratory who performed the test", + "min": 0, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzTestingLabExtension" + ] + } + ] + }, + { + "id": "Observation.category", + "path": "Observation.category", + "min": 1, + "max": "1" + }, + { + "id": "Observation.code", + "path": "Observation.code", + "short": "Local test parameter code", + "mustSupport": true, + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestParameterCodeVS" + } + }, + { + "id": "Observation.subject", + "path": "Observation.subject", + "short": "Patient profile", + "definition": "The patient this observation is about", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ] + }, + { + "id": "Observation.encounter", + "path": "Observation.encounter", + "short": "Encounter", + "definition": "The encounter/visit this observation was made", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ] + }, + { + "id": "Observation.performer", + "path": "Observation.performer", + "definition": "Lab Technician who performed the test", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner" + ] + } + ] + }, + { + "id": "Observation.value[x]", + "path": "Observation.value[x]", + "min": 1, + "mustSupport": true + }, + { + "id": "Observation.specimen", + "path": "Observation.specimen", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabSpecimen" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzLabSpecimen.json b/packages/fhir-eswatini/spec/StructureDefinition-SzLabSpecimen.json new file mode 100644 index 0000000000..538a91afb1 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzLabSpecimen.json @@ -0,0 +1,2269 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzLabSpecimen", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzLabSpecimen

\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Specimen 0..*SpecimenEswatini Health Information Exchange Specimen Profile
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" type S1..1CodeableConceptType of specimen being collected
Binding: http://terminology.hl7.org/CodeSystem/v2-0487 (preferred)
\".\"\".\"\".\" subject 0..1Reference(Eswatini Patient Profile)Patient associated with the specimen being collected
\".\"\".\"\".\" collection 1..1BackboneElementSpecimen collection information
\".\"\".\"\".\"\".\" collector S1..1Reference(Eswatini Practitioner Profile)Specimen collector
\".\"\".\"\".\"\".\" collected[x] S1..1dateTimeSpecimen collection date

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabSpecimen", + "version": "0.1.0", + "name": "EswatiniSpecimenProfile", + "title": "Eswatini Specimen Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "The Eswatini Specimen Profile is based on the FHIR Specimen resource. This profile sets minimum\nexpectation for Specimen resource to record information about substances associated with a patient or laboratory request being tested.\nThis profile specifies which core elements shall be present and how these elements are used.", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Specimen", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Specimen", + "path": "Specimen", + "short": "Eswatini Health Information Exchange Specimen Profile", + "definition": "A sample to be used for analysis.", + "min": 0, + "max": "*", + "base": { + "path": "Specimen", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "rim", + "map": "Role[classCode=SPEC]" + } + ] + }, + { + "id": "Specimen.id", + "path": "Specimen.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Specimen.meta", + "path": "Specimen.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Specimen.implicitRules", + "path": "Specimen.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Specimen.language", + "path": "Specimen.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages|4.0.1" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Specimen.text", + "path": "Specimen.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Specimen.contained", + "path": "Specimen.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Specimen.extension", + "path": "Specimen.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Specimen.modifierExtension", + "path": "Specimen.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Specimen.identifier", + "path": "Specimen.identifier", + "short": "External Identifier", + "definition": "Id for specimen.", + "min": 0, + "max": "*", + "base": { + "path": "Specimen.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "SPM-2" + }, + { + "identity": "rim", + "map": ".id" + } + ] + }, + { + "id": "Specimen.accessionIdentifier", + "path": "Specimen.accessionIdentifier", + "short": "Identifier assigned by the lab", + "definition": "The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.accessionIdentifier", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "SPM-30 (v2.7+)" + }, + { + "identity": "rim", + "map": ".participation[typeCode=SBJ].act[classCode=ACSN, moodCode=EVN].id" + } + ] + }, + { + "id": "Specimen.status", + "path": "Specimen.status", + "short": "available | unavailable | unsatisfactory | entered-in-error", + "definition": "The availability of the specimen.", + "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.status", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "SpecimenStatus" + } + ], + "strength": "required", + "description": "Codes providing the status/availability of a specimen.", + "valueSet": "http://hl7.org/fhir/ValueSet/specimen-status|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "v2", + "map": "SPM-20" + }, + { + "identity": "rim", + "map": "status" + } + ] + }, + { + "id": "Specimen.type", + "path": "Specimen.type", + "short": "Type of specimen being collected", + "definition": "The kind of material that forms the specimen.", + "comment": "The type can change the way that a specimen is handled and drives what kind of analyses can properly be performed on the specimen. It is frequently used in diagnostic work flow decision making systems.", + "min": 1, + "max": "1", + "base": { + "path": "Specimen.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "binding": { + "strength": "preferred", + "valueSet": "http://terminology.hl7.org/CodeSystem/v2-0487|3.0.0" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "v2", + "map": "SPM-4 and possibly SPM-5" + }, + { + "identity": "rim", + "map": ".code" + } + ] + }, + { + "id": "Specimen.subject", + "path": "Specimen.subject", + "short": "Patient associated with the specimen being collected", + "definition": "Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance or a device.", + "requirements": "Must know the subject context.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.subject", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient|0.1.0" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "rim", + "map": ".scoper or .scoper.playsRole" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Specimen.receivedTime", + "path": "Specimen.receivedTime", + "short": "The time when specimen was received for processing", + "definition": "Time when specimen was received for processing or testing.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.receivedTime", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.done[x]" + }, + { + "identity": "v2", + "map": "SPM-18" + }, + { + "identity": "rim", + "map": ".participation[typeCode=SBJ].act[code=SPCREC, moodCode=EVN].effectiveTime" + } + ] + }, + { + "id": "Specimen.parent", + "path": "Specimen.parent", + "short": "Specimen from which this specimen originated", + "definition": "Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.", + "comment": "The parent specimen could be the source from which the current specimen is derived by some processing step (e.g. an aliquot or isolate or extracted nucleic acids from clinical samples) or one of many specimens that were combined to create a pooled sample.", + "min": 0, + "max": "*", + "base": { + "path": "Specimen.parent", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".scoper (if parent) .player.scopesRole[classCode=SPEC].player (if child)" + } + ] + }, + { + "id": "Specimen.request", + "path": "Specimen.request", + "short": "Why the specimen was collected", + "definition": "Details concerning a service request that required a specimen to be collected.", + "comment": "The request may be explicit or implied such with a ServiceRequest that requires a blood draw.", + "min": 0, + "max": "*", + "base": { + "path": "Specimen.request", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "v2", + "map": "ORC? OBR-2/3?" + }, + { + "identity": "rim", + "map": "outboundRelationship[typeCode=FLFS].target" + } + ] + }, + { + "id": "Specimen.collection", + "path": "Specimen.collection", + "short": "Specimen collection information", + "definition": "Date and Time of specimen collection and the person who collected the specimen", + "min": 1, + "max": "1", + "base": { + "path": "Specimen.collection", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "SPM-14" + }, + { + "identity": "rim", + "map": ".participation[typeCode=SBJ].act[classCode=SPECCOLLECT, moodCode=EVN]" + } + ] + }, + { + "id": "Specimen.collection.id", + "path": "Specimen.collection.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Specimen.collection.extension", + "path": "Specimen.collection.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Specimen.collection.modifierExtension", + "path": "Specimen.collection.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Specimen.collection.collector", + "path": "Specimen.collection.collector", + "short": "Specimen collector", + "definition": "Person who collected the specimen.", + "min": 1, + "max": "1", + "base": { + "path": "Specimen.collection.collector", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner|0.1.0" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "PRT" + }, + { + "identity": "rim", + "map": ".participation[typeCode=PFM].role" + } + ] + }, + { + "id": "Specimen.collection.collected[x]", + "path": "Specimen.collection.collected[x]", + "short": "Specimen collection date", + "definition": "Time when specimen was collected from subject - the physiologically relevant time.", + "min": 1, + "max": "1", + "base": { + "path": "Specimen.collection.collected[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.init" + }, + { + "identity": "v2", + "map": "SPM-17" + }, + { + "identity": "rim", + "map": ".effectiveTime" + } + ] + }, + { + "id": "Specimen.collection.duration", + "path": "Specimen.collection.duration", + "short": "How long it took to collect specimen", + "definition": "The span of time over which the collection of a specimen occurred.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.collection.duration", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Duration" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.init" + } + ] + }, + { + "id": "Specimen.collection.quantity", + "path": "Specimen.collection.quantity", + "short": "The quantity of specimen collected", + "definition": "The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.collection.quantity", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "SPM-12" + }, + { + "identity": "rim", + "map": ".participation[typeCode=SBJ].role[classCode=SPEC].player.quantity" + } + ] + }, + { + "id": "Specimen.collection.method", + "path": "Specimen.collection.method", + "short": "Technique used to perform collection", + "definition": "A coded value specifying the technique that is used to perform the procedure.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.collection.method", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "SpecimenCollectionMethod" + } + ], + "strength": "example", + "description": "The technique that is used to perform the procedure.", + "valueSet": "http://hl7.org/fhir/ValueSet/specimen-collection-method|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "SPM-7" + }, + { + "identity": "rim", + "map": ".methodCode" + } + ] + }, + { + "id": "Specimen.collection.bodySite", + "path": "Specimen.collection.bodySite", + "short": "Anatomical collection site", + "definition": "Anatomical location from which the specimen was collected (if subject is a patient). This is the target site. This element is not used for environmental specimens.", + "comment": "If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately) then use the standard extension [bodySite](http://hl7.org/fhir/R4/extension-bodysite.html).", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.collection.bodySite", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "BodySite" + } + ], + "strength": "example", + "description": "Codes describing anatomical locations. May include laterality.", + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "SPM-8 and SPM-9" + }, + { + "identity": "rim", + "map": ".targetSiteCode" + } + ] + }, + { + "id": "Specimen.collection.fastingStatus[x]", + "path": "Specimen.collection.fastingStatus[x]", + "short": "Whether or how long patient abstained from food and/or drink", + "definition": "Abstinence or reduction from some or all food, drink, or both, for a period of time prior to sample collection.", + "comment": "Representing fasting status using this element is preferred to representing it with an observation using a 'pre-coordinated code' such as LOINC 2005-7 (Calcium [Moles/​time] in 2 hour Urine --12 hours fasting), or using a component observation ` such as `Observation.component code` = LOINC 49541-6 (Fasting status - Reported).", + "requirements": "Many diagnostic tests require fasting to facilitate accurate interpretation.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.collection.fastingStatus[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + }, + { + "code": "Duration" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "FastingStatus" + } + ], + "strength": "extensible", + "description": "Codes describing the fasting status of the patient.", + "valueSet": "http://terminology.hl7.org/ValueSet/v2-0916|3.0.0" + }, + "mapping": [ + { + "identity": "v2", + "map": "OBR-" + } + ] + }, + { + "id": "Specimen.processing", + "path": "Specimen.processing", + "short": "Processing and processing step details", + "definition": "Details concerning processing and processing steps for the specimen.", + "min": 0, + "max": "*", + "base": { + "path": "Specimen.processing", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".participation[typeCode=SBJ].act[code=SPCTRT, moodCode=EVN]" + } + ] + }, + { + "id": "Specimen.processing.id", + "path": "Specimen.processing.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Specimen.processing.extension", + "path": "Specimen.processing.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Specimen.processing.modifierExtension", + "path": "Specimen.processing.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Specimen.processing.description", + "path": "Specimen.processing.description", + "short": "Textual description of procedure", + "definition": "Textual description of procedure.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.processing.description", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".text" + } + ] + }, + { + "id": "Specimen.processing.procedure", + "path": "Specimen.processing.procedure", + "short": "Indicates the treatment step applied to the specimen", + "definition": "A coded value specifying the procedure used to process the specimen.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.processing.procedure", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "SpecimenProcessingProcedure" + } + ], + "strength": "example", + "description": "Type indicating the technique used to process the specimen.", + "valueSet": "http://hl7.org/fhir/ValueSet/specimen-processing-procedure|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": ".code" + } + ] + }, + { + "id": "Specimen.processing.additive", + "path": "Specimen.processing.additive", + "short": "Material used in the processing step", + "definition": "Material used in the processing step.", + "min": 0, + "max": "*", + "base": { + "path": "Specimen.processing.additive", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Substance|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "SPM-6" + }, + { + "identity": "rim", + "map": ".participation[typeCode=CSM].role[classCode=ADTV].code" + } + ] + }, + { + "id": "Specimen.processing.time[x]", + "path": "Specimen.processing.time[x]", + "short": "Date and time of specimen processing", + "definition": "A record of the time or period when the specimen processing occurred. For example the time of sample fixation or the period of time the sample was in formalin.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.processing.time[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + }, + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".effectiveTime" + } + ] + }, + { + "id": "Specimen.container", + "path": "Specimen.container", + "short": "Direct container of specimen (tube/slide, etc.)", + "definition": "The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.", + "min": 0, + "max": "*", + "base": { + "path": "Specimen.container", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".player.scopingRole[classCode=CONT].scoper" + } + ] + }, + { + "id": "Specimen.container.id", + "path": "Specimen.container.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Specimen.container.extension", + "path": "Specimen.container.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Specimen.container.modifierExtension", + "path": "Specimen.container.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Specimen.container.identifier", + "path": "Specimen.container.identifier", + "short": "Id for the container", + "definition": "Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances.", + "min": 0, + "max": "*", + "base": { + "path": "Specimen.container.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "SAC-3" + }, + { + "identity": "rim", + "map": ".id" + } + ] + }, + { + "id": "Specimen.container.description", + "path": "Specimen.container.description", + "short": "Textual description of the container", + "definition": "Textual description of the container.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.container.description", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".desc" + } + ] + }, + { + "id": "Specimen.container.type", + "path": "Specimen.container.type", + "short": "Kind of container directly associated with specimen", + "definition": "The type of container associated with the specimen (e.g. slide, aliquot, etc.).", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.container.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "SpecimenContainerType" + } + ], + "strength": "example", + "description": "Type of specimen container.", + "valueSet": "http://hl7.org/fhir/ValueSet/specimen-container-type|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "SPM-27" + }, + { + "identity": "rim", + "map": ".code" + } + ] + }, + { + "id": "Specimen.container.capacity", + "path": "Specimen.container.capacity", + "short": "Container volume or size", + "definition": "The capacity (volume or other measure) the container may contain.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.container.capacity", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "one of: SAC 16, SAC17 and SAC 20, or SAC 21 and SAC 20" + }, + { + "identity": "rim", + "map": ".quantity" + } + ] + }, + { + "id": "Specimen.container.specimenQuantity", + "path": "Specimen.container.specimenQuantity", + "short": "Quantity of specimen within container", + "definition": "The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.container.specimenQuantity", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "SAC-23 (value) SAC-24 (units" + }, + { + "identity": "rim", + "map": ".playedRole[classCode=CONT].quantity" + } + ] + }, + { + "id": "Specimen.container.additive[x]", + "path": "Specimen.container.additive[x]", + "short": "Additive associated with container", + "definition": "Introduced substance to preserve, maintain or enhance the specimen. Examples: Formalin, Citrate, EDTA.", + "min": 0, + "max": "1", + "base": { + "path": "Specimen.container.additive[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + }, + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Substance|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "SpecimenContainerAdditive" + } + ], + "strength": "example", + "description": "Substance added to specimen container.", + "valueSet": "http://terminology.hl7.org/ValueSet/v2-0371|3.0.0" + }, + "mapping": [ + { + "identity": "v2", + "map": "SAC-27" + }, + { + "identity": "rim", + "map": ".scopesRole[classCode=ADTV].player" + } + ] + }, + { + "id": "Specimen.condition", + "path": "Specimen.condition", + "short": "State of the specimen", + "definition": "A mode or state of being that describes the nature of the specimen.", + "comment": "Specimen condition is an observation made about the specimen. It's a point-in-time assessment. It can be used to assess its quality or appropriateness for a specific test.", + "requirements": "The specimen condition can be used to assess its quality or appropriateness for a specific test.", + "min": 0, + "max": "*", + "base": { + "path": "Specimen.condition", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "SpecimenCondition" + } + ], + "strength": "extensible", + "description": "Codes describing the state of the specimen.", + "valueSet": "http://terminology.hl7.org/ValueSet/v2-0493|3.0.0" + }, + "mapping": [ + { + "identity": "v2", + "map": "SPM-24" + } + ] + }, + { + "id": "Specimen.note", + "path": "Specimen.note", + "short": "Comments", + "definition": "To communicate any details or issues about the specimen or during the specimen collection. (for example: broken vial, sent with patient, frozen).", + "min": 0, + "max": "*", + "base": { + "path": "Specimen.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Specimen", + "path": "Specimen", + "short": "Eswatini Health Information Exchange Specimen Profile" + }, + { + "id": "Specimen.id", + "path": "Specimen.id", + "min": 1 + }, + { + "id": "Specimen.type", + "path": "Specimen.type", + "short": "Type of specimen being collected", + "min": 1, + "mustSupport": true, + "binding": { + "strength": "preferred", + "valueSet": "http://terminology.hl7.org/CodeSystem/v2-0487|3.0.0" + } + }, + { + "id": "Specimen.subject", + "path": "Specimen.subject", + "short": "Patient associated with the specimen being collected", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient|0.1.0" + ] + } + ] + }, + { + "id": "Specimen.collection", + "path": "Specimen.collection", + "short": "Specimen collection information", + "definition": "Date and Time of specimen collection and the person who collected the specimen", + "min": 1 + }, + { + "id": "Specimen.collection.collector", + "path": "Specimen.collection.collector", + "short": "Specimen collector", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner|0.1.0" + ] + } + ], + "mustSupport": true + }, + { + "id": "Specimen.collection.collected[x]", + "path": "Specimen.collection.collected[x]", + "short": "Specimen collection date", + "min": 1, + "type": [ + { + "code": "dateTime" + } + ], + "mustSupport": true + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzLocation.json b/packages/fhir-eswatini/spec/StructureDefinition-SzLocation.json new file mode 100644 index 0000000000..c9190f4406 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzLocation.json @@ -0,0 +1,1748 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzLocation", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzLocation

\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Location 0..*LocationDetails and position information for a physical place
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" name S1..1stringLocation Name
\".\"\".\"\".\" type S1..1CodeableConceptLocation Type
\".\"\".\"\".\" managingOrganization 0..1Reference(Eswatini Organization Profile)Organization responsible for provisioning and upkeep

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation", + "version": "0.1.0", + "name": "EswatiniLocation", + "title": "Eswatini Location Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Eswatini Location Profile sets a standard for recording locations where medical care is provided", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Location", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Location|4.0.1", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Location", + "path": "Location", + "short": "Details and position information for a physical place", + "definition": "Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated.", + "min": 0, + "max": "*", + "base": { + "path": "Location", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "rim", + "map": ".Role[classCode=SDLC]" + } + ] + }, + { + "id": "Location.id", + "path": "Location.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Location.meta", + "path": "Location.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Location.implicitRules", + "path": "Location.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Location.language", + "path": "Location.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages|4.0.1" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Location.text", + "path": "Location.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Location.contained", + "path": "Location.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Location.extension", + "path": "Location.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Location.modifierExtension", + "path": "Location.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Location.identifier", + "path": "Location.identifier", + "short": "Unique code or number identifying the location to its users", + "definition": "Unique code or number identifying the location to its users.", + "requirements": "Organization label locations in registries, need to keep track of those.", + "min": 0, + "max": "*", + "base": { + "path": "Location.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "rim", + "map": ".id" + } + ] + }, + { + "id": "Location.status", + "path": "Location.status", + "short": "active | suspended | inactive", + "definition": "The status property covers the general availability of the resource, not the current value which may be covered by the operationStatus, or by a schedule/slots if they are configured for the location.", + "min": 0, + "max": "1", + "base": { + "path": "Location.status", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "LocationStatus" + } + ], + "strength": "required", + "description": "Indicates whether the location is still in use.", + "valueSet": "http://hl7.org/fhir/ValueSet/location-status|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "rim", + "map": ".statusCode" + } + ] + }, + { + "id": "Location.operationalStatus", + "path": "Location.operationalStatus", + "short": "The operational status of the location (typically only for a bed/room)", + "definition": "The operational status covers operation values most relevant to beds (but can also apply to rooms/units/chairs/etc. such as an isolation unit/dialysis chair). This typically covers concepts such as contamination, housekeeping, and other activities like maintenance.", + "min": 0, + "max": "1", + "base": { + "path": "Location.operationalStatus", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Coding" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "OperationalStatus" + } + ], + "strength": "preferred", + "description": "The operational status if the location (where typically a bed/room).", + "valueSet": "http://terminology.hl7.org/ValueSet/v2-0116|3.0.0" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Location.name", + "path": "Location.name", + "short": "Location Name", + "definition": "Name of the recorded location e.g KSII Clinic | Ward 10", + "comment": "If the name of a location changes, consider putting the old name in the alias column so that it can still be located through searches.", + "min": 1, + "max": "1", + "base": { + "path": "Location.name", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": ".name" + } + ] + }, + { + "id": "Location.alias", + "path": "Location.alias", + "short": "A list of alternate names that the location is known as, or was known as, in the past", + "definition": "A list of alternate names that the location is known as, or was known as, in the past.", + "comment": "There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the location.", + "requirements": "Over time locations and organizations go through many changes and can be known by different names.\n\nFor searching knowing previous names that the location was known by can be very useful.", + "min": 0, + "max": "*", + "base": { + "path": "Location.alias", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".name" + } + ] + }, + { + "id": "Location.description", + "path": "Location.description", + "short": "Additional details about the location that could be displayed as further information to identify the location beyond its name", + "definition": "Description of the Location, which helps in finding or referencing the place.", + "requirements": "Humans need additional information to verify a correct location has been identified.", + "min": 0, + "max": "1", + "base": { + "path": "Location.description", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": ".playingEntity[classCode=PLC determinerCode=INSTANCE].desc" + } + ] + }, + { + "id": "Location.mode", + "path": "Location.mode", + "short": "instance | kind", + "definition": "Indicates whether a resource instance represents a specific location or a class of locations.", + "comment": "This is labeled as a modifier because whether or not the location is a class of locations changes how it can be used and understood.", + "requirements": "When using a Location resource for scheduling or orders, we need to be able to refer to a class of Locations instead of a specific Location.", + "min": 0, + "max": "1", + "base": { + "path": "Location.mode", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "LocationMode" + } + ], + "strength": "required", + "description": "Indicates whether a resource instance represents a specific location or a class of locations.", + "valueSet": "http://hl7.org/fhir/ValueSet/location-mode|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".playingEntity[classCode=PLC].determinerCode" + } + ] + }, + { + "id": "Location.type", + "path": "Location.type", + "short": "Location Type", + "definition": "Type of location: Clinic | Health Center | Hospital | Team | Ward | etc", + "min": 1, + "max": "1", + "base": { + "path": "Location.type", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "LocationType" + } + ], + "strength": "extensible", + "description": "Indicates the type of function performed at the location.", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType|3.0.0" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".code" + } + ] + }, + { + "id": "Location.telecom", + "path": "Location.telecom", + "short": "Contact details of the location", + "definition": "The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites.", + "min": 0, + "max": "*", + "base": { + "path": "Location.telecom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "ContactPoint" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".telecom" + } + ] + }, + { + "id": "Location.address", + "path": "Location.address", + "short": "Physical location", + "definition": "Physical location.", + "comment": "Additional addresses should be recorded using another instance of the Location resource, or via the Organization.", + "requirements": "If locations can be visited, we need to keep track of their address.", + "min": 0, + "max": "1", + "base": { + "path": "Location.address", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Address" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".addr" + } + ] + }, + { + "id": "Location.physicalType", + "path": "Location.physicalType", + "short": "Physical form of the location", + "definition": "Physical form of the location, e.g. building, room, vehicle, road.", + "requirements": "For purposes of showing relevant locations in queries, we need to categorize locations.", + "min": 0, + "max": "1", + "base": { + "path": "Location.physicalType", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "PhysicalType" + } + ], + "strength": "example", + "description": "Physical form of the location.", + "valueSet": "http://hl7.org/fhir/ValueSet/location-physical-type|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".playingEntity [classCode=PLC].code" + } + ] + }, + { + "id": "Location.position", + "path": "Location.position", + "short": "The absolute geographic location", + "definition": "The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML).", + "requirements": "For mobile applications and automated route-finding knowing the exact location of the Location is required.", + "min": 0, + "max": "1", + "base": { + "path": "Location.position", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".playingEntity [classCode=PLC determinerCode=INSTANCE].positionText" + } + ] + }, + { + "id": "Location.position.id", + "path": "Location.position.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Location.position.extension", + "path": "Location.position.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Location.position.modifierExtension", + "path": "Location.position.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Location.position.longitude", + "path": "Location.position.longitude", + "short": "Longitude with WGS84 datum", + "definition": "Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below).", + "min": 1, + "max": "1", + "base": { + "path": "Location.position.longitude", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "decimal" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "(RIM Opted not to map the sub-elements of GPS location, is now an OBS)" + } + ] + }, + { + "id": "Location.position.latitude", + "path": "Location.position.latitude", + "short": "Latitude with WGS84 datum", + "definition": "Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below).", + "min": 1, + "max": "1", + "base": { + "path": "Location.position.latitude", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "decimal" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "(RIM Opted not to map the sub-elements of GPS location, is now an OBS)" + } + ] + }, + { + "id": "Location.position.altitude", + "path": "Location.position.altitude", + "short": "Altitude with WGS84 datum", + "definition": "Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below).", + "min": 0, + "max": "1", + "base": { + "path": "Location.position.altitude", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "decimal" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "(RIM Opted not to map the sub-elements of GPS location, is now an OBS)" + } + ] + }, + { + "id": "Location.managingOrganization", + "path": "Location.managingOrganization", + "short": "Organization responsible for provisioning and upkeep", + "definition": "The organization responsible for the provisioning and upkeep of the location.", + "comment": "This can also be used as the part of the organization hierarchy where this location provides services. These services can be defined through the HealthcareService resource.", + "requirements": "Need to know who manages the location.", + "min": 0, + "max": "1", + "base": { + "path": "Location.managingOrganization", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization|0.1.0" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": ".scopingEntity[classCode=ORG determinerKind=INSTANCE]" + } + ] + }, + { + "id": "Location.partOf", + "path": "Location.partOf", + "short": "Another Location this one is physically a part of", + "definition": "Another Location of which this Location is physically a part of.", + "requirements": "For purposes of location, display and identification, knowing which locations are located within other locations is important.", + "min": 0, + "max": "1", + "base": { + "path": "Location.partOf", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy", + "valueBoolean": true + } + ], + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Location|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".inboundLink[typeCode=PART].source[classCode=SDLC]" + } + ] + }, + { + "id": "Location.hoursOfOperation", + "path": "Location.hoursOfOperation", + "short": "What days/times during a week is this location usually open", + "definition": "What days/times during a week is this location usually open.", + "comment": "This type of information is commonly found published in directories and on websites informing customers when the facility is available.\n\nSpecific services within the location may have their own hours which could be shorter (or longer) than the locations hours.", + "min": 0, + "max": "*", + "base": { + "path": "Location.hoursOfOperation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".effectiveTime" + } + ] + }, + { + "id": "Location.hoursOfOperation.id", + "path": "Location.hoursOfOperation.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Location.hoursOfOperation.extension", + "path": "Location.hoursOfOperation.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Location.hoursOfOperation.modifierExtension", + "path": "Location.hoursOfOperation.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Location.hoursOfOperation.daysOfWeek", + "path": "Location.hoursOfOperation.daysOfWeek", + "short": "mon | tue | wed | thu | fri | sat | sun", + "definition": "Indicates which days of the week are available between the start and end Times.", + "min": 0, + "max": "*", + "base": { + "path": "Location.hoursOfOperation.daysOfWeek", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "DaysOfWeek" + } + ], + "strength": "required", + "description": "The days of the week.", + "valueSet": "http://hl7.org/fhir/ValueSet/days-of-week|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": ".effectiveTime" + } + ] + }, + { + "id": "Location.hoursOfOperation.allDay", + "path": "Location.hoursOfOperation.allDay", + "short": "The Location is open all day", + "definition": "The Location is open all day.", + "min": 0, + "max": "1", + "base": { + "path": "Location.hoursOfOperation.allDay", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".effectiveTime" + } + ] + }, + { + "id": "Location.hoursOfOperation.openingTime", + "path": "Location.hoursOfOperation.openingTime", + "short": "Time that the Location opens", + "definition": "Time that the Location opens.", + "min": 0, + "max": "1", + "base": { + "path": "Location.hoursOfOperation.openingTime", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "time" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".effectiveTime" + } + ] + }, + { + "id": "Location.hoursOfOperation.closingTime", + "path": "Location.hoursOfOperation.closingTime", + "short": "Time that the Location closes", + "definition": "Time that the Location closes.", + "min": 0, + "max": "1", + "base": { + "path": "Location.hoursOfOperation.closingTime", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "time" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".effectiveTime" + } + ] + }, + { + "id": "Location.availabilityExceptions", + "path": "Location.availabilityExceptions", + "short": "Description of availability exceptions", + "definition": "A description of when the locations opening ours are different to normal, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as detailed in the opening hours Times.", + "min": 0, + "max": "1", + "base": { + "path": "Location.availabilityExceptions", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Location.endpoint", + "path": "Location.endpoint", + "short": "Technical endpoints providing access to services operated for the location", + "definition": "Technical endpoints providing access to services operated for the location.", + "requirements": "Organizations may have different systems at different locations that provide various services and need to be able to define the technical connection details for how to connect to them, and for what purpose.", + "min": 0, + "max": "*", + "base": { + "path": "Location.endpoint", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Endpoint|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Location", + "path": "Location" + }, + { + "id": "Location.id", + "path": "Location.id", + "min": 1 + }, + { + "id": "Location.name", + "path": "Location.name", + "short": "Location Name", + "definition": "Name of the recorded location e.g KSII Clinic | Ward 10", + "min": 1, + "mustSupport": true + }, + { + "id": "Location.type", + "path": "Location.type", + "short": "Location Type", + "definition": "Type of location: Clinic | Health Center | Hospital | Team | Ward | etc", + "min": 1, + "max": "1", + "mustSupport": true + }, + { + "id": "Location.managingOrganization", + "path": "Location.managingOrganization", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization|0.1.0" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzLocationCodeExtension.json b/packages/fhir-eswatini/spec/StructureDefinition-SzLocationCodeExtension.json new file mode 100644 index 0000000000..d2fa91a9c1 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzLocationCodeExtension.json @@ -0,0 +1,280 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzLocationCodeExtension", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzLocationCodeExtension

\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Extension 0..*ExtensionExtention: Eswatini Location Code
\".\"\".\"\".\" extension 0..0Extension
\".\"\".\"\".\" url 1..1uri"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocationCodeExtension"
\".\"\".\"\".\" value[x] 0..1stringValue of extension

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocationCodeExtension", + "version": "0.1.0", + "name": "SzLocationCodeExtension", + "title": "Extention: Eswatini Location Code", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Extention for Eswatini Location Code", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Eswatini Location Code", + "definition": "Extention for Eswatini Location Code", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocationCodeExtension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Eswatini Location Code", + "definition": "Extention for Eswatini Location Code" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocationCodeExtension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "type": [ + { + "code": "string" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzMannerOfDeath.json b/packages/fhir-eswatini/spec/StructureDefinition-SzMannerOfDeath.json new file mode 100644 index 0000000000..4ce720703f --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzMannerOfDeath.json @@ -0,0 +1,2720 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzMannerOfDeath", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzMannerOfDeath

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Observation 0..*ObservationMeasurements and simple assertions
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" code 1..1CodeableConceptManner of death
Required Pattern: At least the following
\".\"\".\"\".\"\".\" coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
\".\"\".\"\".\"\".\"\".\" system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
\".\"\".\"\".\"\".\"\".\" code1..1codeSymbol in syntax defined by the system
Fixed Value: 69449-7
\".\"\".\"\".\" subject 1..1Reference(Eswatini Patient Profile)Who and/or what the observation is about
\".\"\".\"\".\" value[x] 1..1stringValue representing the actual manner of death

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzMannerOfDeath", + "version": "0.1.0", + "name": "SzMannerOfDeath", + "title": "Manner of Death Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Manner of Death Profile", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "sct-concept", + "uri": "http://snomed.info/conceptdomain", + "name": "SNOMED CT Concept Domain Binding" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "sct-attr", + "uri": "http://snomed.org/attributebinding", + "name": "SNOMED CT Attribute Binding" + } + ], + "kind": "resource", + "abstract": false, + "type": "Observation", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Observation", + "path": "Observation", + "short": "Measurements and simple assertions", + "definition": "Measurements and simple assertions made about a patient, device or other subject.", + "comment": "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc. Other resources are used to provide context for observations such as laboratory reports, etc.", + "alias": [ + "Vital Signs", + "Measurement", + "Results", + "Tests" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "obs-6", + "severity": "error", + "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", + "expression": "dataAbsentReason.empty() or value.empty()", + "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + }, + { + "key": "obs-7", + "severity": "error", + "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present", + "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()", + "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Event" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity|" + }, + { + "identity": "v2", + "map": "OBX" + }, + { + "identity": "rim", + "map": "Observation[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.id", + "path": "Observation.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Observation.meta", + "path": "Observation.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Observation.implicitRules", + "path": "Observation.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Observation.language", + "path": "Observation.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Observation.text", + "path": "Observation.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Observation.contained", + "path": "Observation.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.extension", + "path": "Observation.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.modifierExtension", + "path": "Observation.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.identifier", + "path": "Observation.identifier", + "short": "Business Identifier for observation", + "definition": "A unique identifier assigned to this observation.", + "requirements": "Allows observations to be distinguished and referenced.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.identifier" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4." + }, + { + "identity": "rim", + "map": "id" + } + ] + }, + { + "id": "Observation.basedOn", + "path": "Observation.basedOn", + "short": "Fulfills plan, proposal or order", + "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.", + "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.", + "alias": [ + "Fulfills" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.basedOn", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DeviceRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/NutritionOrder|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.basedOn" + }, + { + "identity": "v2", + "map": "ORC" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]" + } + ] + }, + { + "id": "Observation.partOf", + "path": "Observation.partOf", + "short": "Part of referenced event", + "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.", + "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below for guidance on referencing another Observation.", + "alias": [ + "Container" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.partOf", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationDispense|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Immunization|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.partOf" + }, + { + "identity": "v2", + "map": "Varies by domain" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=FLFS].target" + } + ] + }, + { + "id": "Observation.status", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", + "valueString": "default: final" + } + ], + "path": "Observation.status", + "short": "registered | preliminary | final | amended +", + "definition": "The status of the result value.", + "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", + "requirements": "Need to track the status of individual results. Some results are finalized before the whole report is finalized.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationStatus" + } + ], + "strength": "required", + "description": "Codes providing the status of an observation.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "sct-concept", + "map": "< 445584004 |Report by finality status|" + }, + { + "identity": "v2", + "map": "OBX-11" + }, + { + "identity": "rim", + "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\"" + } + ] + }, + { + "id": "Observation.category", + "path": "Observation.category", + "short": "Classification of type of observation", + "definition": "A code that classifies the general type of observation being made.", + "comment": "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.", + "requirements": "Used for filtering what observations are retrieved and displayed.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.category", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCategory" + } + ], + "strength": "preferred", + "description": "Codes for high level observation categories.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-category|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code" + } + ] + }, + { + "id": "Observation.code", + "path": "Observation.code", + "short": "Manner of death", + "definition": "Describes what was observed. Sometimes this is called the observation \"name\".", + "comment": "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.", + "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.", + "alias": [ + "Name" + ], + "min": 1, + "max": "1", + "base": { + "path": "Observation.code", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "patternCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "69449-7" + } + ] + }, + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCode" + } + ], + "strength": "example", + "description": "Codes identifying names of simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.code" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "code" + }, + { + "identity": "sct-attr", + "map": "116680003 |Is a|" + } + ] + }, + { + "id": "Observation.subject", + "path": "Observation.subject", + "short": "Who and/or what the observation is about", + "definition": "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.", + "comment": "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.", + "requirements": "Observations have no value if you don't know who or what they're about.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.subject", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "PID-3" + }, + { + "identity": "rim", + "map": "participation[typeCode=RTGT]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Observation.focus", + "path": "Observation.focus", + "short": "What the observation is about, when it is not about the subject of record", + "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.", + "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/R4/extension-observation-focuscode.html).", + "min": 0, + "max": "*", + "base": { + "path": "Observation.focus", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "participation[typeCode=SBJ]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Observation.encounter", + "path": "Observation.encounter", + "short": "Healthcare event during which this observation is made", + "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.", + "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).", + "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.", + "alias": [ + "Context" + ], + "min": 0, + "max": "1", + "base": { + "path": "Observation.encounter", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.context" + }, + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "v2", + "map": "PV1" + }, + { + "identity": "rim", + "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.effective[x]", + "path": "Observation.effective[x]", + "short": "Clinically relevant time/time-period for observation", + "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.", + "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/R4/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.", + "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.", + "alias": [ + "Occurrence" + ], + "min": 0, + "max": "1", + "base": { + "path": "Observation.effective[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + }, + { + "code": "Period" + }, + { + "code": "Timing" + }, + { + "code": "instant" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.done[x]" + }, + { + "identity": "v2", + "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)" + }, + { + "identity": "rim", + "map": "effectiveTime" + } + ] + }, + { + "id": "Observation.issued", + "path": "Observation.issued", + "short": "Date/Time this version was made available", + "definition": "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.", + "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/R4/resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.issued", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "instant" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.recorded" + }, + { + "identity": "v2", + "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)" + }, + { + "identity": "rim", + "map": "participation[typeCode=AUT].time" + } + ] + }, + { + "id": "Observation.performer", + "path": "Observation.performer", + "short": "Who is responsible for the observation", + "definition": "Who was responsible for asserting the observed value as \"true\".", + "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.performer", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1", + "http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.actor" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'" + }, + { + "identity": "rim", + "map": "participation[typeCode=PRF]" + } + ] + }, + { + "id": "Observation.value[x]", + "path": "Observation.value[x]", + "short": "Value representing the actual manner of death", + "definition": "The information determined as a result of making the observation, if the information has a simple value.", + "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "condition": [ + "obs-7" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.dataAbsentReason", + "path": "Observation.dataAbsentReason", + "short": "Why the result is missing", + "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.", + "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.", + "requirements": "For many results it is necessary to handle exceptional values in measurements.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.dataAbsentReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "obs-6" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationValueAbsentReason" + } + ], + "strength": "extensible", + "description": "Codes specifying why the result (`Observation.value[x]`) is missing.", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": "value.nullFlavor" + } + ] + }, + { + "id": "Observation.interpretation", + "path": "Observation.interpretation", + "short": "High, low, normal, etc.", + "definition": "A categorical assessment of an observation value. For example, high, low, normal.", + "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.", + "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.", + "alias": [ + "Abnormal Flag" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.interpretation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationInterpretation" + } + ], + "strength": "extensible", + "description": "Codes identifying interpretations of observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values|" + }, + { + "identity": "v2", + "map": "OBX-8" + }, + { + "identity": "rim", + "map": "interpretationCode" + }, + { + "identity": "sct-attr", + "map": "363713009 |Has interpretation|" + } + ] + }, + { + "id": "Observation.note", + "path": "Observation.note", + "short": "Comments about the observation", + "definition": "Comments about the observation or the results.", + "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.", + "requirements": "Need to be able to provide free text additional information.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)" + }, + { + "identity": "rim", + "map": "subjectOf.observationEvent[code=\"annotation\"].value" + } + ] + }, + { + "id": "Observation.bodySite", + "path": "Observation.bodySite", + "short": "Observed body part", + "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).", + "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/R4/extension-bodysite.html).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.bodySite", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "BodySite" + } + ], + "strength": "example", + "description": "Codes describing anatomical locations. May include laterality.", + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 123037004 |Body structure|" + }, + { + "identity": "v2", + "map": "OBX-20" + }, + { + "identity": "rim", + "map": "targetSiteCode" + }, + { + "identity": "sct-attr", + "map": "718497002 |Inherent location|" + } + ] + }, + { + "id": "Observation.method", + "path": "Observation.method", + "short": "How it was done", + "definition": "Indicates the mechanism used to perform the observation.", + "comment": "Only used if not implicit in code for Observation.code.", + "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.method", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationMethod" + } + ], + "strength": "example", + "description": "Methods for simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "OBX-17" + }, + { + "identity": "rim", + "map": "methodCode" + } + ] + }, + { + "id": "Observation.specimen", + "path": "Observation.specimen", + "short": "Specimen used for this observation", + "definition": "The specimen that was used when this observation was made.", + "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.specimen", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 123038009 |Specimen|" + }, + { + "identity": "v2", + "map": "SPM segment" + }, + { + "identity": "rim", + "map": "participation[typeCode=SPC].specimen" + }, + { + "identity": "sct-attr", + "map": "704319004 |Inherent in|" + } + ] + }, + { + "id": "Observation.device", + "path": "Observation.device", + "short": "(Measurement) Device", + "definition": "The device used to generate the observation data.", + "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.device", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Device|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DeviceMetric|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 49062001 |Device|" + }, + { + "identity": "v2", + "map": "OBX-17 / PRT -10" + }, + { + "identity": "rim", + "map": "participation[typeCode=DEV]" + }, + { + "identity": "sct-attr", + "map": "424226004 |Using device|" + } + ] + }, + { + "id": "Observation.referenceRange", + "path": "Observation.referenceRange", + "short": "Provides guide for interpretation", + "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.", + "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.", + "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.referenceRange", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "obs-3", + "severity": "error", + "human": "Must have at least a low or a high or text", + "expression": "low.exists() or high.exists() or text.exists()", + "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX.7" + }, + { + "identity": "rim", + "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.referenceRange.id", + "path": "Observation.referenceRange.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.referenceRange.extension", + "path": "Observation.referenceRange.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.referenceRange.modifierExtension", + "path": "Observation.referenceRange.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.referenceRange.low", + "path": "Observation.referenceRange.low", + "short": "Low Range, if relevant", + "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.low", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "condition": [ + "obs-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:IVL_PQ.low" + } + ] + }, + { + "id": "Observation.referenceRange.high", + "path": "Observation.referenceRange.high", + "short": "High Range, if relevant", + "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.high", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "condition": [ + "obs-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:IVL_PQ.high" + } + ] + }, + { + "id": "Observation.referenceRange.type", + "path": "Observation.referenceRange.type", + "short": "Reference range qualifier", + "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.", + "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.", + "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationRangeMeaning" + } + ], + "strength": "preferred", + "description": "Code for the meaning of a reference range.", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|" + }, + { + "identity": "v2", + "map": "OBX-10" + }, + { + "identity": "rim", + "map": "interpretationCode" + } + ] + }, + { + "id": "Observation.referenceRange.appliesTo", + "path": "Observation.referenceRange.appliesTo", + "short": "Reference range population", + "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.", + "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.", + "requirements": "Need to be able to identify the target population for proper interpretation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.referenceRange.appliesTo", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationRangeType" + } + ], + "strength": "example", + "description": "Codes identifying the population the reference range applies to.", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|" + }, + { + "identity": "v2", + "map": "OBX-10" + }, + { + "identity": "rim", + "map": "interpretationCode" + } + ] + }, + { + "id": "Observation.referenceRange.age", + "path": "Observation.referenceRange.age", + "short": "Applicable age range, if relevant", + "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.", + "requirements": "Some analytes vary greatly over age.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.age", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Range" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value" + } + ] + }, + { + "id": "Observation.referenceRange.text", + "path": "Observation.referenceRange.text", + "short": "Text based reference range in an observation", + "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:ST" + } + ] + }, + { + "id": "Observation.hasMember", + "path": "Observation.hasMember", + "short": "Related resource that belongs to the Observation group", + "definition": "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.", + "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/R4/questionnaireresponse.html) into a final score and represent the score as an Observation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.hasMember", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "Relationships established by OBX-4 usage" + }, + { + "identity": "rim", + "map": "outBoundRelationship" + } + ] + }, + { + "id": "Observation.derivedFrom", + "path": "Observation.derivedFrom", + "short": "Related measurements the observation is made from", + "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.", + "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.derivedFrom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Media|4.0.1", + "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "Relationships established by OBX-4 usage" + }, + { + "identity": "rim", + "map": ".targetObservation" + } + ] + }, + { + "id": "Observation.component", + "path": "Observation.component", + "short": "Component results", + "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.", + "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.component", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "containment by OBX-4?" + }, + { + "identity": "rim", + "map": "outBoundRelationship[typeCode=COMP]" + } + ] + }, + { + "id": "Observation.component.id", + "path": "Observation.component.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component.extension", + "path": "Observation.component.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component.modifierExtension", + "path": "Observation.component.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.component.code", + "path": "Observation.component.code", + "short": "Type of component observation (code / type)", + "definition": "Describes what was observed. Sometimes this is called the observation \"code\".", + "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.", + "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.component.code", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCode" + } + ], + "strength": "example", + "description": "Codes identifying names of simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "code" + } + ] + }, + { + "id": "Observation.component.value[x]", + "path": "Observation.component.value[x]", + "short": "Actual component result", + "definition": "The information determined as a result of making the observation, if the information has a simple value.", + "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.", + "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity" + }, + { + "code": "CodeableConcept" + }, + { + "code": "string" + }, + { + "code": "boolean" + }, + { + "code": "integer" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "SampledData" + }, + { + "code": "time" + }, + { + "code": "dateTime" + }, + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "363714003 |Interprets| < 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.component.dataAbsentReason", + "path": "Observation.component.dataAbsentReason", + "short": "Why the component result is missing", + "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.", + "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.", + "requirements": "For many results it is necessary to handle exceptional values in measurements.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.dataAbsentReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "obs-6" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationValueAbsentReason" + } + ], + "strength": "extensible", + "description": "Codes specifying why the result (`Observation.value[x]`) is missing.", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": "value.nullFlavor" + } + ] + }, + { + "id": "Observation.component.interpretation", + "path": "Observation.component.interpretation", + "short": "High, low, normal, etc.", + "definition": "A categorical assessment of an observation value. For example, high, low, normal.", + "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.", + "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.", + "alias": [ + "Abnormal Flag" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.interpretation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationInterpretation" + } + ], + "strength": "extensible", + "description": "Codes identifying interpretations of observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values|" + }, + { + "identity": "v2", + "map": "OBX-8" + }, + { + "identity": "rim", + "map": "interpretationCode" + }, + { + "identity": "sct-attr", + "map": "363713009 |Has interpretation|" + } + ] + }, + { + "id": "Observation.component.referenceRange", + "path": "Observation.component.referenceRange", + "short": "Provides guide for interpretation of component result", + "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.", + "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.", + "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.referenceRange", + "min": 0, + "max": "*" + }, + "contentReference": "http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX.7" + }, + { + "identity": "rim", + "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Observation", + "path": "Observation" + }, + { + "id": "Observation.id", + "path": "Observation.id", + "min": 1 + }, + { + "id": "Observation.code", + "path": "Observation.code", + "short": "Manner of death", + "patternCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "69449-7" + } + ] + } + }, + { + "id": "Observation.subject", + "path": "Observation.subject", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ] + }, + { + "id": "Observation.value[x]", + "path": "Observation.value[x]", + "short": "Value representing the actual manner of death", + "min": 1, + "type": [ + { + "code": "string" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzMedication.json b/packages/fhir-eswatini/spec/StructureDefinition-SzMedication.json new file mode 100644 index 0000000000..965461493b --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzMedication.json @@ -0,0 +1,1342 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzMedication", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzMedication

\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Medication 0..*MedicationDefinition of a Medication
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" code S1..1CodeableConceptELMIS Product Code
Binding: Value Set: Product Code Value Set (required)

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzMedication", + "version": "0.1.0", + "name": "EswatiniMedication", + "title": "Eswatini Medication Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Definition of Eswatinit Medication Profile", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "script10.6", + "uri": "http://ncpdp.org/SCRIPT10_6", + "name": "Mapping to NCPDP SCRIPT 10.6" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Medication", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Medication", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Medication", + "path": "Medication", + "short": "Definition of a Medication", + "definition": "This resource is primarily used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use.", + "min": 0, + "max": "*", + "base": { + "path": "Medication", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "script10.6", + "map": "NewRx/MedicationPrescribed\r-or-\rRxFill/MedicationDispensed\r-or-\rRxHistoryResponse/MedicationDispensed\r-or-\rRxHistoryResponse/MedicationPrescribed" + }, + { + "identity": "rim", + "map": "ManufacturedProduct[classCode=ADMM]" + } + ] + }, + { + "id": "Medication.id", + "path": "Medication.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Medication.meta", + "path": "Medication.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Medication.implicitRules", + "path": "Medication.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Medication.language", + "path": "Medication.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Medication.text", + "path": "Medication.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Medication.contained", + "path": "Medication.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Medication.extension", + "path": "Medication.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Medication.modifierExtension", + "path": "Medication.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Medication.identifier", + "path": "Medication.identifier", + "short": "Business identifier for this medication", + "definition": "Business identifier for this medication.", + "comment": "The serial number could be included as an identifier.", + "min": 0, + "max": "*", + "base": { + "path": "Medication.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "rim", + "map": ".id" + } + ] + }, + { + "id": "Medication.code", + "path": "Medication.code", + "short": "ELMIS Product Code", + "definition": "ELMIS product code used to identify the medication", + "comment": "Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) will have the coding.userSelected set to true. As described in the coding datatype: \"A coding may be marked as a \"userSelected\" if a user selected the particular coded value in a user interface (e.g. the user selects an item in a pick-list). If a user selected coding exists, it is the preferred choice for performing translations etc. Other codes can only be literal translations to alternative code systems, or codes at a lower level of granularity (e.g. a generic code for a vendor-specific primary one).", + "min": 1, + "max": "1", + "base": { + "path": "Medication.code", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzProductCodeVS" + }, + "mapping": [ + { + "identity": "script10.6", + "map": "coding.code = //element(*,MedicationType)/DrugCoded/ProductCode\r\rcoding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier\r\rcoding.display = //element(*,MedicationType)/DrugDescription" + }, + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "v2", + "map": "RXO-1.1-Requested Give Code.code / RXE-2.1-Give Code.code / RXD-2.1-Dispense/Give Code.code / RXG-4.1-Give Code.code /RXA-5.1-Administered Code.code / RXC-2.1 Component Code" + }, + { + "identity": "rim", + "map": ".code" + } + ] + }, + { + "id": "Medication.status", + "path": "Medication.status", + "short": "active | inactive | entered-in-error", + "definition": "A code to indicate if the medication is in active use.", + "comment": "This status is intended to identify if the medication in a local system is in active use within a drug database or inventory. For example, a pharmacy system may create a new drug file record for a compounded product \"ABC Hospital Special Cream\" with an active status. At some point in the future, it may be determined that the drug record was created with an error and the status is changed to \"entered in error\". This status is not intended to specify if a medication is part of a particular formulary. It is possible that the drug record may be referenced by multiple formularies or catalogues and each of those entries would have a separate status.", + "min": 0, + "max": "1", + "base": { + "path": "Medication.status", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element changes the interpretation of all descriptive attributes.", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationStatus" + } + ], + "strength": "required", + "description": "A coded concept defining if the medication is in active use.", + "valueSet": "http://hl7.org/fhir/ValueSet/medication-status|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": ".statusCode" + } + ] + }, + { + "id": "Medication.manufacturer", + "path": "Medication.manufacturer", + "short": "Manufacturer of the item", + "definition": "Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.", + "min": 0, + "max": "1", + "base": { + "path": "Medication.manufacturer", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "script10.6", + "map": "no mapping" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "RXD-20-Substance Manufacturer Name / RXG-21-Substance Manufacturer Name / RXA-17-Substance Manufacturer Name" + }, + { + "identity": "rim", + "map": ".player.scopingRole[typeCode=MANU].scoper" + } + ] + }, + { + "id": "Medication.form", + "path": "Medication.form", + "short": "powder | tablets | capsule +", + "definition": "Describes the form of the item. Powder; tablets; capsule.", + "comment": "When Medication is referenced from MedicationRequest, this is the ordered form. When Medication is referenced within MedicationDispense, this is the dispensed form. When Medication is referenced within MedicationAdministration, this is administered form.", + "min": 0, + "max": "1", + "base": { + "path": "Medication.form", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationForm" + } + ], + "strength": "example", + "description": "A coded concept defining the form of a medication.", + "valueSet": "http://hl7.org/fhir/ValueSet/medication-form-codes|4.0.1" + }, + "mapping": [ + { + "identity": "script10.6", + "map": "coding.code = //element(*,DrugCodedType)/FormCode\r\rcoding.system = //element(*,DrugCodedType)/FormSourceCode" + }, + { + "identity": "v2", + "map": "RXO-5-Requested Dosage Form / RXE-6-Give Dosage Form / RXD-6-Actual Dosage Form / RXG-8-Give Dosage Form / RXA-8-Administered Dosage Form" + }, + { + "identity": "rim", + "map": ".formCode" + } + ] + }, + { + "id": "Medication.amount", + "path": "Medication.amount", + "short": "Amount of drug in package", + "definition": "Specific amount of the drug in the packaged product. For example, when specifying a product that has the same strength (For example, Insulin glargine 100 unit per mL solution for injection), this attribute provides additional clarification of the package amount (For example, 3 mL, 10mL, etc.).", + "min": 0, + "max": "1", + "base": { + "path": "Medication.amount", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Ratio" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": ".quantity" + } + ] + }, + { + "id": "Medication.ingredient", + "path": "Medication.ingredient", + "short": "Active or inactive ingredient", + "definition": "Identifies a particular constituent of interest in the product.", + "comment": "The ingredients need not be a complete list. If an ingredient is not specified, this does not indicate whether an ingredient is present or absent. If an ingredient is specified it does not mean that all ingredients are specified. It is possible to specify both inactive and active ingredients.", + "min": 0, + "max": "*", + "base": { + "path": "Medication.ingredient", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".scopesRole[typeCode=INGR]" + } + ] + }, + { + "id": "Medication.ingredient.id", + "path": "Medication.ingredient.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Medication.ingredient.extension", + "path": "Medication.ingredient.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Medication.ingredient.modifierExtension", + "path": "Medication.ingredient.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Medication.ingredient.item[x]", + "path": "Medication.ingredient.item[x]", + "short": "The actual ingredient or content", + "definition": "The actual ingredient - either a substance (simple ingredient) or another medication of a medication.", + "requirements": "The ingredient may reference a substance (for example, amoxicillin) or another medication (for example in the case of a compounded product, Glaxal Base).", + "min": 1, + "max": "1", + "base": { + "path": "Medication.ingredient.item[x]", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + }, + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Substance|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Medication|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "coding.code = //element(*,MedicationType)/DrugCoded/ProductCode\r\rcoding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier\r\rcoding.display = //element(*,MedicationType)/DrugDescription" + }, + { + "identity": "v2", + "map": "RXC-2-Component Code if medication: RXO-1-Requested Give Code / RXE-2-Give Code / RXD-2-Dispense/Give Code / RXG-4-Give Code / RXA-5-Administered Code" + }, + { + "identity": "rim", + "map": ".player" + } + ] + }, + { + "id": "Medication.ingredient.isActive", + "path": "Medication.ingredient.isActive", + "short": "Active ingredient indicator", + "definition": "Indication of whether this ingredient affects the therapeutic action of the drug.", + "requirements": "True indicates that the ingredient affects the therapeutic action of the drug (i.e. active). \rFalse indicates that the ingredient does not affect the therapeutic action of the drug (i.e. inactive).", + "min": 0, + "max": "1", + "base": { + "path": "Medication.ingredient.isActive", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "NA" + } + ] + }, + { + "id": "Medication.ingredient.strength", + "path": "Medication.ingredient.strength", + "short": "Quantity of ingredient present", + "definition": "Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet. This is expressed as a ratio where the numerator is 250mg and the denominator is 1 tablet.", + "min": 0, + "max": "1", + "base": { + "path": "Medication.ingredient.strength", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Ratio" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "//element(*,DrugCodedType)/Strength" + }, + { + "identity": "v2", + "map": "RXC-3-Component Amount & RXC-4-Component Units if medication: RXO-2-Requested Give Amount - Minimum & RXO-4-Requested Give Units / RXO-3-Requested Give Amount - Maximum & RXO-4-Requested Give Units / RXO-11-Requested Dispense Amount & RXO-12-Requested Dispense Units / RXE-3-Give Amount - Minimum & RXE-5-Give Units / RXE-4-Give Amount - Maximum & RXE-5-Give Units / RXE-10-Dispense Amount & RXE-10-Dispense Units" + }, + { + "identity": "rim", + "map": ".quantity" + } + ] + }, + { + "id": "Medication.batch", + "path": "Medication.batch", + "short": "Details about packaged medications", + "definition": "Information that only applies to packages (not products).", + "min": 0, + "max": "1", + "base": { + "path": "Medication.batch", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "no mapping" + }, + { + "identity": "rim", + "map": ".player[classCode=CONT]" + } + ] + }, + { + "id": "Medication.batch.id", + "path": "Medication.batch.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Medication.batch.extension", + "path": "Medication.batch.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Medication.batch.modifierExtension", + "path": "Medication.batch.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Medication.batch.lotNumber", + "path": "Medication.batch.lotNumber", + "short": "Identifier assigned to batch", + "definition": "The assigned lot number of a batch of the specified product.", + "min": 0, + "max": "1", + "base": { + "path": "Medication.batch.lotNumber", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "no mapping" + }, + { + "identity": "v2", + "map": "RXA-15 Substance Lot Number / RXG-19 Substance Lot Number" + }, + { + "identity": "rim", + "map": ".id" + } + ] + }, + { + "id": "Medication.batch.expirationDate", + "path": "Medication.batch.expirationDate", + "short": "When batch will expire", + "definition": "When this specific batch of product will expire.", + "min": 0, + "max": "1", + "base": { + "path": "Medication.batch.expirationDate", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "no mapping" + }, + { + "identity": "v2", + "map": "RXA-16 Substance Expiration Date / RXG-20 Substance Expiration Date" + }, + { + "identity": "rim", + "map": "participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].expirationTime" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Medication", + "path": "Medication" + }, + { + "id": "Medication.id", + "path": "Medication.id", + "min": 1 + }, + { + "id": "Medication.code", + "path": "Medication.code", + "short": "ELMIS Product Code", + "definition": "ELMIS product code used to identify the medication", + "min": 1, + "mustSupport": true, + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzProductCodeVS" + } + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzMedicationDispense.json b/packages/fhir-eswatini/spec/StructureDefinition-SzMedicationDispense.json new file mode 100644 index 0000000000..65567edc7d --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzMedicationDispense.json @@ -0,0 +1,2309 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzMedicationDispense", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzMedicationDispense

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" MedicationDispense 0..*MedicationDispenseDispensing a medication to a named patient
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" Slices for medication[x] 1..1CodeableConceptWhat medication was supplied
Slice: Unordered, Open by type:$this
\".\"\".\"\".\"\".\" medication[x]:medicationCodeableConcept S1..1CodeableConceptSupplied Medication
\".\"\".\"\".\" performer 0..*BackboneElementDispensing Practitioner
\".\"\".\"\".\"\".\" actor 1..1Reference(Eswatini Practitioner Profile)Individual who was performing
\".\"\".\"\".\" location 1..1Reference(Eswatini Location Profile)Where the dispense occurred
\".\"\".\"\".\" quantity S1..1SimpleQuantity(4.0.1)Amount dispensed

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzMedicationDispense", + "version": "0.1.0", + "name": "EswatiniMedicationDispense", + "title": "Eswatini Medication Dispense Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Definition of Eswatinit Medication Dispense Profile", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "rx-dispense-rmim", + "uri": "http://www.hl7.org/v3/PORX_RM020070UV", + "name": "V3 Pharmacy Dispense RMIM" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "MedicationDispense", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationDispense", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "MedicationDispense", + "path": "MedicationDispense", + "short": "Dispensing a medication to a named patient", + "definition": "Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationDispense", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "mdd-1", + "severity": "error", + "human": "whenHandedOver cannot be before whenPrepared", + "expression": "whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared", + "xpath": "not(exists(f:whenHandedOver/@value)) or not(exists(f:whenPrepared/@value)) or ( f:whenHandedOver/@value >= f:whenPrepared/@value)", + "source": "http://hl7.org/fhir/StructureDefinition/MedicationDispense" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Event" + }, + { + "identity": "rim", + "map": "Supply[moodCode=EVN]" + } + ] + }, + { + "id": "MedicationDispense.id", + "path": "MedicationDispense.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "MedicationDispense.meta", + "path": "MedicationDispense.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "MedicationDispense.implicitRules", + "path": "MedicationDispense.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "MedicationDispense.language", + "path": "MedicationDispense.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "MedicationDispense.text", + "path": "MedicationDispense.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "MedicationDispense.contained", + "path": "MedicationDispense.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationDispense.extension", + "path": "MedicationDispense.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationDispense.modifierExtension", + "path": "MedicationDispense.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationDispense.identifier", + "path": "MedicationDispense.identifier", + "short": "External identifier", + "definition": "Identifiers associated with this Medication Dispense that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.", + "comment": "This is a business identifier, not a resource identifier.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationDispense.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.identifier" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "rim", + "map": ".id" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationDispense.id" + } + ] + }, + { + "id": "MedicationDispense.partOf", + "path": "MedicationDispense.partOf", + "short": "Event that dispense is part of", + "definition": "The procedure that trigger the dispense.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationDispense.partOf", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.partOf" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COMP]/target[classCode=PROC,moodCode=EVN]" + } + ] + }, + { + "id": "MedicationDispense.status", + "path": "MedicationDispense.status", + "short": "preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown", + "definition": "A code specifying the state of the set of dispense events.", + "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationDispense.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationDispenseStatus" + } + ], + "strength": "required", + "description": "A coded concept specifying the state of the dispense event.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-status|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "rim", + "map": ".statusCode" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationDispense.SupplyEvent.statusCode" + } + ] + }, + { + "id": "MedicationDispense.statusReason[x]", + "path": "MedicationDispense.statusReason[x]", + "short": "Why a dispense was not performed", + "definition": "Indicates the reason why a dispense was not performed.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationDispense.statusReason[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + }, + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/DetectedIssue|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationDispenseStatusReason" + } + ], + "strength": "example", + "description": "A code describing why a dispense was not performed.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-status-reason|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.statusReason" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=\"not done reason\"].value" + } + ] + }, + { + "id": "MedicationDispense.category", + "path": "MedicationDispense.category", + "short": "Type of medication dispense", + "definition": "Indicates the type of medication dispense (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).", + "comment": "The category can be used to include where the medication is expected to be consumed or other types of dispenses. Invariants can be used to bind to different value sets when profiling to bind.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationDispense.category", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationDispenseCategory" + } + ], + "strength": "preferred", + "description": "A code describing where the dispensed medication is expected to be consumed or administered.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-category|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication dispense\"].value" + } + ] + }, + { + "id": "MedicationDispense.medication[x]", + "path": "MedicationDispense.medication[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "closed" + }, + "short": "What medication was supplied", + "definition": "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.", + "comment": "If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the medication resource is recommended. For example, if you require form or lot number, then you must reference the Medication resource.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationDispense.medication[x]", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationCode" + } + ], + "strength": "example", + "description": "A coded concept identifying which substance or product can be dispensed.", + "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.code" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "v2", + "map": "RXD-2-Dispense/Give Code" + }, + { + "identity": "rim", + "map": ".participation[typeCode=PRD].role" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationRequest.component1.AdministrationRequest.consumable" + } + ] + }, + { + "id": "MedicationDispense.medication[x]:medicationCodeableConcept", + "path": "MedicationDispense.medication[x]", + "sliceName": "medicationCodeableConcept", + "short": "Supplied Medication", + "definition": "Details of the medication that is being dispensed", + "comment": "If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the medication resource is recommended. For example, if you require form or lot number, then you must reference the Medication resource.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationDispense.medication[x]", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationCode" + } + ], + "strength": "example", + "description": "A coded concept identifying which substance or product can be dispensed.", + "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.code" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "v2", + "map": "RXD-2-Dispense/Give Code" + }, + { + "identity": "rim", + "map": ".participation[typeCode=PRD].role" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationRequest.component1.AdministrationRequest.consumable" + } + ] + }, + { + "id": "MedicationDispense.subject", + "path": "MedicationDispense.subject", + "short": "Who the dispense is for", + "definition": "A link to a resource representing the person or the group to whom the medication will be given.", + "comment": "SubstanceAdministration->subject->Patient.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationDispense.subject", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Group|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "PID-3-Patient ID List" + }, + { + "identity": "rim", + "map": ".participation[typeCode=SBJ].role[classCode=PAT]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "MedicationDispense.context", + "path": "MedicationDispense.context", + "short": "Encounter / Episode associated with event", + "definition": "The encounter or episode of care that establishes the context for this event.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationDispense.context", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1", + "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.context" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=\"type of encounter or episode\"]" + } + ] + }, + { + "id": "MedicationDispense.supportingInformation", + "path": "MedicationDispense.supportingInformation", + "short": "Information that supports the dispensing of the medication", + "definition": "Additional information that supports the medication being dispensed.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationDispense.supportingInformation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]" + } + ] + }, + { + "id": "MedicationDispense.performer", + "path": "MedicationDispense.performer", + "short": "Dispensing Practitioner", + "definition": "Practitioner responsible for the dispensation of the medication", + "min": 0, + "max": "*", + "base": { + "path": "MedicationDispense.performer", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer" + }, + { + "identity": "rim", + "map": ".participation[typeCode=PRF]" + } + ] + }, + { + "id": "MedicationDispense.performer.id", + "path": "MedicationDispense.performer.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationDispense.performer.extension", + "path": "MedicationDispense.performer.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationDispense.performer.modifierExtension", + "path": "MedicationDispense.performer.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationDispense.performer.function", + "path": "MedicationDispense.performer.function", + "short": "Who performed the dispense and what they did", + "definition": "Distinguishes the type of performer in the dispense. For example, date enterer, packager, final checker.", + "requirements": "Allows disambiguation of the types of involvement of different performers.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationDispense.performer.function", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationDispensePerformerFunction" + } + ], + "strength": "example", + "description": "A code describing the role an individual played in dispensing a medication.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationdispense-performer-function|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "participation[typeCode=PRF].functionCode" + } + ] + }, + { + "id": "MedicationDispense.performer.actor", + "path": "MedicationDispense.performer.actor", + "short": "Individual who was performing", + "definition": "The device, practitioner, etc. who performed the action. It should be assumed that the actor is the dispenser of the medication.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationDispense.performer.actor", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.actor" + }, + { + "identity": "rim", + "map": ".role" + } + ] + }, + { + "id": "MedicationDispense.location", + "path": "MedicationDispense.location", + "short": "Where the dispense occurred", + "definition": "The principal physical location where the dispense was performed.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationDispense.location", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".participation[typeCode=LOC].role" + } + ] + }, + { + "id": "MedicationDispense.authorizingPrescription", + "path": "MedicationDispense.authorizingPrescription", + "short": "Medication order that authorizes the dispense", + "definition": "Indicates the medication order that is being dispensed against.", + "comment": "Maps to basedOn in Event logical model.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationDispense.authorizingPrescription", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.basedOn" + }, + { + "identity": "v2", + "map": "ORC-2 Placer Order Number" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=FLFS].target[moodCode=RQO]" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationDispense.inFulfillmentOf" + } + ] + }, + { + "id": "MedicationDispense.type", + "path": "MedicationDispense.type", + "short": "Trial fill, partial fill, emergency fill, etc.", + "definition": "Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationDispense.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationDispenseType" + } + ], + "strength": "example", + "description": "Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType" + }, + "mapping": [ + { + "identity": "v2", + "map": "RXD-33-Dispense Type" + }, + { + "identity": "rim", + "map": ".code" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationDispense.SupplyEvent.code" + } + ] + }, + { + "id": "MedicationDispense.quantity", + "path": "MedicationDispense.quantity", + "short": "Amount dispensed", + "definition": "The amount of medication that has been dispensed. Includes unit of measure.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationDispense.quantity", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system" + }, + { + "identity": "rim", + "map": ".quantity" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationDispense.SupplyEvent.quantity" + } + ] + }, + { + "id": "MedicationDispense.daysSupply", + "path": "MedicationDispense.daysSupply", + "short": "Amount of medication expressed as a timing amount", + "definition": "The amount of medication expressed as a timing amount.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationDispense.daysSupply", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "TQ1.6 Timing/Quantity Segment Service Duration.\rPrior to v2.5, ORC.7.3 Common Order Segment / Quantity/Timing / Duration component. This is a formatted string, first character for the time unit (e.g., D=days), followed by the value. For example, “D14” represents “14 days supply”\rFrom v2.5 on, TQ1.6 Timing/Quantity Segment / Service Duration. This is a CQ data type ( ^ ), thus for days supply, assuming the unit of measure is “days”, the numeric value is TQ1.6.1 (…|14^\rFor backwards compatibility, ORC.7 was permitted through v2.6. Both forms (field and segment) may be present in v2.5, v2.5.1, and v2.6" + }, + { + "identity": "rim", + "map": "effectiveUseTime" + } + ] + }, + { + "id": "MedicationDispense.whenPrepared", + "path": "MedicationDispense.whenPrepared", + "short": "When product was packaged and reviewed", + "definition": "The time when the dispensed product was packaged and reviewed.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationDispense.whenPrepared", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "RXD-3-Date/Time Dispensed" + }, + { + "identity": "rim", + "map": ".effectiveTime[xmi:type=IVL_TS].low" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationDispense.SupplyEvent.effectiveTime" + } + ] + }, + { + "id": "MedicationDispense.whenHandedOver", + "path": "MedicationDispense.whenHandedOver", + "short": "When product was given out", + "definition": "The time the dispensed product was provided to the patient or their representative.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationDispense.whenHandedOver", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.occurrence[x]" + }, + { + "identity": "v2", + "map": "RXD-3-Date/Time Dispensed" + }, + { + "identity": "rim", + "map": ".effectiveTime[xmi:type=IVL_TS].high" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationDispense.SupplyEvent.effectiveTime" + } + ] + }, + { + "id": "MedicationDispense.destination", + "path": "MedicationDispense.destination", + "short": "Where the medication was sent", + "definition": "Identification of the facility/location where the medication was shipped to, as part of the dispense event.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationDispense.destination", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Location|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "RXD-13 Dispense-to Location; RXD-30 Dispense to Pharmacy; RXD-31 Dispense to Pharmacy Address" + }, + { + "identity": "rim", + "map": ".participation[typeCode=DST].role" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationDispense.SupplyEvent.destination" + } + ] + }, + { + "id": "MedicationDispense.receiver", + "path": "MedicationDispense.receiver", + "short": "Who collected the medication", + "definition": "Identifies the person who picked up the medication. This will usually be a patient or their caregiver, but some cases exist where it can be a healthcare professional.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationDispense.receiver", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".participation[typeCode=RCV].role" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationDispense.SupplyEvent.receiver" + } + ] + }, + { + "id": "MedicationDispense.note", + "path": "MedicationDispense.note", + "short": "Information about the dispense", + "definition": "Extra information about the dispense that could not be conveyed in the other attributes.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationDispense.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.note" + }, + { + "identity": "v2", + "map": "RXD-9 Dispense Notes" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=ACT,moodCode=EVN]" + } + ] + }, + { + "id": "MedicationDispense.dosageInstruction", + "path": "MedicationDispense.dosageInstruction", + "short": "How the medication is to be used by the patient or administered by the caregiver", + "definition": "Indicates how the medication is to be used by the patient.", + "comment": "When the dose or rate is intended to change over the entire administration period (e.g. Tapering dose prescriptions), multiple instances of dosage instructions will need to be supplied to convey the different doses/rates.\rThe pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationDispense.dosageInstruction", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Dosage" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]" + } + ] + }, + { + "id": "MedicationDispense.substitution", + "path": "MedicationDispense.substitution", + "short": "Whether a substitution was performed on the dispense", + "definition": "Indicates whether or not substitution was made as part of the dispense. In some cases, substitution will be expected but does not happen, in other cases substitution is not expected but does happen. This block explains what substitution did or did not happen and why. If nothing is specified, substitution was not done.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationDispense.substitution", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COMP].target[classCode=SUBST, moodCode=EVN]" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationDispense.substitutionMade" + } + ] + }, + { + "id": "MedicationDispense.substitution.id", + "path": "MedicationDispense.substitution.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationDispense.substitution.extension", + "path": "MedicationDispense.substitution.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationDispense.substitution.modifierExtension", + "path": "MedicationDispense.substitution.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationDispense.substitution.wasSubstituted", + "path": "MedicationDispense.substitution.wasSubstituted", + "short": "Whether a substitution was or was not performed on the dispense", + "definition": "True if the dispenser dispensed a different drug or product from what was prescribed.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationDispense.substitution.wasSubstituted", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".actionNegationInd" + } + ] + }, + { + "id": "MedicationDispense.substitution.type", + "path": "MedicationDispense.substitution.type", + "short": "Code signifying whether a different drug was dispensed from what was prescribed", + "definition": "A code signifying whether a different drug was dispensed from what was prescribed.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationDispense.substitution.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationIntendedSubstitutionType" + } + ], + "strength": "example", + "description": "A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription.", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode" + }, + "mapping": [ + { + "identity": "v2", + "map": "RXO-9-Allow Substitutions / RXE-9-Substitution Status" + }, + { + "identity": "rim", + "map": ".code" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationDispense.substitutionMade.code" + } + ] + }, + { + "id": "MedicationDispense.substitution.reason", + "path": "MedicationDispense.substitution.reason", + "short": "Why was substitution made", + "definition": "Indicates the reason for the substitution (or lack of substitution) from what was prescribed.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationDispense.substitution.reason", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationIntendedSubstitutionReason" + } + ], + "strength": "example", + "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason" + }, + "mapping": [ + { + "identity": "rim", + "map": ".reasonCode" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationDispense.substitutionMade.reasonCode" + } + ] + }, + { + "id": "MedicationDispense.substitution.responsibleParty", + "path": "MedicationDispense.substitution.responsibleParty", + "short": "Who is responsible for the substitution", + "definition": "The person or organization that has primary responsibility for the substitution.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationDispense.substitution.responsibleParty", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".participation[typeCode=PFM].role[classCode=ASSIGN]" + }, + { + "identity": "rx-dispense-rmim", + "map": "CombinedMedicationDispense.substitutionMade.ResponsibleParty" + } + ] + }, + { + "id": "MedicationDispense.detectedIssue", + "path": "MedicationDispense.detectedIssue", + "short": "Clinical issue with action", + "definition": "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. drug-drug interaction, duplicate therapy, dosage alert etc.", + "comment": "This element can include a detected issue that has been identified either by a decision support system or by a clinician and may include information on the steps that were taken to address the issue.", + "alias": [ + "Contraindication", + "Drug Utilization Review (DUR)", + "Alert" + ], + "min": 0, + "max": "*", + "base": { + "path": "MedicationDispense.detectedIssue", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/DetectedIssue|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value" + } + ] + }, + { + "id": "MedicationDispense.eventHistory", + "path": "MedicationDispense.eventHistory", + "short": "A list of relevant lifecycle events", + "definition": "A summary of the events of interest that have occurred, such as when the dispense was verified.", + "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationDispense.eventHistory", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Provenance|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "MedicationDispense", + "path": "MedicationDispense" + }, + { + "id": "MedicationDispense.id", + "path": "MedicationDispense.id", + "min": 1 + }, + { + "id": "MedicationDispense.medication[x]", + "path": "MedicationDispense.medication[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "open" + } + }, + { + "id": "MedicationDispense.medication[x]:medicationCodeableConcept", + "path": "MedicationDispense.medication[x]", + "sliceName": "medicationCodeableConcept", + "short": "Supplied Medication", + "definition": "Details of the medication that is being dispensed", + "min": 1, + "max": "1", + "type": [ + { + "code": "CodeableConcept" + } + ], + "mustSupport": true + }, + { + "id": "MedicationDispense.performer", + "path": "MedicationDispense.performer", + "short": "Dispensing Practitioner", + "definition": "Practitioner responsible for the dispensation of the medication" + }, + { + "id": "MedicationDispense.performer.actor", + "path": "MedicationDispense.performer.actor", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner" + ] + } + ] + }, + { + "id": "MedicationDispense.location", + "path": "MedicationDispense.location", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation" + ] + } + ] + }, + { + "id": "MedicationDispense.quantity", + "path": "MedicationDispense.quantity", + "min": 1, + "mustSupport": true + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzMedicationRequest.json b/packages/fhir-eswatini/spec/StructureDefinition-SzMedicationRequest.json new file mode 100644 index 0000000000..0fb3c76aa6 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzMedicationRequest.json @@ -0,0 +1,4157 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzMedicationRequest", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzMedicationRequest

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" MedicationRequest 0..*MedicationRequestOrdering of medication for patient or group
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" Slices for medication[x] 1..1CodeableConceptMedication to be taken
Slice: Unordered, Open by type:$this
\".\"\".\"\".\"\".\" medication[x]:medicationCodeableConcept S1..1CodeableConceptMedication to be taken
Binding: Value Set: Product Code Value Set (required)
\".\"\".\"\".\" subject 1..1Reference(Eswatini Patient Profile)Who or group medication request is for
\".\"\".\"\".\" encounter 0..1Reference(Eswatini Encounter Profile)Encounter created as part of encounter/admission/stay
\".\"\".\"\".\" authoredOn 1..1dateTimeMedication Request Date
\".\"\".\"\".\" requester 0..1Reference(Eswatini Practitioner Profile)Who/What requested the Request
\".\"\".\"\".\" dosageInstruction S1..*DosageDosage Instruction
\".\"\".\"\".\"\".\" text 1..1stringDosage Instruction as Text
\".\"\".\"\".\"\".\" doseAndRate
\".\"\".\"\".\"\".\"\".\" Slices for dose[x] 1..1SimpleQuantity(4.0.1)Amount of medication per dose
Slice: Unordered, Open by type:$this
\".\"\".\"\".\"\".\"\".\"\".\" dose[x]:doseQuantity S1..1SimpleQuantityQuantity

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzMedicationRequest", + "version": "0.1.0", + "name": "EswatiniMedicationRequest", + "title": "Eswatini Medication Request Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Definition of Eswatinit Medication Request Profile", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "script10.6", + "uri": "http://ncpdp.org/SCRIPT10_6", + "name": "Mapping to NCPDP SCRIPT 10.6" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "MedicationRequest", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "MedicationRequest", + "path": "MedicationRequest", + "short": "Ordering of medication for patient or group", + "definition": "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.", + "alias": [ + "Prescription", + "Order" + ], + "min": 0, + "max": "*", + "base": { + "path": "MedicationRequest", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Request" + }, + { + "identity": "script10.6", + "map": "Message/Body/NewRx" + }, + { + "identity": "rim", + "map": "CombinedMedicationRequest" + } + ] + }, + { + "id": "MedicationRequest.id", + "path": "MedicationRequest.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "MedicationRequest.meta", + "path": "MedicationRequest.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "MedicationRequest.implicitRules", + "path": "MedicationRequest.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "MedicationRequest.language", + "path": "MedicationRequest.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "MedicationRequest.text", + "path": "MedicationRequest.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "MedicationRequest.contained", + "path": "MedicationRequest.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationRequest.extension", + "path": "MedicationRequest.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationRequest.modifierExtension", + "path": "MedicationRequest.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationRequest.identifier", + "path": "MedicationRequest.identifier", + "short": "External ids for this request", + "definition": "Identifiers associated with this medication request that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.", + "comment": "This is a business identifier, not a resource identifier.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationRequest.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.identifier" + }, + { + "identity": "script10.6", + "map": "Message/Header/PrescriberOrderNumber" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number" + }, + { + "identity": "rim", + "map": ".id" + } + ] + }, + { + "id": "MedicationRequest.status", + "path": "MedicationRequest.status", + "short": "active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown", + "definition": "A code specifying the current state of the order. Generally, this will be active or completed state.", + "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationRequest.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationRequestStatus" + } + ], + "strength": "required", + "description": "A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-status|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.status" + }, + { + "identity": "script10.6", + "map": "no mapping" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "rim", + "map": ".statusCode" + } + ] + }, + { + "id": "MedicationRequest.statusReason", + "path": "MedicationRequest.statusReason", + "short": "Reason for current status", + "definition": "Captures the reason for the current state of the MedicationRequest.", + "comment": "This is generally only used for \"exception\" statuses such as \"suspended\" or \"cancelled\". The reason why the MedicationRequest was created at all is captured in reasonCode, not here.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.statusReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationRequestStatusReason" + } + ], + "strength": "example", + "description": "Identifies the reasons for a given status.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-status-reason|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.statusReason" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde" + } + ] + }, + { + "id": "MedicationRequest.intent", + "path": "MedicationRequest.intent", + "short": "proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option", + "definition": "Whether the request is a proposal, plan, or an original order.", + "comment": "It is expected that the type of requester will be restricted for different stages of a MedicationRequest. For example, Proposals can be created by a patient, relatedPerson, Practitioner or Device. Plans can be created by Practitioners, Patients, RelatedPersons and Devices. Original orders can be created by a Practitioner only.\r\rAn instance-order is an instantiation of a request or order and may be used to populate Medication Administration Record.\r\rThis element is labeled as a modifier because the intent alters when and how the resource is actually applicable.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationRequest.intent", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationRequestIntent" + } + ], + "strength": "required", + "description": "The kind of medication order.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-intent|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.intent" + }, + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)" + } + ] + }, + { + "id": "MedicationRequest.category", + "path": "MedicationRequest.category", + "short": "Type of medication usage", + "definition": "Indicates the type of medication request (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).", + "comment": "The category can be used to include where the medication is expected to be consumed or other types of requests.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationRequest.category", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationRequestCategory" + } + ], + "strength": "example", + "description": "A coded concept identifying the category of medication request. For example, where the medication is to be consumed or administered, or the type of medication treatment.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-category|4.0.1" + }, + "mapping": [ + { + "identity": "script10.6", + "map": "Message/Body/NewRx/MedicationPrescribed/Directions\r\ror \r\rMessage/Body/NewRx/MedicationPrescribed/StructuredSIG" + }, + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication usage\"].value" + } + ] + }, + { + "id": "MedicationRequest.priority", + "path": "MedicationRequest.priority", + "short": "routine | urgent | asap | stat", + "definition": "Indicates how quickly the Medication Request should be addressed with respect to other requests.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.priority", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationRequestPriority" + } + ], + "strength": "required", + "description": "Identifies the level of importance to be assigned to actioning the request.", + "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.priority" + }, + { + "identity": "w5", + "map": "FiveWs.grade" + }, + { + "identity": "rim", + "map": ".priorityCode" + } + ] + }, + { + "id": "MedicationRequest.doNotPerform", + "path": "MedicationRequest.doNotPerform", + "short": "True if request is prohibiting action", + "definition": "If true indicates that the provider is asking for the medication request not to occur.", + "comment": "If do not perform is not specified, the request is a positive request e.g. \"do perform\".", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.doNotPerform", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because this element negates the request to occur (ie, this is a request for the medication not to be ordered or prescribed, etc)", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "SubstanceAdministration.actionNegationInd" + } + ] + }, + { + "id": "MedicationRequest.reported[x]", + "path": "MedicationRequest.reported[x]", + "short": "Reported rather than primary record", + "definition": "Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.reported[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + }, + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": ".participation[typeCode=INF].role" + } + ] + }, + { + "id": "MedicationRequest.medication[x]", + "path": "MedicationRequest.medication[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "closed" + }, + "short": "Medication to be taken", + "definition": "Identifies the medication being requested. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.", + "comment": "If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the Medication resource is recommended. For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationRequest.medication[x]", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationCode" + } + ], + "strength": "example", + "description": "A coded concept identifying substance or product that can be ordered.", + "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.code" + }, + { + "identity": "script10.6", + "map": "Message/Body/NewRx/MedicationPrescribed\r\rMedication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode\r\rMedication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier\r\rMedication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "v2", + "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code" + }, + { + "identity": "rim", + "map": "consumable.administrableMedication" + } + ] + }, + { + "id": "MedicationRequest.medication[x]:medicationCodeableConcept", + "path": "MedicationRequest.medication[x]", + "sliceName": "medicationCodeableConcept", + "short": "Medication to be taken", + "definition": "Identifies the medication being requested. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.", + "comment": "If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the Medication resource is recommended. For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationRequest.medication[x]", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzProductCodeVS" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.code" + }, + { + "identity": "script10.6", + "map": "Message/Body/NewRx/MedicationPrescribed\r\rMedication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode\r\rMedication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier\r\rMedication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "v2", + "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code" + }, + { + "identity": "rim", + "map": "consumable.administrableMedication" + } + ] + }, + { + "id": "MedicationRequest.subject", + "path": "MedicationRequest.subject", + "short": "Who or group medication request is for", + "definition": "A link to a resource representing the person or set of individuals to whom the medication will be given.", + "comment": "The subject on a medication request is mandatory. For the secondary use case where the actual subject is not provided, there still must be an anonymized subject specified.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationRequest.subject", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.subject" + }, + { + "identity": "script10.6", + "map": "Message/Body/NewRx/Patient\r\r(need detail to link to specific patient … Patient.Identification in SCRIPT)" + }, + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "PID-3-Patient ID List" + }, + { + "identity": "rim", + "map": ".participation[typeCode=AUT].role" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "MedicationRequest.encounter", + "path": "MedicationRequest.encounter", + "short": "Encounter created as part of encounter/admission/stay", + "definition": "The Encounter during which this [x] was created or to which the creation of this record is tightly associated.", + "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.\" If there is a need to link to episodes of care they will be handled with an extension.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.encounter", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.context" + }, + { + "identity": "script10.6", + "map": "no mapping" + }, + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "v2", + "map": "PV1-19-Visit Number" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=\"type of encounter or episode\"]" + } + ] + }, + { + "id": "MedicationRequest.supportingInformation", + "path": "MedicationRequest.supportingInformation", + "short": "Information to support ordering of the medication", + "definition": "Include additional information (for example, patient height and weight) that supports the ordering of the medication.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationRequest.supportingInformation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.supportingInfo" + }, + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]" + } + ] + }, + { + "id": "MedicationRequest.authoredOn", + "path": "MedicationRequest.authoredOn", + "short": "Medication Request Date", + "definition": "Date when the medication was requested", + "min": 1, + "max": "1", + "base": { + "path": "MedicationRequest.authoredOn", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.authoredOn" + }, + { + "identity": "script10.6", + "map": "Message/Body/NewRx/MedicationPrescribed/WrittenDate" + }, + { + "identity": "w5", + "map": "FiveWs.recorded" + }, + { + "identity": "v2", + "map": "RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction" + }, + { + "identity": "rim", + "map": "author.time" + } + ] + }, + { + "id": "MedicationRequest.requester", + "path": "MedicationRequest.requester", + "short": "Who/What requested the Request", + "definition": "The individual, organization, or device that initiated the request and has responsibility for its activation.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.requester", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.requester" + }, + { + "identity": "w5", + "map": "FiveWs.author" + }, + { + "identity": "rim", + "map": ".participation[typeCode=AUT].role" + } + ] + }, + { + "id": "MedicationRequest.performer", + "path": "MedicationRequest.performer", + "short": "Intended performer of administration", + "definition": "The specified desired performer of the medication treatment (e.g. the performer of the medication administration).", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.performer", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Device|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1", + "http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.performer" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "rim", + "map": ".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" + } + ] + }, + { + "id": "MedicationRequest.performerType", + "path": "MedicationRequest.performerType", + "short": "Desired kind of performer of the medication administration", + "definition": "Indicates the type of performer of the administration of the medication.", + "comment": "If specified without indicating a performer, this indicates that the performer must be of the specified type. If specified with a performer then it indicates the requirements of the performer if the designated performer is not available.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.performerType", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationRequestPerformerType" + } + ], + "strength": "example", + "description": "Identifies the type of individual that is desired to administer the medication.", + "valueSet": "http://hl7.org/fhir/ValueSet/performer-role|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.performerType" + }, + { + "identity": "rim", + "map": ".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code" + } + ] + }, + { + "id": "MedicationRequest.recorder", + "path": "MedicationRequest.recorder", + "short": "Person who entered the request", + "definition": "The person who entered the order on behalf of another individual for example in the case of a verbal or a telephone order.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.recorder", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.who" + }, + { + "identity": "rim", + "map": ".participation[typeCode=TRANS].role[classCode=ASSIGNED].code (HealthcareProviderType)" + } + ] + }, + { + "id": "MedicationRequest.reasonCode", + "path": "MedicationRequest.reasonCode", + "short": "Reason or indication for ordering or not ordering the medication", + "definition": "The reason or the indication for ordering or not ordering the medication.", + "comment": "This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonReference.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationRequest.reasonCode", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationRequestReason" + } + ], + "strength": "example", + "description": "A coded concept indicating why the medication was ordered.", + "valueSet": "http://hl7.org/fhir/ValueSet/condition-code|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.reasonCode" + }, + { + "identity": "script10.6", + "map": "Message/Body/NewRx/MedicationPrescribed/Diagnosis/Primary/Value" + }, + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "v2", + "map": "ORC-16-Order Control Code Reason /RXE-27-Give Indication/RXO-20-Indication / RXD-21-Indication / RXG-22-Indication / RXA-19-Indication" + }, + { + "identity": "rim", + "map": "reason.observation.reasonCode" + } + ] + }, + { + "id": "MedicationRequest.reasonReference", + "path": "MedicationRequest.reasonReference", + "short": "Condition or observation that supports why the prescription is being written", + "definition": "Condition or observation that supports why the medication was ordered.", + "comment": "This is a reference to a condition or observation that is the reason for the medication order. If only a code exists, use reasonCode.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationRequest.reasonReference", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Condition|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.reasonReference" + }, + { + "identity": "script10.6", + "map": "no mapping" + }, + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "rim", + "map": "reason.observation[code=ASSERTION].value" + } + ] + }, + { + "id": "MedicationRequest.instantiatesCanonical", + "path": "MedicationRequest.instantiatesCanonical", + "short": "Instantiates FHIR protocol or definition", + "definition": "The URL pointing to a protocol, guideline, orderset, or other definition that is adhered to in whole or in part by this MedicationRequest.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationRequest.instantiatesCanonical", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "canonical" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.instantiates" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=DEFN].target" + } + ] + }, + { + "id": "MedicationRequest.instantiatesUri", + "path": "MedicationRequest.instantiatesUri", + "short": "Instantiates external protocol or definition", + "definition": "The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this MedicationRequest.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationRequest.instantiatesUri", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=DEFN].target" + } + ] + }, + { + "id": "MedicationRequest.basedOn", + "path": "MedicationRequest.basedOn", + "short": "What request fulfills", + "definition": "A plan or request that is fulfilled in whole or in part by this medication request.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationRequest.basedOn", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.basedOn" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]" + } + ] + }, + { + "id": "MedicationRequest.groupIdentifier", + "path": "MedicationRequest.groupIdentifier", + "short": "Composite request this is part of", + "definition": "A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition or prescription.", + "requirements": "Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.groupIdentifier", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.groupIdentifier" + }, + { + "identity": "rim", + "map": ".outboundRelationship(typeCode=COMP].target[classCode=SBADM, moodCode=INT].id" + } + ] + }, + { + "id": "MedicationRequest.courseOfTherapyType", + "path": "MedicationRequest.courseOfTherapyType", + "short": "Overall pattern of medication administration", + "definition": "The description of the overall patte3rn of the administration of the medication to the patient.", + "comment": "This attribute should not be confused with the protocol of the medication.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.courseOfTherapyType", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationRequestCourseOfTherapy" + } + ], + "strength": "example", + "description": "Identifies the overall pattern of medication administratio.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "Act.code where classCode = LIST and moodCode = EVN" + } + ] + }, + { + "id": "MedicationRequest.insurance", + "path": "MedicationRequest.insurance", + "short": "Associated insurance coverage", + "definition": "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationRequest.insurance", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Coverage|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ClaimResponse|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.insurance" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COVBY].target" + } + ] + }, + { + "id": "MedicationRequest.note", + "path": "MedicationRequest.note", + "short": "Information about the prescription", + "definition": "Extra information about the prescription that could not be conveyed by the other attributes.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationRequest.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.note" + }, + { + "identity": "script10.6", + "map": "Message/Body/NewRx/MedicationPrescribed/Note" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=\"annotation\"].value" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction", + "path": "MedicationRequest.dosageInstruction", + "short": "Dosage Instruction", + "definition": "How the medication should be taken e.g 1 tablet 3 times a day before food.", + "comment": "There are examples where a medication request may include the option of an oral dose or an Intravenous or Intramuscular dose. For example, \"Ondansetron 8mg orally or IV twice a day as needed for nausea\" or \"Compazine® (prochlorperazine) 5-10mg PO or 25mg PR bid prn nausea or vomiting\". In these cases, two medication requests would be created that could be grouped together. The decision on which dose and route of administration to use is based on the patient's condition at the time the dose is needed.", + "min": 1, + "max": "*", + "base": { + "path": "MedicationRequest.dosageInstruction", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Dosage" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.occurrence[x]" + }, + { + "identity": "rim", + "map": "see dosageInstruction mapping" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.id", + "path": "MedicationRequest.dosageInstruction.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.extension", + "path": "MedicationRequest.dosageInstruction.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.modifierExtension", + "path": "MedicationRequest.dosageInstruction.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.sequence", + "path": "MedicationRequest.dosageInstruction.sequence", + "short": "The order of the dosage instructions", + "definition": "Indicates the order in which the dosage instructions should be applied or interpreted.", + "requirements": "If the sequence number of multiple Dosages is the same, then it is implied that the instructions are to be treated as concurrent. If the sequence number is different, then the Dosages are intended to be sequential.", + "min": 0, + "max": "1", + "base": { + "path": "Dosage.sequence", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "integer" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "TQ1-1" + }, + { + "identity": "rim", + "map": ".text" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.text", + "path": "MedicationRequest.dosageInstruction.text", + "short": "Dosage Instruction as Text", + "definition": "Text ourlining how the medication should be taken", + "requirements": "Free text dosage instructions can be used for cases where the instructions are too complex to code. The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated. If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing. Additional information about administration or preparation of the medication should be included as text.", + "min": 1, + "max": "1", + "base": { + "path": "Dosage.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "RXO-6; RXE-21" + }, + { + "identity": "rim", + "map": ".text" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.additionalInstruction", + "path": "MedicationRequest.dosageInstruction.additionalInstruction", + "short": "Supplemental instruction or warnings to the patient - e.g. \"with meals\", \"may cause drowsiness\"", + "definition": "Supplemental instructions to the patient on how to take the medication (e.g. \"with meals\" or\"take half to one hour before food\") or warnings for the patient about the medication (e.g. \"may cause drowsiness\" or \"avoid exposure of skin to direct sunlight or sunlamps\").", + "comment": "Information about administration or preparation of the medication (e.g. \"infuse as rapidly as possibly via intraperitoneal port\" or \"immediately following drug x\") should be populated in dosage.text.", + "requirements": "Additional instruction is intended to be coded, but where no code exists, the element could include text. For example, \"Swallow with plenty of water\" which might or might not be coded.", + "min": 0, + "max": "*", + "base": { + "path": "Dosage.additionalInstruction", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "AdditionalInstruction" + } + ], + "strength": "example", + "description": "A coded concept identifying additional instructions such as \"take with water\" or \"avoid operating heavy machinery\".", + "valueSet": "http://hl7.org/fhir/ValueSet/additional-instruction-codes|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "RXO-7" + }, + { + "identity": "rim", + "map": ".text" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.patientInstruction", + "path": "MedicationRequest.dosageInstruction.patientInstruction", + "short": "Patient or consumer oriented instructions", + "definition": "Instructions in terms that are understood by the patient or consumer.", + "min": 0, + "max": "1", + "base": { + "path": "Dosage.patientInstruction", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "RXO-7" + }, + { + "identity": "rim", + "map": ".text" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.timing", + "path": "MedicationRequest.dosageInstruction.timing", + "short": "When medication should be administered", + "definition": "When medication should be administered.", + "comment": "This attribute might not always be populated while the Dosage.text is expected to be populated. If both are populated, then the Dosage.text should reflect the content of the Dosage.timing.", + "requirements": "The timing schedule for giving the medication to the patient. This data type allows many different expressions. For example: \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\". Sometimes, a rate can imply duration when expressed as total volume / duration (e.g. 500mL/2 hours implies a duration of 2 hours). However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.", + "min": 0, + "max": "1", + "base": { + "path": "Dosage.timing", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Timing" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": ".effectiveTime" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.asNeeded[x]", + "path": "MedicationRequest.dosageInstruction.asNeeded[x]", + "short": "Take \"as needed\" (for x)", + "definition": "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).", + "comment": "Can express \"as needed\" without a reason by setting the Boolean = True. In this case the CodeableConcept is not populated. Or you can express \"as needed\" with a reason by including the CodeableConcept. In this case the Boolean is assumed to be True. If you set the Boolean to False, then the dose is given according to the schedule and is not \"prn\" or \"as needed\".", + "min": 0, + "max": "1", + "base": { + "path": "Dosage.asNeeded[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + }, + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationAsNeededReason" + } + ], + "strength": "example", + "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose. For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc.", + "valueSet": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "TQ1-9" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code=\"as needed\"].value=boolean or codable concept" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.site", + "path": "MedicationRequest.dosageInstruction.site", + "short": "Body site to administer to", + "definition": "Body site to administer to.", + "comment": "If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](http://hl7.org/fhir/R4/extension-bodysite.html). May be a summary code, or a reference to a very precise definition of the location, or both.", + "requirements": "A coded specification of the anatomic site where the medication first enters the body.", + "min": 0, + "max": "1", + "base": { + "path": "Dosage.site", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationAdministrationSite" + } + ], + "strength": "example", + "description": "A coded concept describing the site location the medicine enters into or onto the body.", + "valueSet": "http://hl7.org/fhir/ValueSet/approach-site-codes|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "RXR-2" + }, + { + "identity": "rim", + "map": ".approachSiteCode" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.route", + "path": "MedicationRequest.dosageInstruction.route", + "short": "How drug should enter body", + "definition": "How drug should enter body.", + "requirements": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body.", + "min": 0, + "max": "1", + "base": { + "path": "Dosage.route", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "RouteOfAdministration" + } + ], + "strength": "example", + "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.", + "valueSet": "http://hl7.org/fhir/ValueSet/route-codes|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "RXR-1" + }, + { + "identity": "rim", + "map": ".routeCode" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.method", + "path": "MedicationRequest.dosageInstruction.method", + "short": "Technique for administering medication", + "definition": "Technique for administering medication.", + "comment": "Terminologies used often pre-coordinate this term with the route and or form of administration.", + "requirements": "A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. For examples, Slow Push; Deep IV.", + "min": 0, + "max": "1", + "base": { + "path": "Dosage.method", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationAdministrationMethod" + } + ], + "strength": "example", + "description": "A coded concept describing the technique by which the medicine is administered.", + "valueSet": "http://hl7.org/fhir/ValueSet/administration-method-codes|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "RXR-4" + }, + { + "identity": "rim", + "map": ".doseQuantity" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.doseAndRate", + "path": "MedicationRequest.dosageInstruction.doseAndRate", + "short": "Amount of medication administered", + "definition": "The amount of medication administered.", + "min": 0, + "max": "*", + "base": { + "path": "Dosage.doseAndRate", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Element" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "TQ1-2" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.doseAndRate.id", + "path": "MedicationRequest.dosageInstruction.doseAndRate.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.doseAndRate.extension", + "path": "MedicationRequest.dosageInstruction.doseAndRate.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.doseAndRate.type", + "path": "MedicationRequest.dosageInstruction.doseAndRate.type", + "short": "The kind of dose or rate specified", + "definition": "The kind of dose or rate specified, for example, ordered or calculated.", + "requirements": "If the type is not populated, assume to be \"ordered\".", + "min": 0, + "max": "1", + "base": { + "path": "Dosage.doseAndRate.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "DoseAndRateType" + } + ], + "strength": "example", + "description": "The kind of dose or rate specified.", + "valueSet": "http://hl7.org/fhir/ValueSet/dose-rate-type|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "RXO-21; RXE-23" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]", + "path": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "closed" + }, + "short": "Amount of medication per dose", + "definition": "Amount of medication per dose.", + "comment": "Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours.", + "requirements": "The amount of therapeutic or other substance given at one administration event.", + "min": 1, + "max": "1", + "base": { + "path": "Dosage.doseAndRate.dose[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "RXO-2, RXE-3" + }, + { + "identity": "rim", + "map": ".doseQuantity" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]:doseQuantity", + "path": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]", + "sliceName": "doseQuantity", + "short": "Quantity", + "definition": "Amount of medication per dose.", + "comment": "Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours.", + "requirements": "The amount of therapeutic or other substance given at one administration event.", + "min": 1, + "max": "1", + "base": { + "path": "Dosage.doseAndRate.dose[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "RXO-2, RXE-3" + }, + { + "identity": "rim", + "map": ".doseQuantity" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.doseAndRate.rate[x]", + "path": "MedicationRequest.dosageInstruction.doseAndRate.rate[x]", + "short": "Amount of medication per unit of time", + "definition": "Amount of medication per unit of time.", + "comment": "It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate.\r\rIt is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour.", + "requirements": "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours. Sometimes, a rate can imply duration when expressed as total volume / duration (e.g. 500mL/2 hours implies a duration of 2 hours). However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.", + "min": 0, + "max": "1", + "base": { + "path": "Dosage.doseAndRate.rate[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Ratio" + }, + { + "code": "Range" + }, + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "RXE22, RXE23, RXE-24" + }, + { + "identity": "rim", + "map": ".rateQuantity" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.maxDosePerPeriod", + "path": "MedicationRequest.dosageInstruction.maxDosePerPeriod", + "short": "Upper limit on medication per unit of time", + "definition": "Upper limit on medication per unit of time.", + "comment": "This is intended for use as an adjunct to the dosage when there is an upper cap. For example \"2 tablets every 4 hours to a maximum of 8/day\".", + "requirements": "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. For example, 1000mg in 24 hours.", + "min": 0, + "max": "1", + "base": { + "path": "Dosage.maxDosePerPeriod", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Ratio" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "RXO-23, RXE-19" + }, + { + "identity": "rim", + "map": ".maxDoseQuantity" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.maxDosePerAdministration", + "path": "MedicationRequest.dosageInstruction.maxDosePerAdministration", + "short": "Upper limit on medication per administration", + "definition": "Upper limit on medication per administration.", + "comment": "This is intended for use as an adjunct to the dosage when there is an upper cap. For example, a body surface area related dose with a maximum amount, such as 1.5 mg/m2 (maximum 2 mg) IV over 5 – 10 minutes would have doseQuantity of 1.5 mg/m2 and maxDosePerAdministration of 2 mg.", + "requirements": "The maximum total quantity of a therapeutic substance that may be administered to a subject per administration.", + "min": 0, + "max": "1", + "base": { + "path": "Dosage.maxDosePerAdministration", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "not supported" + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction.maxDosePerLifetime", + "path": "MedicationRequest.dosageInstruction.maxDosePerLifetime", + "short": "Upper limit on medication per lifetime of the patient", + "definition": "Upper limit on medication per lifetime of the patient.", + "requirements": "The maximum total quantity of a therapeutic substance that may be administered per lifetime of the subject.", + "min": 0, + "max": "1", + "base": { + "path": "Dosage.maxDosePerLifetime", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "not supported" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest", + "path": "MedicationRequest.dispenseRequest", + "short": "Medication supply authorization", + "definition": "Indicates the specific details for the dispense or medication supply part of a medication request (also known as a Medication Prescription or Medication Order). Note that this information is not always sent with the order. There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.dispenseRequest", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "Message/Body/NewRx/MedicationPrescribed/ExpirationDate" + }, + { + "identity": "rim", + "map": "component.supplyEvent" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.id", + "path": "MedicationRequest.dispenseRequest.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.extension", + "path": "MedicationRequest.dispenseRequest.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.modifierExtension", + "path": "MedicationRequest.dispenseRequest.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.initialFill", + "path": "MedicationRequest.dispenseRequest.initialFill", + "short": "First fill details", + "definition": "Indicates the quantity or duration for the first dispense of the medication.", + "comment": "If populating this element, either the quantity or the duration must be included.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.dispenseRequest.initialFill", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "SubstanceAdministration -> ActRelationship[sequenceNumber = '1'] -> Supply" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.initialFill.id", + "path": "MedicationRequest.dispenseRequest.initialFill.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.initialFill.extension", + "path": "MedicationRequest.dispenseRequest.initialFill.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.initialFill.modifierExtension", + "path": "MedicationRequest.dispenseRequest.initialFill.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.initialFill.quantity", + "path": "MedicationRequest.dispenseRequest.initialFill.quantity", + "short": "First fill quantity", + "definition": "The amount or quantity to provide as part of the first dispense.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.dispenseRequest.initialFill.quantity", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Supply.quantity[moodCode=RQO]" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.initialFill.duration", + "path": "MedicationRequest.dispenseRequest.initialFill.duration", + "short": "First fill duration", + "definition": "The length of time that the first dispense is expected to last.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.dispenseRequest.initialFill.duration", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Duration" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Supply.effectivetime[moodCode=RQO]" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.dispenseInterval", + "path": "MedicationRequest.dispenseRequest.dispenseInterval", + "short": "Minimum period of time between dispenses", + "definition": "The minimum period of time that must occur between dispenses of the medication.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.dispenseRequest.dispenseInterval", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Duration" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Supply.effectivetime[moodCode=RQO]" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.validityPeriod", + "path": "MedicationRequest.dispenseRequest.validityPeriod", + "short": "Time period supply is authorized for", + "definition": "This indicates the validity period of a prescription (stale dating the Prescription).", + "comment": "It reflects the prescribers' perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations.", + "requirements": "Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.dispenseRequest.validityPeriod", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "Message/Body/NewRx/MedicationPrescribed/Refills" + }, + { + "identity": "rim", + "map": "effectiveTime" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed", + "path": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed", + "short": "Number of refills authorized", + "definition": "An integer indicating the number of times, in addition to the original dispense, (aka refills or repeats) that the patient can receive the prescribed medication. Usage Notes: This integer does not include the original order dispense. This means that if an order indicates dispense 30 tablets plus \"3 repeats\", then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets. A prescriber may explicitly say that zero refills are permitted after the initial dispense.", + "comment": "If displaying \"number of authorized fills\", add 1 to this number.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "unsignedInt" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "Message/Body/NewRx/MedicationPrescribed/Quantity" + }, + { + "identity": "v2", + "map": "RXE-12-Number of Refills" + }, + { + "identity": "rim", + "map": "repeatNumber" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.quantity", + "path": "MedicationRequest.dispenseRequest.quantity", + "short": "Amount of medication to supply per dispense", + "definition": "The amount that is to be dispensed for one fill.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.dispenseRequest.quantity", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "Message/Body/NewRx/MedicationPrescribed/DaysSupply" + }, + { + "identity": "v2", + "map": "RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system" + }, + { + "identity": "rim", + "map": "quantity" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration", + "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration", + "short": "Number of days supply per dispense", + "definition": "Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last.", + "comment": "In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage). When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Duration" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "Message/Body/NewRx/MedicationPrescribed/Substitutions" + }, + { + "identity": "rim", + "map": "expectedUseTime" + } + ] + }, + { + "id": "MedicationRequest.dispenseRequest.performer", + "path": "MedicationRequest.dispenseRequest.performer", + "short": "Intended dispenser", + "definition": "Indicates the intended dispensing Organization specified by the prescriber.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.dispenseRequest.performer", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.who" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COMP].target[classCode=SPLY, moodCode=RQO] .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" + } + ] + }, + { + "id": "MedicationRequest.substitution", + "path": "MedicationRequest.substitution", + "short": "Any restrictions on medication substitution", + "definition": "Indicates whether or not substitution can or should be part of the dispense. In some cases, substitution must happen, in other cases substitution must not happen. This block explains the prescriber's intent. If nothing is specified substitution may be done.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.substitution", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions" + }, + { + "identity": "rim", + "map": "subjectOf.substitutionPersmission" + } + ] + }, + { + "id": "MedicationRequest.substitution.id", + "path": "MedicationRequest.substitution.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationRequest.substitution.extension", + "path": "MedicationRequest.substitution.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationRequest.substitution.modifierExtension", + "path": "MedicationRequest.substitution.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationRequest.substitution.allowed[x]", + "path": "MedicationRequest.substitution.allowed[x]", + "short": "Whether substitution is allowed or not", + "definition": "True if the prescriber allows a different drug to be dispensed from what was prescribed.", + "comment": "This element is labeled as a modifier because whether substitution is allow or not, it cannot be ignored.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationRequest.substitution.allowed[x]", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "boolean" + }, + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationRequestSubstitution" + } + ], + "strength": "example", + "description": "Identifies the type of substitution allowed.", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode" + }, + "mapping": [ + { + "identity": "script10.6", + "map": "specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions" + }, + { + "identity": "v2", + "map": "RXO-9-Allow Substitutions / RXE-9-Substitution Status" + }, + { + "identity": "rim", + "map": "code" + } + ] + }, + { + "id": "MedicationRequest.substitution.reason", + "path": "MedicationRequest.substitution.reason", + "short": "Why should (not) substitution be made", + "definition": "Indicates the reason for the substitution, or why substitution must or must not be performed.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.substitution.reason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationIntendedSubstitutionReason" + } + ], + "strength": "example", + "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason" + }, + "mapping": [ + { + "identity": "script10.6", + "map": "not mapped" + }, + { + "identity": "v2", + "map": "RXE-9 Substition status" + }, + { + "identity": "rim", + "map": "reasonCode" + } + ] + }, + { + "id": "MedicationRequest.priorPrescription", + "path": "MedicationRequest.priorPrescription", + "short": "An order/prescription that is being replaced", + "definition": "A link to a resource representing an earlier order related order or prescription.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationRequest.priorPrescription", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.replaces" + }, + { + "identity": "script10.6", + "map": "not mapped" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=?RPLC or ?SUCC]/target[classCode=SBADM,moodCode=RQO]" + } + ] + }, + { + "id": "MedicationRequest.detectedIssue", + "path": "MedicationRequest.detectedIssue", + "short": "Clinical Issue with action", + "definition": "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, duplicate therapy, dosage alert etc.", + "comment": "This element can include a detected issue that has been identified either by a decision support system or by a clinician and may include information on the steps that were taken to address the issue.", + "alias": [ + "Contraindication", + "Drug Utilization Review (DUR)", + "Alert" + ], + "min": 0, + "max": "*", + "base": { + "path": "MedicationRequest.detectedIssue", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/DetectedIssue|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value" + } + ] + }, + { + "id": "MedicationRequest.eventHistory", + "path": "MedicationRequest.eventHistory", + "short": "A list of events of interest in the lifecycle", + "definition": "Links to Provenance records for past versions of this resource or fulfilling request or event resources that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the resource.", + "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationRequest.eventHistory", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Provenance|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.relevantHistory" + }, + { + "identity": "rim", + "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "MedicationRequest", + "path": "MedicationRequest" + }, + { + "id": "MedicationRequest.id", + "path": "MedicationRequest.id", + "min": 1 + }, + { + "id": "MedicationRequest.medication[x]", + "path": "MedicationRequest.medication[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "open" + } + }, + { + "id": "MedicationRequest.medication[x]:medicationCodeableConcept", + "path": "MedicationRequest.medication[x]", + "sliceName": "medicationCodeableConcept", + "min": 1, + "max": "1", + "type": [ + { + "code": "CodeableConcept" + } + ], + "mustSupport": true, + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/SzProductCodeVS" + } + }, + { + "id": "MedicationRequest.subject", + "path": "MedicationRequest.subject", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ] + }, + { + "id": "MedicationRequest.encounter", + "path": "MedicationRequest.encounter", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ] + }, + { + "id": "MedicationRequest.authoredOn", + "path": "MedicationRequest.authoredOn", + "short": "Medication Request Date", + "definition": "Date when the medication was requested", + "min": 1 + }, + { + "id": "MedicationRequest.requester", + "path": "MedicationRequest.requester", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner" + ] + } + ] + }, + { + "id": "MedicationRequest.dosageInstruction", + "path": "MedicationRequest.dosageInstruction", + "short": "Dosage Instruction", + "definition": "How the medication should be taken e.g 1 tablet 3 times a day before food.", + "min": 1, + "mustSupport": true + }, + { + "id": "MedicationRequest.dosageInstruction.text", + "path": "MedicationRequest.dosageInstruction.text", + "short": "Dosage Instruction as Text", + "definition": "Text ourlining how the medication should be taken", + "min": 1 + }, + { + "id": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]", + "path": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "open" + }, + "min": 1 + }, + { + "id": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]:doseQuantity", + "path": "MedicationRequest.dosageInstruction.doseAndRate.dose[x]", + "sliceName": "doseQuantity", + "short": "Quantity", + "min": 1, + "max": "1", + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "mustSupport": true + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzOrganization.json b/packages/fhir-eswatini/spec/StructureDefinition-SzOrganization.json new file mode 100644 index 0000000000..71512482d7 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzOrganization.json @@ -0,0 +1,1305 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzOrganization", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzOrganization

\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Organization 0..*OrganizationA grouping of people or organizations with a common purpose
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" type 1..1CodeableConceptOrganization Type
\".\"\".\"\".\" name 1..1stringOrganization' name

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization", + "version": "0.1.0", + "name": "EswatiniOrganization", + "title": "Eswatini Organization Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Organization profile", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "servd", + "uri": "http://www.omg.org/spec/ServD/1.0/", + "name": "ServD" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Organization", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Organization", + "path": "Organization", + "short": "A grouping of people or organizations with a common purpose", + "definition": "A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc.", + "min": 0, + "max": "*", + "base": { + "path": "Organization", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "org-1", + "severity": "error", + "human": "The organization SHALL at least have a name or an identifier, and possibly more than one", + "expression": "(identifier.count() + name.count()) > 0", + "xpath": "count(f:identifier | f:name) > 0", + "source": "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "v2", + "map": "(also see master files messages)" + }, + { + "identity": "rim", + "map": "Organization(classCode=ORG, determinerCode=INST)" + }, + { + "identity": "servd", + "map": "Organization" + } + ] + }, + { + "id": "Organization.id", + "path": "Organization.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Organization.meta", + "path": "Organization.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Organization.implicitRules", + "path": "Organization.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Organization.language", + "path": "Organization.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages|4.0.1" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Organization.text", + "path": "Organization.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Organization.contained", + "path": "Organization.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Organization.extension", + "path": "Organization.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Organization.modifierExtension", + "path": "Organization.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Organization.identifier", + "path": "Organization.identifier", + "short": "Identifies this organization across multiple systems", + "definition": "Identifier for the organization that is used to identify the organization across multiple disparate systems.", + "requirements": "Organizations are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the organization.", + "min": 0, + "max": "*", + "base": { + "path": "Organization.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "condition": [ + "org-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "XON.10 / XON.3" + }, + { + "identity": "rim", + "map": ".scopes[Role](classCode=IDENT)" + }, + { + "identity": "servd", + "map": "./Identifiers" + } + ] + }, + { + "id": "Organization.active", + "path": "Organization.active", + "short": "Whether the organization's record is still in active use", + "definition": "Whether the organization's record is still in active use.", + "comment": "This active flag is not intended to be used to mark an organization as temporarily closed or under construction. Instead the Location(s) within the Organization should have the suspended status. If further details of the reason for the suspension are required, then an extension on this element should be used.\n\nThis element is labeled as a modifier because it may be used to mark that the resource was created in error.", + "requirements": "Need a flag to indicate a record is no longer to be used and should generally be hidden for the user in the UI.", + "min": 0, + "max": "1", + "base": { + "path": "Organization.active", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid", + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "v2", + "map": "No equivalent in HL7 v2" + }, + { + "identity": "rim", + "map": ".status" + }, + { + "identity": "servd", + "map": "./Status (however this concept in ServD more covers why the organization is active or not, could be delisted, deregistered, not operational yet) this could alternatively be derived from ./StartDate and ./EndDate and given a context date." + } + ] + }, + { + "id": "Organization.type", + "path": "Organization.type", + "short": "Organization Type", + "definition": "Specifies the type of organization: Healthcare Provider | Community Group | etc", + "comment": "Organizations can be corporations, wards, sections, clinical teams, government departments, etc. Note that code is generally a classifier of the type of organization; in many applications, codes are used to identity a particular organization (say, ward) as opposed to another of the same type - these are identifiers, not codes\n\nWhen considering if multiple types are appropriate, you should evaluate if child organizations would be a more appropriate use of the concept, as different types likely are in different sub-areas of the organization. This is most likely to be used where type values have orthogonal values, such as a religious, academic and medical center.\n\nWe expect that some jurisdictions will profile this optionality to be a single cardinality.", + "requirements": "Need to be able to track the kind of organization that this is - different organization types have different uses.", + "min": 1, + "max": "1", + "base": { + "path": "Organization.type", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "OrganizationType" + } + ], + "strength": "example", + "description": "Used to categorize the organization.", + "valueSet": "http://hl7.org/fhir/ValueSet/organization-type|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "v2", + "map": "No equivalent in v2" + }, + { + "identity": "rim", + "map": ".code" + }, + { + "identity": "servd", + "map": "n/a" + } + ] + }, + { + "id": "Organization.name", + "path": "Organization.name", + "short": "Organization' name", + "definition": "The name of the organization", + "comment": "If the name of an organization changes, consider putting the old name in the alias column so that it can still be located through searches.", + "requirements": "Need to use the name as the label of the organization.", + "min": 1, + "max": "1", + "base": { + "path": "Organization.name", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "condition": [ + "org-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XON.1" + }, + { + "identity": "rim", + "map": ".name" + }, + { + "identity": "servd", + "map": ".PreferredName/Name" + } + ] + }, + { + "id": "Organization.alias", + "path": "Organization.alias", + "short": "A list of alternate names that the organization is known as, or was known as in the past", + "definition": "A list of alternate names that the organization is known as, or was known as in the past.", + "comment": "There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the organization.", + "requirements": "Over time locations and organizations go through many changes and can be known by different names.\n\nFor searching knowing previous names that the organization was known by can be very useful.", + "min": 0, + "max": "*", + "base": { + "path": "Organization.alias", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".name" + } + ] + }, + { + "id": "Organization.telecom", + "path": "Organization.telecom", + "short": "A contact detail for the organization", + "definition": "A contact detail for the organization.", + "comment": "The use code 'home' is not to be used. Note that these contacts are not the contact details of people who are employed by or represent the organization, but official contacts for the organization itself.", + "requirements": "Human contact for the organization.", + "min": 0, + "max": "*", + "base": { + "path": "Organization.telecom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "ContactPoint" + } + ], + "condition": [ + "org-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "org-3", + "severity": "error", + "human": "The telecom of an organization can never be of use 'home'", + "expression": "where(use = 'home').empty()", + "xpath": "count(f:use[@value='home']) = 0", + "source": "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "ORC-22?" + }, + { + "identity": "rim", + "map": ".telecom" + }, + { + "identity": "servd", + "map": "./ContactPoints" + } + ] + }, + { + "id": "Organization.address", + "path": "Organization.address", + "short": "An address for the organization", + "definition": "An address for the organization.", + "comment": "Organization may have multiple addresses with different uses or applicable periods. The use code 'home' is not to be used.", + "requirements": "May need to keep track of the organization's addresses for contacting, billing or reporting requirements.", + "min": 0, + "max": "*", + "base": { + "path": "Organization.address", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Address" + } + ], + "condition": [ + "org-2" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "org-2", + "severity": "error", + "human": "An address of an organization can never be of use 'home'", + "expression": "where(use = 'home').empty()", + "xpath": "count(f:use[@value='home']) = 0", + "source": "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "ORC-23?" + }, + { + "identity": "rim", + "map": ".address" + }, + { + "identity": "servd", + "map": "./PrimaryAddress and ./OtherAddresses" + } + ] + }, + { + "id": "Organization.partOf", + "path": "Organization.partOf", + "short": "The organization of which this organization forms a part", + "definition": "The organization of which this organization forms a part.", + "requirements": "Need to be able to track the hierarchy of organizations within an organization.", + "min": 0, + "max": "1", + "base": { + "path": "Organization.partOf", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy", + "valueBoolean": true + } + ], + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "No equivalent in HL7 v2" + }, + { + "identity": "rim", + "map": ".playedBy[classCode=Part].scoper" + }, + { + "identity": "servd", + "map": "n/a" + } + ] + }, + { + "id": "Organization.contact", + "path": "Organization.contact", + "short": "Contact for the organization for a certain purpose", + "definition": "Contact for the organization for a certain purpose.", + "comment": "Where multiple contacts for the same purpose are provided there is a standard extension that can be used to determine which one is the preferred contact to use.", + "requirements": "Need to keep track of assigned contact points within bigger organization.", + "min": 0, + "max": "*", + "base": { + "path": "Organization.contact", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".contactParty" + } + ] + }, + { + "id": "Organization.contact.id", + "path": "Organization.contact.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Organization.contact.extension", + "path": "Organization.contact.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Organization.contact.modifierExtension", + "path": "Organization.contact.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Organization.contact.purpose", + "path": "Organization.contact.purpose", + "short": "The type of contact", + "definition": "Indicates a purpose for which the contact can be reached.", + "requirements": "Need to distinguish between multiple contact persons.", + "min": 0, + "max": "1", + "base": { + "path": "Organization.contact.purpose", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ContactPartyType" + } + ], + "strength": "extensible", + "description": "The purpose for which you would contact a contact party.", + "valueSet": "http://hl7.org/fhir/ValueSet/contactentity-type|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "./type" + } + ] + }, + { + "id": "Organization.contact.name", + "path": "Organization.contact.name", + "short": "A name associated with the contact", + "definition": "A name associated with the contact.", + "requirements": "Need to be able to track the person by name.", + "min": 0, + "max": "1", + "base": { + "path": "Organization.contact.name", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "HumanName" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PID-5, PID-9" + }, + { + "identity": "rim", + "map": "./name" + } + ] + }, + { + "id": "Organization.contact.telecom", + "path": "Organization.contact.telecom", + "short": "Contact details (telephone, email, etc.) for a contact", + "definition": "A contact detail (e.g. a telephone number or an email address) by which the party may be contacted.", + "requirements": "People have (primary) ways to contact them in some way such as phone, email.", + "min": 0, + "max": "*", + "base": { + "path": "Organization.contact.telecom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "ContactPoint" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PID-13, PID-14" + }, + { + "identity": "rim", + "map": "./telecom" + } + ] + }, + { + "id": "Organization.contact.address", + "path": "Organization.contact.address", + "short": "Visiting or postal addresses for the contact", + "definition": "Visiting or postal addresses for the contact.", + "requirements": "May need to keep track of a contact party's address for contacting, billing or reporting requirements.", + "min": 0, + "max": "1", + "base": { + "path": "Organization.contact.address", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Address" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PID-11" + }, + { + "identity": "rim", + "map": "./addr" + } + ] + }, + { + "id": "Organization.endpoint", + "path": "Organization.endpoint", + "short": "Technical endpoints providing access to services operated for the organization", + "definition": "Technical endpoints providing access to services operated for the organization.", + "requirements": "Organizations have multiple systems that provide various services and need to be able to define the technical connection details for how to connect to them, and for what purpose.", + "min": 0, + "max": "*", + "base": { + "path": "Organization.endpoint", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Endpoint|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Organization", + "path": "Organization" + }, + { + "id": "Organization.id", + "path": "Organization.id", + "min": 1 + }, + { + "id": "Organization.type", + "path": "Organization.type", + "short": "Organization Type", + "definition": "Specifies the type of organization: Healthcare Provider | Community Group | etc", + "min": 1, + "max": "1" + }, + { + "id": "Organization.name", + "path": "Organization.name", + "short": "Organization' name", + "definition": "The name of the organization", + "min": 1 + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzPatient.json b/packages/fhir-eswatini/spec/StructureDefinition-SzPatient.json new file mode 100644 index 0000000000..139a2bbc8f --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzPatient.json @@ -0,0 +1,4190 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzPatient", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzPatient

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Patient 0..*PatientInformation about an individual or animal receiving health care services
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" Slices for extension 1..*ExtensionExtension
Slice: Unordered, Open by value:url
\".\"\".\"\".\"\".\" extension:nationality 0..*(Complex)Nationality.
URL: http://hl7.org/fhir/StructureDefinition/patient-nationality
\".\"\".\"\".\"\".\" extension:inkhundla S0..1CodeableConceptExtention: Eswatini Inkhundla
URL: https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzInkhundlaExtension
Binding: Value Set: Tinkhundla (required)
\".\"\".\"\".\"\".\" extension:chiefdom S0..1CodeableConceptExtention: Eswatini Chiefdom
URL: https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzChiefdomExtension
Binding: Value Set: Chiefdoms Value Set (required)
\".\"\".\"\".\"\".\" extension:registrationDate 1..1dateTimeDate the patient was registered
URL: https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzRegistrationDate
\".\"\".\"\".\" identifier 1..*IdentifierPatient's Identification Number
\".\"\".\"\".\"\".\" type 1..1CodeableConceptType of patient identifier
Binding: Value Set: Person Identifier (required)
\".\"\".\"\".\"\".\" value 1..1stringPatient identier value
\".\"\".\"\".\" name S1..1HumanNamePatient's name
\".\"\".\"\".\"\".\" family 1..1stringFamily name (often called 'Surname')
\".\"\".\"\".\"\".\" given 1..*stringPatient's given name
\".\"\".\"\".\" gender 1..1codeSex at birth: male | female | other | unknown
\".\"\".\"\".\" birthDate S1..1dateDate of birth: YYYY-MM-DD
\".\"\".\"\".\"\".\" Slices for extension 0..*ExtensionPatient's birth time.
Slice: Unordered, Open by value:url
\".\"\".\"\".\"\".\"\".\" extension:birthTime 0..1dateTimeTime of day of birth
URL: http://hl7.org/fhir/StructureDefinition/patient-birthTime
\".\"\".\"\".\" address S0..*AddressAn address for the individual
\".\"\".\"\".\"\".\" city S0..1stringName of city, town etc.
\".\"\".\"\".\"\".\" country S0..1stringCountry (e.g. can be ISO 3166 2 or 3 letter code)

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient", + "version": "0.1.0", + "name": "EswatiniPatient", + "title": "Eswatini Patient Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Definition of the FHIR Eswatini Patient resource", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "cda", + "uri": "http://hl7.org/v3/cda", + "name": "CDA (R2)" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "loinc", + "uri": "http://loinc.org", + "name": "LOINC code for the element" + } + ], + "kind": "resource", + "abstract": false, + "type": "Patient", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Patient", + "path": "Patient", + "short": "Information about an individual or animal receiving health care services", + "definition": "Demographics and other administrative information about an individual or animal receiving care or other health-related services.", + "alias": [ + "SubjectOfCare Client Resident" + ], + "min": 0, + "max": "*", + "base": { + "path": "Patient", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "rim", + "map": "Patient[classCode=PAT]" + }, + { + "identity": "cda", + "map": "ClinicalDocument.recordTarget.patientRole" + } + ] + }, + { + "id": "Patient.id", + "path": "Patient.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Patient.meta", + "path": "Patient.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Patient.implicitRules", + "path": "Patient.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Patient.language", + "path": "Patient.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages|4.0.1" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Patient.text", + "path": "Patient.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Patient.contained", + "path": "Patient.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.extension", + "path": "Patient.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 1, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Patient.extension:nationality", + "path": "Patient.extension", + "sliceName": "nationality", + "short": "Nationality.", + "definition": "Patient's nationality according to ID document", + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/patient-nationality|5.2.0" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Patient.extension:inkhundla", + "path": "Patient.extension", + "sliceName": "inkhundla", + "short": "Extention: Eswatini Inkhundla", + "definition": "Extention for Eswatini Tinkhundla", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzInkhundlaExtension|0.1.0" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": false + }, + { + "id": "Patient.extension:chiefdom", + "path": "Patient.extension", + "sliceName": "chiefdom", + "short": "Extention: Eswatini Chiefdom", + "definition": "Extention for Eswatini Chiefdom", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzChiefdomExtension|0.1.0" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": false + }, + { + "id": "Patient.extension:registrationDate", + "path": "Patient.extension", + "sliceName": "registrationDate", + "short": "Date the patient was registered", + "definition": "Extention for Eswatini Chiefdom", + "min": 1, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzRegistrationDate|0.1.0" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Patient.modifierExtension", + "path": "Patient.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "short": "Patient's Identification Number", + "definition": "An identifier for this patient.", + "requirements": "Patients are almost always assigned specific numerical identifiers.", + "min": 1, + "max": "*", + "base": { + "path": "Patient.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "PID-3" + }, + { + "identity": "rim", + "map": "id" + }, + { + "identity": "cda", + "map": ".id" + } + ] + }, + { + "id": "Patient.identifier.id", + "path": "Patient.identifier.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.identifier.extension", + "path": "Patient.identifier.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.identifier.use", + "path": "Patient.identifier.use", + "short": "usual | official | temp | secondary | old (If known)", + "definition": "The purpose of this identifier.", + "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.", + "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.", + "min": 0, + "max": "1", + "base": { + "path": "Identifier.use", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "IdentifierUse" + } + ], + "strength": "required", + "description": "Identifies the purpose for this identifier, if known .", + "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": "Role.code or implied by context" + } + ] + }, + { + "id": "Patient.identifier.type", + "path": "Patient.identifier.type", + "short": "Type of patient identifier", + "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.", + "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.", + "requirements": "Allows users to make use of identifiers when the identifier system is not known.", + "min": 1, + "max": "1", + "base": { + "path": "Identifier.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/PersonIdentifiersVS|0.1.0" + }, + "mapping": [ + { + "identity": "v2", + "map": "CX.5" + }, + { + "identity": "rim", + "map": "Role.code or implied by context" + } + ] + }, + { + "id": "Patient.identifier.system", + "path": "Patient.identifier.system", + "short": "The namespace for the identifier value", + "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.", + "comment": "Identifier.system is always case sensitive.", + "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.", + "min": 0, + "max": "1", + "base": { + "path": "Identifier.system", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "example": [ + { + "label": "General", + "valueUri": "http://www.acme.com/identifiers/patient" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "CX.4 / EI-2-4" + }, + { + "identity": "rim", + "map": "II.root or Role.id.root" + }, + { + "identity": "servd", + "map": "./IdentifierType" + } + ] + }, + { + "id": "Patient.identifier.value", + "path": "Patient.identifier.value", + "short": "Patient identier value", + "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.", + "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.", + "min": 1, + "max": "1", + "base": { + "path": "Identifier.value", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "example": [ + { + "label": "General", + "valueString": "123456" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "CX.1 / EI.1" + }, + { + "identity": "rim", + "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" + }, + { + "identity": "servd", + "map": "./Value" + } + ] + }, + { + "id": "Patient.identifier.period", + "path": "Patient.identifier.period", + "short": "Time period when id is/was valid for use", + "definition": "Time period during which identifier is/was valid for use.", + "min": 0, + "max": "1", + "base": { + "path": "Identifier.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "CX.7 + CX.8" + }, + { + "identity": "rim", + "map": "Role.effectiveTime or implied by context" + }, + { + "identity": "servd", + "map": "./StartDate and ./EndDate" + } + ] + }, + { + "id": "Patient.identifier.assigner", + "path": "Patient.identifier.assigner", + "short": "Organization that issued id (may be just text)", + "definition": "Organization that issued/manages the identifier.", + "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.", + "min": 0, + "max": "1", + "base": { + "path": "Identifier.assigner", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "CX.4 / (CX.4,CX.9,CX.10)" + }, + { + "identity": "rim", + "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper" + }, + { + "identity": "servd", + "map": "./IdentifierIssuingAuthority" + } + ] + }, + { + "id": "Patient.active", + "path": "Patient.active", + "short": "Whether this patient's record is in active use", + "definition": "Whether this patient record is in active use. \nMany systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.\n\nIt is often used to filter patient lists to exclude inactive patients\n\nDeceased patients may also be marked as inactive for the same reasons, but may be active for some time after death.", + "comment": "If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient.", + "requirements": "Need to be able to mark a patient record as not to be used because it was created in error.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.active", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid", + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "rim", + "map": "statusCode" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.name", + "path": "Patient.name", + "short": "Patient's name", + "definition": "Verified Patient's name", + "comment": "A patient may have multiple names with different uses or applicable periods. For animals, the name is a \"HumanName\" in the sense that is assigned and used by humans and has the same patterns.", + "requirements": "Need to be able to track the patient by multiple names. Examples are your official name and a partner name.", + "min": 1, + "max": "1", + "base": { + "path": "Patient.name", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "HumanName" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-5, PID-9" + }, + { + "identity": "rim", + "map": "name" + }, + { + "identity": "cda", + "map": ".patient.name" + } + ] + }, + { + "id": "Patient.name.id", + "path": "Patient.name.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.name.extension", + "path": "Patient.name.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.name.use", + "path": "Patient.name.use", + "short": "usual | official | temp | nickname | anonymous | old | maiden", + "definition": "Identifies the purpose for this name.", + "comment": "Applications can assume that a name is current unless it explicitly says that it is temporary or old.", + "requirements": "Allows the appropriate name for a particular context of use to be selected from among a set of names.", + "min": 0, + "max": "1", + "base": { + "path": "HumanName.use", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old name etc.for a current/permanent one", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "NameUse" + } + ], + "strength": "required", + "description": "The use of a human name.", + "valueSet": "http://hl7.org/fhir/ValueSet/name-use|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "XPN.7, but often indicated by which field contains the name" + }, + { + "identity": "rim", + "map": "unique(./use)" + }, + { + "identity": "servd", + "map": "./NamePurpose" + } + ] + }, + { + "id": "Patient.name.text", + "path": "Patient.name.text", + "short": "Text representation of the full name", + "definition": "Specifies the entire name as it should be displayed e.g. on an application UI. This may be provided instead of or as well as the specific parts.", + "comment": "Can provide both a text representation and parts. Applications updating a name SHALL ensure that when both text and parts are present, no content is included in the text that isn't found in a part.", + "requirements": "A renderable, unencoded form.", + "min": 0, + "max": "1", + "base": { + "path": "HumanName.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "implied by XPN.11" + }, + { + "identity": "rim", + "map": "./formatted" + } + ] + }, + { + "id": "Patient.name.family", + "path": "Patient.name.family", + "short": "Family name (often called 'Surname')", + "definition": "Patient's family name", + "comment": "Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures).", + "alias": [ + "surname" + ], + "min": 1, + "max": "1", + "base": { + "path": "HumanName.family", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XPN.1/FN.1" + }, + { + "identity": "rim", + "map": "./part[partType = FAM]" + }, + { + "identity": "servd", + "map": "./FamilyName" + } + ] + }, + { + "id": "Patient.name.given", + "path": "Patient.name.given", + "short": "Patient's given name", + "definition": "Patient's given name", + "comment": "If only initials are recorded, they may be used in place of the full name parts. Initials may be separated into multiple given names but often aren't due to paractical limitations. This element is not called \"first name\" since given names do not always come first.", + "alias": [ + "first name", + "middle name" + ], + "min": 1, + "max": "*", + "base": { + "path": "HumanName.given", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "orderMeaning": "Given Names appear in the correct order for presenting the name", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XPN.2 + XPN.3" + }, + { + "identity": "rim", + "map": "./part[partType = GIV]" + }, + { + "identity": "servd", + "map": "./GivenNames" + } + ] + }, + { + "id": "Patient.name.prefix", + "path": "Patient.name.prefix", + "short": "Parts that come before the name", + "definition": "Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.", + "min": 0, + "max": "*", + "base": { + "path": "HumanName.prefix", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "orderMeaning": "Prefixes appear in the correct order for presenting the name", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XPN.5" + }, + { + "identity": "rim", + "map": "./part[partType = PFX]" + }, + { + "identity": "servd", + "map": "./TitleCode" + } + ] + }, + { + "id": "Patient.name.suffix", + "path": "Patient.name.suffix", + "short": "Parts that come after the name", + "definition": "Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.", + "min": 0, + "max": "*", + "base": { + "path": "HumanName.suffix", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "orderMeaning": "Suffixes appear in the correct order for presenting the name", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XPN/4" + }, + { + "identity": "rim", + "map": "./part[partType = SFX]" + } + ] + }, + { + "id": "Patient.name.period", + "path": "Patient.name.period", + "short": "Time period when name was/is in use", + "definition": "Indicates the period of time when this name was valid for the named person.", + "requirements": "Allows names to be placed in historical context.", + "min": 0, + "max": "1", + "base": { + "path": "HumanName.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XPN.13 + XPN.14" + }, + { + "identity": "rim", + "map": "./usablePeriod[type=\"IVL\"]" + }, + { + "identity": "servd", + "map": "./StartDate and ./EndDate" + } + ] + }, + { + "id": "Patient.telecom", + "path": "Patient.telecom", + "short": "A contact detail for the individual", + "definition": "A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.", + "comment": "A Patient may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently and also to help with identification. The address might not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone).", + "requirements": "People have (primary) ways to contact them in some way such as phone, email.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.telecom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "ContactPoint" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-13, PID-14, PID-40" + }, + { + "identity": "rim", + "map": "telecom" + }, + { + "identity": "cda", + "map": ".telecom" + } + ] + }, + { + "id": "Patient.gender", + "path": "Patient.gender", + "short": "Sex at birth: male | female | other | unknown", + "definition": "Identifier to determine the genetic, endocrine and morphological characteristics of the body at birth.", + "comment": "The gender might not match the biological sex as determined by genetics or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than male and female, though the vast majority of systems and contexts only support male and female. Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific sex or gender aspect of interest (anatomical, chromosomal, social, etc.) However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice. Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosomal and other gender aspects. For example, an alert about a hysterectomy on a male should be handled as a warning or overridable error, not a \"hard\" error. See the Patient Gender and Sex section for additional information about communicating patient gender and sex.", + "requirements": "Needed for identification of the individual, in combination with (at least) name and birth date.", + "min": 1, + "max": "1", + "base": { + "path": "Patient.gender", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "AdministrativeGender" + } + ], + "strength": "required", + "description": "The gender of a person used for administrative purposes.", + "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "PID-8" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" + }, + { + "identity": "cda", + "map": ".patient.administrativeGenderCode" + } + ] + }, + { + "id": "Patient.birthDate", + "path": "Patient.birthDate", + "short": "Date of birth: YYYY-MM-DD", + "definition": "The date of birth for the individual.", + "comment": "At least an estimated year should be provided as a guess if the real DOB is unknown There is a standard extension \"patient-birthTime\" available that should be used where Time is required (such as in maternity/infant care systems).", + "requirements": "Age of the individual drives many clinical processes.", + "min": 1, + "max": "1", + "base": { + "path": "Patient.birthDate", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "date" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-7" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime" + }, + { + "identity": "cda", + "map": ".patient.birthTime" + }, + { + "identity": "loinc", + "map": "21112-8" + } + ] + }, + { + "id": "Patient.birthDate.id", + "path": "Patient.birthDate.id", + "representation": [ + "xmlAttr" + ], + "short": "xml:id (or equivalent in JSON)", + "definition": "unique id for the element within a resource (for internal references)", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Patient.birthDate.extension", + "path": "Patient.birthDate.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + }, + "short": "Patient's birth time.", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Patient.birthDate.extension:birthTime", + "path": "Patient.birthDate.extension", + "sliceName": "birthTime", + "short": "Time of day of birth", + "definition": "The time of day that the Patient/Person/RelatedPerson/Practitioner was born. This includes the date to ensure that the timezone information can be communicated effectively.", + "comment": "The patient prefix on the extension was retained to ensure backward compatibility with existing data (the content itself is provided to assist in sharing data across patient resources effectively)", + "min": 0, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/patient-birthTime|5.2.0" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Patient.birthDate.value", + "path": "Patient.birthDate.value", + "representation": [ + "xmlAttr" + ], + "short": "Primitive value for date", + "definition": "The actual value", + "min": 0, + "max": "1", + "base": { + "path": "date.value", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "date" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/regex", + "valueString": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?" + } + ], + "code": "http://hl7.org/fhirpath/System.Date" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Patient.deceased[x]", + "path": "Patient.deceased[x]", + "short": "Indicates if the individual is deceased or not", + "definition": "Indicates if the individual is deceased or not.", + "comment": "If there's no value in the instance, it means there is no statement on whether or not the individual is deceased. Most systems will interpret the absence of a value as a sign of the person being alive.", + "requirements": "The fact that a patient is deceased influences the clinical process. Also, in human communication and relation management it is necessary to know whether the person is alive.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.deceased[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + }, + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because once a patient is marked as deceased, the actions that are appropriate to perform on the patient may be significantly different.", + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-30 (bool) and PID-29 (datetime)" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.address", + "path": "Patient.address", + "short": "An address for the individual", + "definition": "An address for the individual.", + "comment": "Patient may have multiple addresses with different uses or applicable periods.", + "requirements": "May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.address", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Address" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-11" + }, + { + "identity": "rim", + "map": "addr" + }, + { + "identity": "cda", + "map": ".addr" + } + ] + }, + { + "id": "Patient.address.id", + "path": "Patient.address.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.address.extension", + "path": "Patient.address.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.address.use", + "path": "Patient.address.use", + "short": "home | work | temp | old | billing - purpose of this address", + "definition": "The purpose of this address.", + "comment": "Applications can assume that an address is current unless it explicitly says that it is temporary or old.", + "requirements": "Allows an appropriate address to be chosen from a list of many.", + "min": 0, + "max": "1", + "base": { + "path": "Address.use", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "example": [ + { + "label": "General", + "valueCode": "home" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old address etc.for a current/permanent one", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "AddressUse" + } + ], + "strength": "required", + "description": "The use of an address.", + "valueSet": "http://hl7.org/fhir/ValueSet/address-use|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "XAD.7" + }, + { + "identity": "rim", + "map": "unique(./use)" + }, + { + "identity": "servd", + "map": "./AddressPurpose" + } + ] + }, + { + "id": "Patient.address.type", + "path": "Patient.address.type", + "short": "postal | physical | both", + "definition": "Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.", + "comment": "The definition of Address states that \"address is intended to describe postal addresses, not physical locations\". However, many applications track whether an address has a dual purpose of being a location that can be visited as well as being a valid delivery destination, and Postal addresses are often used as proxies for physical locations (also see the [Location](http://hl7.org/fhir/R4/location.html#) resource).", + "min": 0, + "max": "1", + "base": { + "path": "Address.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "example": [ + { + "label": "General", + "valueCode": "both" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "AddressType" + } + ], + "strength": "required", + "description": "The type of an address (physical / postal).", + "valueSet": "http://hl7.org/fhir/ValueSet/address-type|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "XAD.18" + }, + { + "identity": "rim", + "map": "unique(./use)" + }, + { + "identity": "vcard", + "map": "address type parameter" + } + ] + }, + { + "id": "Patient.address.text", + "path": "Patient.address.text", + "short": "Text representation of the address", + "definition": "Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts.", + "comment": "Can provide both a text representation and parts. Applications updating an address SHALL ensure that when both text and parts are present, no content is included in the text that isn't found in a part.", + "requirements": "A renderable, unencoded form.", + "min": 0, + "max": "1", + "base": { + "path": "Address.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "example": [ + { + "label": "General", + "valueString": "137 Nowhere Street, Erewhon 9132" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6" + }, + { + "identity": "rim", + "map": "./formatted" + }, + { + "identity": "vcard", + "map": "address label parameter" + } + ] + }, + { + "id": "Patient.address.line", + "path": "Patient.address.line", + "short": "Street name, number, direction & P.O. Box etc.", + "definition": "This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.", + "min": 0, + "max": "*", + "base": { + "path": "Address.line", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "orderMeaning": "The order in which lines should appear in an address label", + "example": [ + { + "label": "General", + "valueString": "137 Nowhere Street" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)" + }, + { + "identity": "rim", + "map": "AD.part[parttype = AL]" + }, + { + "identity": "vcard", + "map": "street" + }, + { + "identity": "servd", + "map": "./StreetAddress (newline delimitted)" + } + ] + }, + { + "id": "Patient.address.city", + "path": "Patient.address.city", + "short": "Name of city, town etc.", + "definition": "The name of the city, town, suburb, village or other community or delivery center.", + "alias": [ + "Municpality" + ], + "min": 0, + "max": "1", + "base": { + "path": "Address.city", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "example": [ + { + "label": "General", + "valueString": "Erewhon" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XAD.3" + }, + { + "identity": "rim", + "map": "AD.part[parttype = CTY]" + }, + { + "identity": "vcard", + "map": "locality" + }, + { + "identity": "servd", + "map": "./Jurisdiction" + } + ] + }, + { + "id": "Patient.address.district", + "path": "Patient.address.district", + "short": "District name (aka county)", + "definition": "The name of the administrative area (county).", + "comment": "District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead.", + "alias": [ + "County" + ], + "min": 0, + "max": "1", + "base": { + "path": "Address.district", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "example": [ + { + "label": "General", + "valueString": "Madison" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XAD.9" + }, + { + "identity": "rim", + "map": "AD.part[parttype = CNT | CPA]" + } + ] + }, + { + "id": "Patient.address.state", + "path": "Patient.address.state", + "short": "Sub-unit of country (abbreviations ok)", + "definition": "Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes).", + "alias": [ + "Province", + "Territory" + ], + "min": 0, + "max": "1", + "base": { + "path": "Address.state", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XAD.4" + }, + { + "identity": "rim", + "map": "AD.part[parttype = STA]" + }, + { + "identity": "vcard", + "map": "region" + }, + { + "identity": "servd", + "map": "./Region" + } + ] + }, + { + "id": "Patient.address.postalCode", + "path": "Patient.address.postalCode", + "short": "Postal code for area", + "definition": "A postal code designating a region defined by the postal service.", + "alias": [ + "Zip" + ], + "min": 0, + "max": "1", + "base": { + "path": "Address.postalCode", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "example": [ + { + "label": "General", + "valueString": "9132" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XAD.5" + }, + { + "identity": "rim", + "map": "AD.part[parttype = ZIP]" + }, + { + "identity": "vcard", + "map": "code" + }, + { + "identity": "servd", + "map": "./PostalIdentificationCode" + } + ] + }, + { + "id": "Patient.address.country", + "path": "Patient.address.country", + "short": "Country (e.g. can be ISO 3166 2 or 3 letter code)", + "definition": "Country - a nation as commonly understood or generally accepted.", + "comment": "ISO 3166 3 letter codes can be used in place of a human readable country name.", + "min": 0, + "max": "1", + "base": { + "path": "Address.country", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XAD.6" + }, + { + "identity": "rim", + "map": "AD.part[parttype = CNT]" + }, + { + "identity": "vcard", + "map": "country" + }, + { + "identity": "servd", + "map": "./Country" + } + ] + }, + { + "id": "Patient.address.period", + "path": "Patient.address.period", + "short": "Time period when address was/is in use", + "definition": "Time period when address was/is in use.", + "requirements": "Allows addresses to be placed in historical context.", + "min": 0, + "max": "1", + "base": { + "path": "Address.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "example": [ + { + "label": "General", + "valuePeriod": { + "start": "2010-03-23", + "end": "2010-07-01" + } + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XAD.12 / XAD.13 + XAD.14" + }, + { + "identity": "rim", + "map": "./usablePeriod[type=\"IVL\"]" + }, + { + "identity": "servd", + "map": "./StartDate and ./EndDate" + } + ] + }, + { + "id": "Patient.maritalStatus", + "path": "Patient.maritalStatus", + "short": "Marital (civil) status of a patient", + "definition": "This field contains a patient's most recent marital (civil) status.", + "requirements": "Most, if not all systems capture it.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.maritalStatus", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MaritalStatus" + } + ], + "strength": "extensible", + "description": "The domestic partnership status of a person.", + "valueSet": "http://hl7.org/fhir/ValueSet/marital-status|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "PID-16" + }, + { + "identity": "rim", + "map": "player[classCode=PSN]/maritalStatusCode" + }, + { + "identity": "cda", + "map": ".patient.maritalStatusCode" + } + ] + }, + { + "id": "Patient.multipleBirth[x]", + "path": "Patient.multipleBirth[x]", + "short": "Whether patient is part of a multiple birth", + "definition": "Indicates whether the patient is part of a multiple (boolean) or indicates the actual birth order (integer).", + "comment": "Where the valueInteger is provided, the number is the birth number in the sequence. E.g. The middle birth in triplets would be valueInteger=2 and the third born would have valueInteger=3 If a boolean value was provided for this triplets example, then all 3 patient records would have valueBoolean=true (the ordering is not indicated).", + "requirements": "For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.multipleBirth[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + }, + { + "code": "integer" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PID-24 (bool), PID-25 (integer)" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.photo", + "path": "Patient.photo", + "short": "Image of the patient", + "definition": "Image of the patient.", + "comment": "Guidelines:\n* Use id photos, not clinical photos.\n* Limit dimensions to thumbnail.\n* Keep byte count low to ease resource updates.", + "requirements": "Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.photo", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Attachment" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-5 - needs a profile" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact", + "path": "Patient.contact", + "short": "A contact party (e.g. guardian, partner, friend) for the patient", + "definition": "A contact party (e.g. guardian, partner, friend) for the patient.", + "comment": "Contact covers all kinds of contact parties: family members, business contacts, guardians, caregivers. Not applicable to register pedigree and family ties beyond use of having contact.", + "requirements": "Need to track people you can contact about the patient.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.contact", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "pat-1", + "severity": "error", + "human": "SHALL at least contain a contact's details or a reference to an organization", + "expression": "name.exists() or telecom.exists() or address.exists() or organization.exists()", + "xpath": "exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)", + "source": "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.id", + "path": "Patient.contact.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.extension", + "path": "Patient.contact.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.modifierExtension", + "path": "Patient.contact.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.contact.relationship", + "path": "Patient.contact.relationship", + "short": "The kind of relationship", + "definition": "The nature of the relationship between the patient and the contact person.", + "requirements": "Used to determine which contact person is the most relevant to approach, depending on circumstances.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.contact.relationship", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ContactRelationship" + } + ], + "strength": "extensible", + "description": "The nature of the relationship between a patient and a contact person for that patient.", + "valueSet": "http://hl7.org/fhir/ValueSet/patient-contactrelationship|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "NK1-7, NK1-3" + }, + { + "identity": "rim", + "map": "code" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.name", + "path": "Patient.contact.name", + "short": "A name associated with the contact person", + "definition": "A name associated with the contact person.", + "requirements": "Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.name", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "HumanName" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NK1-2" + }, + { + "identity": "rim", + "map": "name" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.telecom", + "path": "Patient.contact.telecom", + "short": "A contact detail for the person", + "definition": "A contact detail for the person, e.g. a telephone number or an email address.", + "comment": "Contact may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently, and also to help with identification.", + "requirements": "People have (primary) ways to contact them in some way such as phone, email.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.contact.telecom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "ContactPoint" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NK1-5, NK1-6, NK1-40" + }, + { + "identity": "rim", + "map": "telecom" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.address", + "path": "Patient.contact.address", + "short": "Address for the contact person", + "definition": "Address for the contact person.", + "requirements": "Need to keep track where the contact person can be contacted per postal mail or visited.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.address", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Address" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NK1-4" + }, + { + "identity": "rim", + "map": "addr" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.gender", + "path": "Patient.contact.gender", + "short": "male | female | other | unknown", + "definition": "Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.", + "requirements": "Needed to address the person correctly.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.gender", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "AdministrativeGender" + } + ], + "strength": "required", + "description": "The gender of a person used for administrative purposes.", + "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "NK1-15" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.organization", + "path": "Patient.contact.organization", + "short": "Organization that is associated with the contact", + "definition": "Organization on behalf of which the contact is acting or for which the contact is working.", + "requirements": "For guardians or business related contacts, the organization is relevant.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.organization", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + ] + } + ], + "condition": [ + "pat-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NK1-13, NK1-30, NK1-31, NK1-32, NK1-41" + }, + { + "identity": "rim", + "map": "scoper" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.contact.period", + "path": "Patient.contact.period", + "short": "The period during which this contact person or organization is valid to be contacted relating to this patient", + "definition": "The period during which this contact person or organization is valid to be contacted relating to this patient.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.contact.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "effectiveTime" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.communication", + "path": "Patient.communication", + "short": "A language which may be used to communicate with the patient about his or her health", + "definition": "A language which may be used to communicate with the patient about his or her health.", + "comment": "If no language is specified, this *implies* that the default local language is spoken. If you need to convey proficiency for multiple modes, then you need multiple Patient.Communication associations. For animals, language is not a relevant field, and should be absent from the instance. If the Patient does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.", + "requirements": "If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency are important things to keep track of both for patient and other persons of interest.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.communication", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "LanguageCommunication" + }, + { + "identity": "cda", + "map": "patient.languageCommunication" + } + ] + }, + { + "id": "Patient.communication.id", + "path": "Patient.communication.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.communication.extension", + "path": "Patient.communication.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.communication.modifierExtension", + "path": "Patient.communication.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.communication.language", + "path": "Patient.communication.language", + "short": "The language which can be used to communicate with the patient about his or her health", + "definition": "The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English.", + "comment": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.", + "requirements": "Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect.", + "min": 1, + "max": "1", + "base": { + "path": "Patient.communication.language", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages|4.0.1" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "PID-15, LAN-2" + }, + { + "identity": "rim", + "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code" + }, + { + "identity": "cda", + "map": ".languageCode" + } + ] + }, + { + "id": "Patient.communication.preferred", + "path": "Patient.communication.preferred", + "short": "Language preference indicator", + "definition": "Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).", + "comment": "This language is specifically identified for communicating healthcare information.", + "requirements": "People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.communication.preferred", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PID-15" + }, + { + "identity": "rim", + "map": "preferenceInd" + }, + { + "identity": "cda", + "map": ".preferenceInd" + } + ] + }, + { + "id": "Patient.generalPractitioner", + "path": "Patient.generalPractitioner", + "short": "Patient's nominated primary care provider", + "definition": "Patient's nominated care provider.", + "comment": "This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disability setting, or even organization that will provide people to perform the care provider roles. It is not to be used to record Care Teams, these should be in a CareTeam resource that may be linked to the CarePlan or EpisodeOfCare resources.\nMultiple GPs may be recorded against the patient for various reasons, such as a student that has his home GP listed along with the GP at university during the school semesters, or a \"fly-in/fly-out\" worker that has the onsite GP also included with his home GP to remain aware of medical issues.\n\nJurisdictions may decide that they can profile this down to 1 if desired, or 1 per type.", + "alias": [ + "careProvider" + ], + "min": 0, + "max": "*", + "base": { + "path": "Patient.generalPractitioner", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "PD1-4" + }, + { + "identity": "rim", + "map": "subjectOf.CareEvent.performer.AssignedEntity" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.managingOrganization", + "path": "Patient.managingOrganization", + "short": "Organization that is the custodian of the patient record", + "definition": "Organization that is the custodian of the patient record.", + "comment": "There is only one managing organization for a specific patient record. Other organizations will have their own Patient record, and may use the Link property to join the records together (or a Person resource which can include confidence ratings for the association).", + "requirements": "Need to know who recognizes this patient record, manages and updates it.", + "min": 0, + "max": "1", + "base": { + "path": "Patient.managingOrganization", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "scoper" + }, + { + "identity": "cda", + "map": ".providerOrganization" + } + ] + }, + { + "id": "Patient.link", + "path": "Patient.link", + "short": "Link to another patient resource that concerns the same actual person", + "definition": "Link to another patient resource that concerns the same actual patient.", + "comment": "There is no assumption that linked patient records have mutual links.", + "requirements": "There are multiple use cases: \n\n* Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and \n* Distribution of patient information across multiple servers.", + "min": 0, + "max": "*", + "base": { + "path": "Patient.link", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it might not be the main Patient resource, and the referenced patient should be used instead of this Patient record. This is when the link.type value is 'replaced-by'", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "outboundLink" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.link.id", + "path": "Patient.link.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.link.extension", + "path": "Patient.link.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Patient.link.modifierExtension", + "path": "Patient.link.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Patient.link.other", + "path": "Patient.link.other", + "short": "The other patient or related person resource that the link refers to", + "definition": "The other patient resource that the link refers to.", + "comment": "Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual.", + "min": 1, + "max": "1", + "base": { + "path": "Patient.link.other", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy", + "valueBoolean": false + } + ], + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PID-3, MRG-1" + }, + { + "identity": "rim", + "map": "id" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + }, + { + "id": "Patient.link.type", + "path": "Patient.link.type", + "short": "replaced-by | replaces | refer | seealso", + "definition": "The type of link between this patient resource and another patient resource.", + "min": 1, + "max": "1", + "base": { + "path": "Patient.link.type", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "LinkType" + } + ], + "strength": "required", + "description": "The type of link between this patient resource and another patient resource.", + "valueSet": "http://hl7.org/fhir/ValueSet/link-type|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "typeCode" + }, + { + "identity": "cda", + "map": "n/a" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Patient", + "path": "Patient" + }, + { + "id": "Patient.id", + "path": "Patient.id", + "min": 1 + }, + { + "id": "Patient.extension", + "path": "Patient.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + }, + "min": 1 + }, + { + "id": "Patient.extension:nationality", + "path": "Patient.extension", + "sliceName": "nationality", + "short": "Nationality.", + "definition": "Patient's nationality according to ID document", + "min": 0, + "max": "*", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/patient-nationality|5.2.0" + ] + } + ] + }, + { + "id": "Patient.extension:inkhundla", + "path": "Patient.extension", + "sliceName": "inkhundla", + "min": 0, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzInkhundlaExtension|0.1.0" + ] + } + ], + "mustSupport": true + }, + { + "id": "Patient.extension:chiefdom", + "path": "Patient.extension", + "sliceName": "chiefdom", + "min": 0, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzChiefdomExtension|0.1.0" + ] + } + ], + "mustSupport": true + }, + { + "id": "Patient.extension:registrationDate", + "path": "Patient.extension", + "sliceName": "registrationDate", + "short": "Date the patient was registered", + "min": 1, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzRegistrationDate|0.1.0" + ] + } + ] + }, + { + "id": "Patient.identifier", + "path": "Patient.identifier", + "short": "Patient's Identification Number", + "min": 1 + }, + { + "id": "Patient.identifier.type", + "path": "Patient.identifier.type", + "short": "Type of patient identifier", + "min": 1, + "binding": { + "strength": "required", + "valueSet": "https://hapifhir.eswatinihie.com/fhir/ValueSet/PersonIdentifiersVS|0.1.0" + } + }, + { + "id": "Patient.identifier.value", + "path": "Patient.identifier.value", + "short": "Patient identier value", + "min": 1 + }, + { + "id": "Patient.name", + "path": "Patient.name", + "short": "Patient's name", + "definition": "Verified Patient's name", + "min": 1, + "max": "1", + "mustSupport": true + }, + { + "id": "Patient.name.family", + "path": "Patient.name.family", + "definition": "Patient's family name", + "min": 1 + }, + { + "id": "Patient.name.given", + "path": "Patient.name.given", + "short": "Patient's given name", + "definition": "Patient's given name", + "min": 1 + }, + { + "id": "Patient.gender", + "path": "Patient.gender", + "short": "Sex at birth: male | female | other | unknown", + "definition": "Identifier to determine the genetic, endocrine and morphological characteristics of the body at birth.", + "min": 1 + }, + { + "id": "Patient.birthDate", + "path": "Patient.birthDate", + "short": "Date of birth: YYYY-MM-DD", + "min": 1, + "mustSupport": true + }, + { + "id": "Patient.birthDate.extension", + "path": "Patient.birthDate.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + }, + "short": "Patient's birth time." + }, + { + "id": "Patient.birthDate.extension:birthTime", + "path": "Patient.birthDate.extension", + "sliceName": "birthTime", + "min": 0, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/patient-birthTime|5.2.0" + ] + } + ] + }, + { + "id": "Patient.address", + "path": "Patient.address", + "mustSupport": true + }, + { + "id": "Patient.address.city", + "path": "Patient.address.city", + "mustSupport": true + }, + { + "id": "Patient.address.country", + "path": "Patient.address.country", + "mustSupport": true + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzPractitioner.json b/packages/fhir-eswatini/spec/StructureDefinition-SzPractitioner.json new file mode 100644 index 0000000000..fd756acdef --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzPractitioner.json @@ -0,0 +1,1711 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzPractitioner", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzPractitioner

\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Practitioner 0..*PractitionerA person with a formal responsibility in the provisioning of healthcare or related services
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" name S1..1HumanNamePractitioner's name
\".\"\".\"\".\"\".\" family 1..1stringFamily name (often called 'Surname')
\".\"\".\"\".\"\".\" given 1..*stringPractitioner's given name
\".\"\".\"\".\" gender 1..1codeSex at birth: male | female | other | unknown

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner", + "version": "0.1.0", + "name": "EswatiniPractitioner", + "title": "Eswatini Practitioner Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Definition of the FHRI Eswatini Practitioner resource", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "servd", + "uri": "http://www.omg.org/spec/ServD/1.0/", + "name": "ServD" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Practitioner", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Practitioner", + "path": "Practitioner", + "short": "A person with a formal responsibility in the provisioning of healthcare or related services", + "definition": "A person who is directly or indirectly involved in the provisioning of healthcare.", + "min": 0, + "max": "*", + "base": { + "path": "Practitioner", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "v2", + "map": "PRD (as one example)" + }, + { + "identity": "rim", + "map": "Role" + }, + { + "identity": "servd", + "map": "Provider" + } + ] + }, + { + "id": "Practitioner.id", + "path": "Practitioner.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Practitioner.meta", + "path": "Practitioner.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Practitioner.implicitRules", + "path": "Practitioner.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Practitioner.language", + "path": "Practitioner.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages|4.0.1" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Practitioner.text", + "path": "Practitioner.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Practitioner.contained", + "path": "Practitioner.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Practitioner.extension", + "path": "Practitioner.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Practitioner.modifierExtension", + "path": "Practitioner.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Practitioner.identifier", + "path": "Practitioner.identifier", + "short": "An identifier for the person as this agent", + "definition": "An identifier that applies to this person in this role.", + "requirements": "Often, specific identities are assigned for the agent.", + "min": 0, + "max": "*", + "base": { + "path": "Practitioner.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "PRD-7 (or XCN.1)" + }, + { + "identity": "rim", + "map": "./id" + }, + { + "identity": "servd", + "map": "./Identifiers" + } + ] + }, + { + "id": "Practitioner.active", + "path": "Practitioner.active", + "short": "Whether this practitioner's record is in active use", + "definition": "Whether this practitioner's record is in active use.", + "comment": "If the practitioner is not in use by one organization, then it should mark the period on the PractitonerRole with an end date (even if they are active) as they may be active in another role.", + "requirements": "Need to be able to mark a practitioner record as not to be used because it was created in error.", + "min": 0, + "max": "1", + "base": { + "path": "Practitioner.active", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "rim", + "map": "./statusCode" + } + ] + }, + { + "id": "Practitioner.name", + "path": "Practitioner.name", + "short": "Practitioner's name", + "definition": "Verified practitioner's name", + "comment": "The selection of the use property should ensure that there is a single usual name specified, and others use the nickname (alias), old, or other values as appropriate. \r\rIn general, select the value to be used in the ResourceReference.display based on this:\r\r1. There is more than 1 name\r2. Use = usual\r3. Period is current to the date of the usage\r4. Use = official\r5. Other order as decided by internal business rules.", + "requirements": "The name(s) that a Practitioner is known by. Where there are multiple, the name that the practitioner is usually known as should be used in the display.", + "min": 1, + "max": "1", + "base": { + "path": "Practitioner.name", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "HumanName" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XCN Components" + }, + { + "identity": "rim", + "map": "./name" + }, + { + "identity": "servd", + "map": "./PreferredName (GivenNames, FamilyName, TitleCode)" + } + ] + }, + { + "id": "Practitioner.name.id", + "path": "Practitioner.name.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Practitioner.name.extension", + "path": "Practitioner.name.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Practitioner.name.use", + "path": "Practitioner.name.use", + "short": "usual | official | temp | nickname | anonymous | old | maiden", + "definition": "Identifies the purpose for this name.", + "comment": "Applications can assume that a name is current unless it explicitly says that it is temporary or old.", + "requirements": "Allows the appropriate name for a particular context of use to be selected from among a set of names.", + "min": 0, + "max": "1", + "base": { + "path": "HumanName.use", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old name etc.for a current/permanent one", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "NameUse" + } + ], + "strength": "required", + "description": "The use of a human name.", + "valueSet": "http://hl7.org/fhir/ValueSet/name-use|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "XPN.7, but often indicated by which field contains the name" + }, + { + "identity": "rim", + "map": "unique(./use)" + }, + { + "identity": "servd", + "map": "./NamePurpose" + } + ] + }, + { + "id": "Practitioner.name.text", + "path": "Practitioner.name.text", + "short": "Text representation of the full name", + "definition": "Specifies the entire name as it should be displayed e.g. on an application UI. This may be provided instead of or as well as the specific parts.", + "comment": "Can provide both a text representation and parts. Applications updating a name SHALL ensure that when both text and parts are present, no content is included in the text that isn't found in a part.", + "requirements": "A renderable, unencoded form.", + "min": 0, + "max": "1", + "base": { + "path": "HumanName.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "implied by XPN.11" + }, + { + "identity": "rim", + "map": "./formatted" + } + ] + }, + { + "id": "Practitioner.name.family", + "path": "Practitioner.name.family", + "short": "Family name (often called 'Surname')", + "definition": "Practitioner's family name", + "comment": "Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures).", + "alias": [ + "surname" + ], + "min": 1, + "max": "1", + "base": { + "path": "HumanName.family", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XPN.1/FN.1" + }, + { + "identity": "rim", + "map": "./part[partType = FAM]" + }, + { + "identity": "servd", + "map": "./FamilyName" + } + ] + }, + { + "id": "Practitioner.name.given", + "path": "Practitioner.name.given", + "short": "Practitioner's given name", + "definition": "Practitioner's given name", + "comment": "If only initials are recorded, they may be used in place of the full name parts. Initials may be separated into multiple given names but often aren't due to paractical limitations. This element is not called \"first name\" since given names do not always come first.", + "alias": [ + "first name", + "middle name" + ], + "min": 1, + "max": "*", + "base": { + "path": "HumanName.given", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "orderMeaning": "Given Names appear in the correct order for presenting the name", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XPN.2 + XPN.3" + }, + { + "identity": "rim", + "map": "./part[partType = GIV]" + }, + { + "identity": "servd", + "map": "./GivenNames" + } + ] + }, + { + "id": "Practitioner.name.prefix", + "path": "Practitioner.name.prefix", + "short": "Parts that come before the name", + "definition": "Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.", + "min": 0, + "max": "*", + "base": { + "path": "HumanName.prefix", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "orderMeaning": "Prefixes appear in the correct order for presenting the name", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XPN.5" + }, + { + "identity": "rim", + "map": "./part[partType = PFX]" + }, + { + "identity": "servd", + "map": "./TitleCode" + } + ] + }, + { + "id": "Practitioner.name.suffix", + "path": "Practitioner.name.suffix", + "short": "Parts that come after the name", + "definition": "Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.", + "min": 0, + "max": "*", + "base": { + "path": "HumanName.suffix", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "orderMeaning": "Suffixes appear in the correct order for presenting the name", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XPN/4" + }, + { + "identity": "rim", + "map": "./part[partType = SFX]" + } + ] + }, + { + "id": "Practitioner.name.period", + "path": "Practitioner.name.period", + "short": "Time period when name was/is in use", + "definition": "Indicates the period of time when this name was valid for the named person.", + "requirements": "Allows names to be placed in historical context.", + "min": 0, + "max": "1", + "base": { + "path": "HumanName.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "XPN.13 + XPN.14" + }, + { + "identity": "rim", + "map": "./usablePeriod[type=\"IVL\"]" + }, + { + "identity": "servd", + "map": "./StartDate and ./EndDate" + } + ] + }, + { + "id": "Practitioner.telecom", + "path": "Practitioner.telecom", + "short": "A contact detail for the practitioner (that apply to all roles)", + "definition": "A contact detail for the practitioner, e.g. a telephone number or an email address.", + "comment": "Person may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently and to help with identification. These typically will have home numbers, or mobile numbers that are not role specific.", + "requirements": "Need to know how to reach a practitioner independent to any roles the practitioner may have.", + "min": 0, + "max": "*", + "base": { + "path": "Practitioner.telecom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "ContactPoint" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "PRT-15, STF-10, ROL-12" + }, + { + "identity": "rim", + "map": "./telecom" + }, + { + "identity": "servd", + "map": "./ContactPoints" + } + ] + }, + { + "id": "Practitioner.address", + "path": "Practitioner.address", + "short": "Address(es) of the practitioner that are not role specific (typically home address)", + "definition": "Address(es) of the practitioner that are not role specific (typically home address). \rWork addresses are not typically entered in this property as they are usually role dependent.", + "comment": "The PractitionerRole does not have an address value on it, as it is expected that the location property be used for this purpose (which has an address).", + "requirements": "The home/mailing address of the practitioner is often required for employee administration purposes, and also for some rostering services where the start point (practitioners home) can be used in calculations.", + "min": 0, + "max": "*", + "base": { + "path": "Practitioner.address", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Address" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "ORC-24, STF-11, ROL-11, PRT-14" + }, + { + "identity": "rim", + "map": "./addr" + }, + { + "identity": "servd", + "map": "./Addresses" + } + ] + }, + { + "id": "Practitioner.gender", + "path": "Practitioner.gender", + "short": "Sex at birth: male | female | other | unknown", + "definition": "Identifier to determine the genetic, endocrine and morphological characteristics of the body at birth.", + "requirements": "Needed to address the person correctly.", + "min": 1, + "max": "1", + "base": { + "path": "Practitioner.gender", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "AdministrativeGender" + } + ], + "strength": "required", + "description": "The gender of a person used for administrative purposes.", + "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "STF-5" + }, + { + "identity": "rim", + "map": "./administrativeGender" + }, + { + "identity": "servd", + "map": "./GenderCode" + } + ] + }, + { + "id": "Practitioner.birthDate", + "path": "Practitioner.birthDate", + "short": "The date on which the practitioner was born", + "definition": "The date of birth for the practitioner.", + "requirements": "Needed for identification.", + "min": 0, + "max": "1", + "base": { + "path": "Practitioner.birthDate", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "date" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "STF-6" + }, + { + "identity": "rim", + "map": "./birthTime" + }, + { + "identity": "servd", + "map": "(not represented in ServD)" + } + ] + }, + { + "id": "Practitioner.photo", + "path": "Practitioner.photo", + "short": "Image of the person", + "definition": "Image of the person.", + "requirements": "Many EHR systems have the capability to capture an image of patients and personnel. Fits with newer social media usage too.", + "min": 0, + "max": "*", + "base": { + "path": "Practitioner.photo", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Attachment" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "./subjectOf/ObservationEvent[code=\"photo\"]/value" + }, + { + "identity": "servd", + "map": "./ImageURI (only supports the URI reference)" + } + ] + }, + { + "id": "Practitioner.qualification", + "path": "Practitioner.qualification", + "short": "Certification, licenses, or training pertaining to the provision of care", + "definition": "The official certifications, training, and licenses that authorize or otherwise pertain to the provision of care by the practitioner. For example, a medical license issued by a medical board authorizing the practitioner to practice medicine within a certian locality.", + "min": 0, + "max": "*", + "base": { + "path": "Practitioner.qualification", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "CER?" + }, + { + "identity": "rim", + "map": ".playingEntity.playingRole[classCode=QUAL].code" + }, + { + "identity": "servd", + "map": "./Qualifications" + } + ] + }, + { + "id": "Practitioner.qualification.id", + "path": "Practitioner.qualification.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Practitioner.qualification.extension", + "path": "Practitioner.qualification.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Practitioner.qualification.modifierExtension", + "path": "Practitioner.qualification.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Practitioner.qualification.identifier", + "path": "Practitioner.qualification.identifier", + "short": "An identifier for this qualification for the practitioner", + "definition": "An identifier that applies to this person's qualification in this role.", + "requirements": "Often, specific identities are assigned for the qualification.", + "min": 0, + "max": "*", + "base": { + "path": "Practitioner.qualification.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".playingEntity.playingRole[classCode=QUAL].id" + } + ] + }, + { + "id": "Practitioner.qualification.code", + "path": "Practitioner.qualification.code", + "short": "Coded representation of the qualification", + "definition": "Coded representation of the qualification.", + "min": 1, + "max": "1", + "base": { + "path": "Practitioner.qualification.code", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Qualification" + } + ], + "strength": "example", + "description": "Specific qualification the practitioner has to provide a service.", + "valueSet": "http://terminology.hl7.org/ValueSet/v2-2.7-0360|0360" + }, + "mapping": [ + { + "identity": "rim", + "map": ".playingEntity.playingRole[classCode=QUAL].code" + }, + { + "identity": "servd", + "map": "./Qualifications.Value" + } + ] + }, + { + "id": "Practitioner.qualification.period", + "path": "Practitioner.qualification.period", + "short": "Period during which the qualification is valid", + "definition": "Period during which the qualification is valid.", + "requirements": "Qualifications are often for a limited period of time, and can be revoked.", + "min": 0, + "max": "1", + "base": { + "path": "Practitioner.qualification.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Period" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".playingEntity.playingRole[classCode=QUAL].effectiveTime" + }, + { + "identity": "servd", + "map": "./Qualifications.StartDate and ./Qualifications.EndDate" + } + ] + }, + { + "id": "Practitioner.qualification.issuer", + "path": "Practitioner.qualification.issuer", + "short": "Organization that regulates and issues the qualification", + "definition": "Organization that regulates and issues the qualification.", + "min": 0, + "max": "1", + "base": { + "path": "Practitioner.qualification.issuer", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".playingEntity.playingRole[classCode=QUAL].scoper" + } + ] + }, + { + "id": "Practitioner.communication", + "path": "Practitioner.communication", + "short": "A language the practitioner can use in patient communication", + "definition": "A language the practitioner can use in patient communication.", + "comment": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.", + "requirements": "Knowing which language a practitioner speaks can help in facilitating communication with patients.", + "min": 0, + "max": "*", + "base": { + "path": "Practitioner.communication", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages|4.0.1" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "PID-15, NK1-20, LAN-2" + }, + { + "identity": "rim", + "map": "./languageCommunication" + }, + { + "identity": "servd", + "map": "./Languages.LanguageSpokenCode" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Practitioner", + "path": "Practitioner" + }, + { + "id": "Practitioner.id", + "path": "Practitioner.id", + "min": 1 + }, + { + "id": "Practitioner.name", + "path": "Practitioner.name", + "short": "Practitioner's name", + "definition": "Verified practitioner's name", + "min": 1, + "max": "1", + "mustSupport": true + }, + { + "id": "Practitioner.name.family", + "path": "Practitioner.name.family", + "definition": "Practitioner's family name", + "min": 1 + }, + { + "id": "Practitioner.name.given", + "path": "Practitioner.name.given", + "short": "Practitioner's given name", + "definition": "Practitioner's given name", + "min": 1 + }, + { + "id": "Practitioner.gender", + "path": "Practitioner.gender", + "short": "Sex at birth: male | female | other | unknown", + "definition": "Identifier to determine the genetic, endocrine and morphological characteristics of the body at birth.", + "min": 1 + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzProcedure.json b/packages/fhir-eswatini/spec/StructureDefinition-SzProcedure.json new file mode 100644 index 0000000000..fab1d8f614 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzProcedure.json @@ -0,0 +1,2393 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzProcedure", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzProcedure

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Procedure 0..*ProcedureAn action that is being or was performed on a patient
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" category 1..1CodeableConceptClassification of the procedure
\".\"\".\"\".\" code S1..1CodeableConceptProcedure Code
\".\"\".\"\".\" subject 1..1Reference(Eswatini Patient Profile)Who the procedure was performed on
\".\"\".\"\".\" encounter 0..1Reference(Eswatini Encounter Profile)Encounter created as part of
\".\"\".\"\".\" performer
\".\"\".\"\".\"\".\" actor 1..1Reference(Eswatini Practitioner Profile)The reference to the practitioner

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzProcedure", + "version": "0.1.0", + "name": "SzProcedure", + "title": "Eswatini Procedure Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "This resource is designed to record details of current and historical procedures performed on a patient.\nThis may include the start and stop dates of treatment like IPT.", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Procedure", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Procedure", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Procedure", + "path": "Procedure", + "short": "An action that is being or was performed on a patient", + "definition": "An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Event" + }, + { + "identity": "rim", + "map": "Procedure[moodCode=EVN]" + } + ] + }, + { + "id": "Procedure.id", + "path": "Procedure.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Procedure.meta", + "path": "Procedure.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Procedure.implicitRules", + "path": "Procedure.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Procedure.language", + "path": "Procedure.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Procedure.text", + "path": "Procedure.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Procedure.contained", + "path": "Procedure.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Procedure.extension", + "path": "Procedure.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Procedure.modifierExtension", + "path": "Procedure.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Procedure.identifier", + "path": "Procedure.identifier", + "short": "External Identifiers for this procedure", + "definition": "Business identifiers assigned to this procedure by the performer or other systems which remain constant as the resource is updated and is propagated from server to server.", + "comment": "This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and Person resource instances might share the same social insurance number.", + "requirements": "Allows identification of the procedure as it is known by various participating systems and in a way that remains consistent across servers.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.identifier" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "Some combination of ORC-2 / ORC-3 / OBR-2 / OBR-3 / IPC-1 / IPC-2 / IPC-3 / IPC-4" + }, + { + "identity": "rim", + "map": ".id" + } + ] + }, + { + "id": "Procedure.instantiatesCanonical", + "path": "Procedure.instantiatesCanonical", + "short": "Instantiates FHIR protocol or definition", + "definition": "The URL pointing to a FHIR-defined protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.instantiatesCanonical", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "canonical", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/PlanDefinition|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ActivityDefinition|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Measure|4.0.1", + "http://hl7.org/fhir/StructureDefinition/OperationDefinition|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Questionnaire|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.instantiatesCanonical" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=DEFN].target" + } + ] + }, + { + "id": "Procedure.instantiatesUri", + "path": "Procedure.instantiatesUri", + "short": "Instantiates external protocol or definition", + "definition": "The URL pointing to an externally maintained protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.", + "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.instantiatesUri", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.instantiatesUri" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=DEFN].target" + } + ] + }, + { + "id": "Procedure.basedOn", + "path": "Procedure.basedOn", + "short": "A request for this procedure", + "definition": "A reference to a resource that contains details of the request for this procedure.", + "alias": [ + "fulfills" + ], + "min": 0, + "max": "*", + "base": { + "path": "Procedure.basedOn", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.basedOn" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=FLFS].target[classCode=(various e.g. PROC, OBS, PCPR, ACT, moodCode=RQO].code" + } + ] + }, + { + "id": "Procedure.partOf", + "path": "Procedure.partOf", + "short": "Part of referenced event", + "definition": "A larger event of which this particular procedure is a component or step.", + "comment": "The MedicationAdministration resource has a partOf reference to Procedure, but this is not a circular reference. For example, the anesthesia MedicationAdministration is part of the surgical Procedure (MedicationAdministration.partOf = Procedure). For example, the procedure to insert the IV port for an IV medication administration is part of the medication administration (Procedure.partOf = MedicationAdministration).", + "alias": [ + "container" + ], + "min": 0, + "max": "*", + "base": { + "path": "Procedure.partOf", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.partOf" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=COMP].source[classCode=SBADM or PROC or OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Procedure.status", + "path": "Procedure.status", + "short": "preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown", + "definition": "A code specifying the state of the procedure. Generally, this will be the in-progress or completed state.", + "comment": "The \"unknown\" code is not to be used to convey other statuses. The \"unknown\" code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the procedure.\n\nThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", + "min": 1, + "max": "1", + "base": { + "path": "Procedure.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ProcedureStatus" + } + ], + "strength": "required", + "description": "A code specifying the state of the procedure.", + "valueSet": "http://hl7.org/fhir/ValueSet/event-status|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "rim", + "map": "statusCode" + } + ] + }, + { + "id": "Procedure.statusReason", + "path": "Procedure.statusReason", + "short": "Reason for current status", + "definition": "Captures the reason for the current state of the procedure.", + "comment": "This is generally only used for \"exception\" statuses such as \"not-done\", \"suspended\" or \"aborted\". The reason for performing the event at all is captured in reasonCode, not here.", + "alias": [ + "Suspended Reason", + "Cancelled Reason" + ], + "min": 0, + "max": "1", + "base": { + "path": "Procedure.statusReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ProcedureNegationReason" + } + ], + "strength": "example", + "description": "A code that identifies the reason a procedure was not performed.", + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-not-performed-reason|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.statusReason" + }, + { + "identity": "rim", + "map": ".reason.Observation.value" + } + ] + }, + { + "id": "Procedure.category", + "path": "Procedure.category", + "short": "Classification of the procedure", + "definition": "A code that classifies the procedure for searching, sorting and display purposes (e.g. \"Surgical Procedure\").", + "min": 1, + "max": "1", + "base": { + "path": "Procedure.category", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ProcedureCategory" + } + ], + "strength": "example", + "description": "A code that classifies a procedure for searching, sorting and display purposes.", + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-category|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code" + } + ] + }, + { + "id": "Procedure.code", + "path": "Procedure.code", + "short": "Procedure Code", + "definition": "Code defining the procedure that was performed", + "requirements": "0..1 to account for primarily narrative only resources.", + "alias": [ + "type" + ], + "min": 1, + "max": "1", + "base": { + "path": "Procedure.code", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ProcedureCode" + } + ], + "strength": "example", + "description": "A code to identify a specific procedure .", + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.code" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "v2", + "map": "OBR-44/OBR-45" + }, + { + "identity": "rim", + "map": ".code" + } + ] + }, + { + "id": "Procedure.subject", + "path": "Procedure.subject", + "short": "Who the procedure was performed on", + "definition": "The person, animal or group on which the procedure was performed.", + "alias": [ + "patient" + ], + "min": 1, + "max": "1", + "base": { + "path": "Procedure.subject", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "PID-3" + }, + { + "identity": "rim", + "map": ".participation[typeCode=SBJ].role" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Procedure.encounter", + "path": "Procedure.encounter", + "short": "Encounter created as part of", + "definition": "The Encounter during which this Procedure was created or performed or to which the creation of this record is tightly associated.", + "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.", + "min": 0, + "max": "1", + "base": { + "path": "Procedure.encounter", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.context" + }, + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "v2", + "map": "PV1-19" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" + } + ] + }, + { + "id": "Procedure.performed[x]", + "path": "Procedure.performed[x]", + "short": "When the procedure was performed", + "definition": "Estimated or actual date, date-time, period, or age when the procedure was performed. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.", + "comment": "Age is generally used when the patient reports an age at which the procedure was performed. Range is generally used when the patient reports an age range when the procedure was performed, such as sometime between 20-25 years old. dateTime supports a range of precision due to some procedures being reported as past procedures that might not have millisecond precision while other procedures performed and documented during the encounter might have more precise UTC timestamps with timezone.", + "min": 0, + "max": "1", + "base": { + "path": "Procedure.performed[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + }, + { + "code": "Period" + }, + { + "code": "string" + }, + { + "code": "Age" + }, + { + "code": "Range" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.done[x]" + }, + { + "identity": "v2", + "map": "OBR-7" + }, + { + "identity": "rim", + "map": ".effectiveTime" + } + ] + }, + { + "id": "Procedure.recorder", + "path": "Procedure.recorder", + "short": "Who recorded the procedure", + "definition": "Individual who recorded the record and takes responsibility for its content.", + "min": 0, + "max": "1", + "base": { + "path": "Procedure.recorder", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.author" + }, + { + "identity": "rim", + "map": ".participation[typeCode=AUT].role" + } + ] + }, + { + "id": "Procedure.asserter", + "path": "Procedure.asserter", + "short": "Person who asserts this procedure", + "definition": "Individual who is making the procedure statement.", + "min": 0, + "max": "1", + "base": { + "path": "Procedure.asserter", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.source" + }, + { + "identity": "rim", + "map": ".participation[typeCode=INF].role" + } + ] + }, + { + "id": "Procedure.performer", + "path": "Procedure.performer", + "short": "The people who performed the procedure", + "definition": "Limited to \"real\" people rather than equipment.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.performer", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer" + }, + { + "identity": "rim", + "map": ".participation[typeCode=PRF]" + } + ] + }, + { + "id": "Procedure.performer.id", + "path": "Procedure.performer.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Procedure.performer.extension", + "path": "Procedure.performer.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Procedure.performer.modifierExtension", + "path": "Procedure.performer.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Procedure.performer.function", + "path": "Procedure.performer.function", + "short": "Type of performance", + "definition": "Distinguishes the type of involvement of the performer in the procedure. For example, surgeon, anaesthetist, endoscopist.", + "requirements": "Allows disambiguation of the types of involvement of different performers.", + "min": 0, + "max": "1", + "base": { + "path": "Procedure.performer.function", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ProcedurePerformerRole" + } + ], + "strength": "example", + "description": "A code that identifies the role of a performer of the procedure.", + "valueSet": "http://hl7.org/fhir/ValueSet/performer-role|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.function" + }, + { + "identity": "v2", + "map": "Some combination of STF-18 / PRA-3 / PRT-4 / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17 / OBX-25" + }, + { + "identity": "rim", + "map": ".functionCode" + } + ] + }, + { + "id": "Procedure.performer.actor", + "path": "Procedure.performer.actor", + "short": "The reference to the practitioner", + "definition": "The practitioner who was involved in the procedure.", + "requirements": "A reference to Device supports use cases, such as pacemakers.", + "min": 1, + "max": "1", + "base": { + "path": "Procedure.performer.actor", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.actor" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "ORC-19/PRT-5" + }, + { + "identity": "rim", + "map": ".role" + } + ] + }, + { + "id": "Procedure.performer.onBehalfOf", + "path": "Procedure.performer.onBehalfOf", + "short": "Organization the device or practitioner was acting for", + "definition": "The organization the device or practitioner was acting on behalf of.", + "requirements": "Practitioners and Devices can be associated with multiple organizations. This element indicates which organization they were acting on behalf of when performing the action.", + "min": 0, + "max": "1", + "base": { + "path": "Procedure.performer.onBehalfOf", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".scoper" + } + ] + }, + { + "id": "Procedure.location", + "path": "Procedure.location", + "short": "Where the procedure happened", + "definition": "The location where the procedure actually happened. E.g. a newborn at home, a tracheostomy at a restaurant.", + "requirements": "Ties a procedure to where the records are likely kept.", + "min": 0, + "max": "1", + "base": { + "path": "Procedure.location", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Location|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.where[x]" + }, + { + "identity": "rim", + "map": ".participation[typeCode=LOC].role[classCode=SDLOC]" + } + ] + }, + { + "id": "Procedure.reasonCode", + "path": "Procedure.reasonCode", + "short": "Coded reason procedure performed", + "definition": "The coded reason why the procedure was performed. This may be a coded entity of some type, or may simply be present as text.", + "comment": "Use Procedure.reasonCode when a code sufficiently describes the reason. Use Procedure.reasonReference when referencing a resource, which allows more information to be conveyed, such as onset date. Procedure.reasonCode and Procedure.reasonReference are not meant to be duplicative. For a single reason, either Procedure.reasonCode or Procedure.reasonReference can be used. Procedure.reasonCode may be a summary code, or Procedure.reasonReference may be used to reference a very precise definition of the reason using Condition | Observation | Procedure | DiagnosticReport | DocumentReference. Both Procedure.reasonCode and Procedure.reasonReference can be used if they are describing different reasons for the procedure.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.reasonCode", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ProcedureReason" + } + ], + "strength": "example", + "description": "A code that identifies the reason a procedure is required.", + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.reasonCode" + }, + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "rim", + "map": ".reasonCode" + } + ] + }, + { + "id": "Procedure.reasonReference", + "path": "Procedure.reasonReference", + "short": "The justification that the procedure was performed", + "definition": "The justification of why the procedure was performed.", + "comment": "It is possible for a procedure to be a reason (such as C-Section) for another procedure (such as an epidural). Other examples include endoscopy for dilatation and biopsy (a combination of diagnostic and therapeutic use). \nUse Procedure.reasonCode when a code sufficiently describes the reason. Use Procedure.reasonReference when referencing a resource, which allows more information to be conveyed, such as onset date. Procedure.reasonCode and Procedure.reasonReference are not meant to be duplicative. For a single reason, either Procedure.reasonCode or Procedure.reasonReference can be used. Procedure.reasonCode may be a summary code, or Procedure.reasonReference may be used to reference a very precise definition of the reason using Condition | Observation | Procedure | DiagnosticReport | DocumentReference. Both Procedure.reasonCode and Procedure.reasonReference can be used if they are describing different reasons for the procedure.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.reasonReference", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Condition|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DiagnosticReport|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.reasonReference" + }, + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "rim", + "map": ".reasonCode" + } + ] + }, + { + "id": "Procedure.bodySite", + "path": "Procedure.bodySite", + "short": "Target body sites", + "definition": "Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion.", + "comment": "If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [procedure-targetbodystructure](http://hl7.org/fhir/R4/extension-procedure-targetbodystructure.html).", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.bodySite", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "BodySite" + } + ], + "strength": "example", + "description": "Codes describing anatomical locations. May include laterality.", + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "OBX-20" + }, + { + "identity": "rim", + "map": ".targetSiteCode" + } + ] + }, + { + "id": "Procedure.outcome", + "path": "Procedure.outcome", + "short": "The result of procedure", + "definition": "The outcome of the procedure - did it resolve the reasons for the procedure being performed?", + "comment": "If outcome contains narrative text only, it can be captured using the CodeableConcept.text.", + "min": 0, + "max": "1", + "base": { + "path": "Procedure.outcome", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ProcedureOutcome" + } + ], + "strength": "example", + "description": "An outcome of a procedure - whether it was resolved or otherwise.", + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-outcome|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=OUT].target.text" + } + ] + }, + { + "id": "Procedure.report", + "path": "Procedure.report", + "short": "Any report resulting from the procedure", + "definition": "This could be a histology result, pathology report, surgical report, etc.", + "comment": "There could potentially be multiple reports - e.g. if this was a procedure which took multiple biopsies resulting in a number of anatomical pathology reports.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.report", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/DiagnosticReport|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Composition|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Procedure.complication", + "path": "Procedure.complication", + "short": "Complication following the procedure", + "definition": "Any complications that occurred during the procedure, or in the immediate post-performance period. These are generally tracked separately from the notes, which will typically describe the procedure itself rather than any 'post procedure' issues.", + "comment": "If complications are only expressed by the narrative text, they can be captured using the CodeableConcept.text.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.complication", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ProcedureComplication" + } + ], + "strength": "example", + "description": "Codes describing complications that resulted from a procedure.", + "valueSet": "http://hl7.org/fhir/ValueSet/condition-code|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=OUTC].target[classCode=OBS, code=\"complication\", moodCode=EVN].value" + } + ] + }, + { + "id": "Procedure.complicationDetail", + "path": "Procedure.complicationDetail", + "short": "A condition that is a result of the procedure", + "definition": "Any complications that occurred during the procedure, or in the immediate post-performance period.", + "requirements": "This is used to document a condition that is a result of the procedure, not the condition that was the reason for the procedure.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.complicationDetail", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Condition|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=OUTC].target[classCode=OBS, code=\"complication\", moodCode=EVN].value" + } + ] + }, + { + "id": "Procedure.followUp", + "path": "Procedure.followUp", + "short": "Instructions for follow up", + "definition": "If the procedure required specific follow up - e.g. removal of sutures. The follow up may be represented as a simple note or could potentially be more complex, in which case the CarePlan resource can be used.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.followUp", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ProcedureFollowUp" + } + ], + "strength": "example", + "description": "Specific follow up required for a procedure e.g. removal of sutures.", + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-followup|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COMP].target[classCode=ACT, moodCode=INT].code" + } + ] + }, + { + "id": "Procedure.note", + "path": "Procedure.note", + "short": "Additional information about the procedure", + "definition": "Any other notes and comments about the procedure.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Event.note" + }, + { + "identity": "v2", + "map": "NTE" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value" + } + ] + }, + { + "id": "Procedure.focalDevice", + "path": "Procedure.focalDevice", + "short": "Manipulated, implanted, or removed device", + "definition": "A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.focalDevice", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".participation[typeCode=DEV].role[classCode=MANU]" + } + ] + }, + { + "id": "Procedure.focalDevice.id", + "path": "Procedure.focalDevice.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Procedure.focalDevice.extension", + "path": "Procedure.focalDevice.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Procedure.focalDevice.modifierExtension", + "path": "Procedure.focalDevice.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Procedure.focalDevice.action", + "path": "Procedure.focalDevice.action", + "short": "Kind of change to device", + "definition": "The kind of change that happened to the device during the procedure.", + "min": 0, + "max": "1", + "base": { + "path": "Procedure.focalDevice.action", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "DeviceActionKind" + } + ], + "strength": "preferred", + "description": "A kind of change that happened to the device during the procedure.", + "valueSet": "http://hl7.org/fhir/ValueSet/device-action|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"procedure device action\"].value=:procedure device action codes" + } + ] + }, + { + "id": "Procedure.focalDevice.manipulated", + "path": "Procedure.focalDevice.manipulated", + "short": "Device that was changed", + "definition": "The device that was manipulated (changed) during the procedure.", + "min": 1, + "max": "1", + "base": { + "path": "Procedure.focalDevice.manipulated", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Device|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".participation[typeCode=DEV].role[classCode=SDLOC]" + } + ] + }, + { + "id": "Procedure.usedReference", + "path": "Procedure.usedReference", + "short": "Items used during procedure", + "definition": "Identifies medications, devices and any other substance used as part of the procedure.", + "comment": "For devices actually implanted or removed, use Procedure.device.", + "requirements": "Used for tracking contamination, etc.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.usedReference", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Device|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Medication|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Substance|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".participation[typeCode=DEV].role[classCode=MANU] or\n.participation[typeCode=CSM].role[classCode=ADMM] (for Medication or Substance)" + } + ] + }, + { + "id": "Procedure.usedCode", + "path": "Procedure.usedCode", + "short": "Coded items used during the procedure", + "definition": "Identifies coded items that were used as part of the procedure.", + "comment": "For devices actually implanted or removed, use Procedure.device.", + "min": 0, + "max": "*", + "base": { + "path": "Procedure.usedCode", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ProcedureUsed" + } + ], + "strength": "example", + "description": "Codes describing items used during a procedure.", + "valueSet": "http://hl7.org/fhir/ValueSet/device-kind|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "participation[typeCode=Dev].role[classCode=MANU]" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Procedure", + "path": "Procedure" + }, + { + "id": "Procedure.id", + "path": "Procedure.id", + "min": 1 + }, + { + "id": "Procedure.category", + "path": "Procedure.category", + "min": 1 + }, + { + "id": "Procedure.code", + "path": "Procedure.code", + "short": "Procedure Code", + "definition": "Code defining the procedure that was performed", + "min": 1, + "mustSupport": true + }, + { + "id": "Procedure.subject", + "path": "Procedure.subject", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ] + }, + { + "id": "Procedure.encounter", + "path": "Procedure.encounter", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ] + }, + { + "id": "Procedure.performer.actor", + "path": "Procedure.performer.actor", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzReferral.json b/packages/fhir-eswatini/spec/StructureDefinition-SzReferral.json new file mode 100644 index 0000000000..70f02c04fe --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzReferral.json @@ -0,0 +1,2433 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzReferral", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzReferral

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" ServiceRequest 0..*ServiceRequestA request for a service to be performed
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" Slices for extension 1..*ExtensionExtension
Slice: Unordered, Open by value:url
\".\"\".\"\".\"\".\" extension:recipient 1..1Reference(Eswatini Organization Profile)Health facility receiving the referred patient.
URL: https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension
\".\"\".\"\".\" identifier 1..1IdentifierIdentifiers assigned to this order
\".\"\".\"\".\" category 1..1CodeableConceptClassification of service
\".\"\".\"\".\" code 1..1CodeableConceptWhat is being requested/ordered
\".\"\".\"\".\" subject 1..1Reference(Eswatini Patient Profile)Patient associated with the referral
\".\"\".\"\".\" encounter 1..1Reference(Eswatini Encounter Profile)Visit or Encounter associated with the referral
\".\"\".\"\".\" occurrence[x] 1..1dateTime, Period, TimingDate the patient is expected to arrive at the reciving facility
\".\"\".\"\".\" authoredOn 1..1dateTimeDate the refferal was created
\".\"\".\"\".\" requester 1..1Reference(Eswatini Organization Profile)Health facility making the referral
\".\"\".\"\".\" reasonCode 1..1CodeableConceptReason the patient is being referred

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferral", + "version": "0.1.0", + "name": "SzReferral", + "title": "Eswatini Referral Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "This resource is designed to record patient referral information.", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "quick", + "uri": "http://siframework.org/cqf", + "name": "Quality Improvement and Clinical Knowledge (QUICK)" + } + ], + "kind": "resource", + "abstract": false, + "type": "ServiceRequest", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "ServiceRequest", + "path": "ServiceRequest", + "short": "A request for a service to be performed", + "definition": "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed.", + "alias": [ + "diagnostic request", + "referral", + "referral request", + "transfer of care request" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "prr-1", + "severity": "error", + "human": "orderDetail SHALL only be present if code is present", + "expression": "orderDetail.empty() or code.exists()", + "xpath": "exists(f:code) or not(exists(f:orderDetail))", + "source": "http://hl7.org/fhir/StructureDefinition/ServiceRequest" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Request" + }, + { + "identity": "v2", + "map": "ORC" + }, + { + "identity": "rim", + "map": "Act[moodCode<=INT]" + } + ] + }, + { + "id": "ServiceRequest.id", + "path": "ServiceRequest.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "ServiceRequest.meta", + "path": "ServiceRequest.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "ServiceRequest.implicitRules", + "path": "ServiceRequest.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "ServiceRequest.language", + "path": "ServiceRequest.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "ServiceRequest.text", + "path": "ServiceRequest.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "ServiceRequest.contained", + "path": "ServiceRequest.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "ServiceRequest.extension", + "path": "ServiceRequest.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 1, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "ServiceRequest.extension:recipient", + "path": "ServiceRequest.extension", + "sliceName": "recipient", + "short": "Health facility receiving the referred patient.", + "definition": "Extention for Eswatini Referral Recipient", + "min": 1, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "ServiceRequest.modifierExtension", + "path": "ServiceRequest.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "ServiceRequest.identifier", + "path": "ServiceRequest.identifier", + "short": "Identifiers assigned to this order", + "definition": "Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.", + "comment": "The identifier.type element is used to distinguish between the identifiers assigned by the orderer (known as the 'Placer' in HL7 v2) and the producer of the observations in response to the order (known as the 'Filler' in HL7 v2). For further discussion and examples see the resource notes section below.", + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.identifier" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "ORC.2, ORC.3, RF1-6 / RF1-11," + }, + { + "identity": "rim", + "map": ".identifier" + }, + { + "identity": "quick", + "map": "ClinicalStatement.identifier" + } + ] + }, + { + "id": "ServiceRequest.instantiatesCanonical", + "path": "ServiceRequest.instantiatesCanonical", + "short": "Instantiates FHIR protocol or definition", + "definition": "The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.", + "comment": "Note: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.instantiatesCanonical", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "canonical", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/ActivityDefinition|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PlanDefinition|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.instantiatesCanonical" + }, + { + "identity": "v2", + "map": "Varies by domain" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=DEFN].target" + } + ] + }, + { + "id": "ServiceRequest.instantiatesUri", + "path": "ServiceRequest.instantiatesUri", + "short": "Instantiates external protocol or definition", + "definition": "The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.", + "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.instantiatesUri", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.instantiatesUri" + }, + { + "identity": "v2", + "map": "Varies by domain" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=DEFN].target" + } + ] + }, + { + "id": "ServiceRequest.basedOn", + "path": "ServiceRequest.basedOn", + "short": "What request fulfills", + "definition": "Plan/proposal/order fulfilled by this request.", + "alias": [ + "fulfills" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.basedOn", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.basedOn" + }, + { + "identity": "v2", + "map": "ORC.8 (plus others)" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=FLFS].target" + } + ] + }, + { + "id": "ServiceRequest.replaces", + "path": "ServiceRequest.replaces", + "short": "What request replaces", + "definition": "The request takes the place of the referenced completed or terminated request(s).", + "alias": [ + "supersedes", + "prior", + "renewed order" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.replaces", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.replaces" + }, + { + "identity": "v2", + "map": "Handled by message location of ORC (ORC.1=RO or RU)" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=RPLC].target" + } + ] + }, + { + "id": "ServiceRequest.requisition", + "path": "ServiceRequest.requisition", + "short": "Composite Request ID", + "definition": "A shared identifier common to all service requests that were authorized more or less simultaneously by a single author, representing the composite or group identifier.", + "comment": "Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.", + "requirements": "Some business processes need to know if multiple items were ordered as part of the same \"requisition\" for billing or other purposes.", + "alias": [ + "grouperId", + "groupIdentifier" + ], + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.requisition", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.groupIdentifier" + }, + { + "identity": "v2", + "map": "ORC.4" + }, + { + "identity": "rim", + "map": ".inboundRelationship(typeCode=COMP].source[moodCode=INT].identifier" + } + ] + }, + { + "id": "ServiceRequest.status", + "path": "ServiceRequest.status", + "short": "draft | active | on-hold | revoked | completed | entered-in-error | unknown", + "definition": "The status of the order.", + "comment": "The status is generally fully in the control of the requester - they determine whether the order is draft or active and, after it has been activated, competed, cancelled or suspended. States relating to the activities of the performer are reflected on either the corresponding event (see [Event Pattern](http://hl7.org/fhir/R4/event.html) for general discussion) or using the [Task](http://hl7.org/fhir/R4/task.html) resource.", + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestStatus" + } + ], + "strength": "required", + "description": "The status of a service order.", + "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "v2", + "map": "ORC.5,RF1-1" + }, + { + "identity": "rim", + "map": ".status" + }, + { + "identity": "quick", + "map": "Action.currentStatus" + } + ] + }, + { + "id": "ServiceRequest.intent", + "path": "ServiceRequest.intent", + "short": "proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option", + "definition": "Whether the request is a proposal, plan, an original order or a reflex order.", + "comment": "This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.", + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.intent", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestIntent" + } + ], + "strength": "required", + "description": "The kind of service request.", + "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.intent" + }, + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": ".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)" + } + ] + }, + { + "id": "ServiceRequest.category", + "path": "ServiceRequest.category", + "short": "Classification of service", + "definition": "A code that classifies the service for searching, sorting and display purposes (e.g. \"Surgical Procedure\").", + "comment": "There may be multiple axis of categorization depending on the context or use case for retrieving or displaying the resource. The level of granularity is defined by the category concepts in the value set.", + "requirements": "Used for filtering what service request are retrieved and displayed.", + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.category", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestCategory" + } + ], + "strength": "example", + "description": "Classification of the requested service.", + "valueSet": "http://hl7.org/fhir/ValueSet/servicerequest-category|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "v2", + "map": "RF1-5" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"INT\"].code" + } + ] + }, + { + "id": "ServiceRequest.priority", + "path": "ServiceRequest.priority", + "short": "routine | urgent | asap | stat", + "definition": "Indicates how quickly the ServiceRequest should be addressed with respect to other requests.", + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.priority", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "meaningWhenMissing": "If missing, this task should be performed with normal priority", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestPriority" + } + ], + "strength": "required", + "description": "Identifies the level of importance to be assigned to actioning the request.", + "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.priority" + }, + { + "identity": "w5", + "map": "FiveWs.grade" + }, + { + "identity": "v2", + "map": "TQ1.9, RF1-2" + }, + { + "identity": "rim", + "map": ".priorityCode" + } + ] + }, + { + "id": "ServiceRequest.doNotPerform", + "path": "ServiceRequest.doNotPerform", + "short": "True if service/procedure should not be performed", + "definition": "Set this to true if the record is saying that the service/procedure should NOT be performed.", + "comment": "In general, only the code and timeframe will be present, though occasional additional qualifiers such as body site or even performer could be included to narrow the scope of the prohibition. If the ServiceRequest.code and ServiceRequest.doNotPerform both contain negation, that will reinforce prohibition and should not have a double negative interpretation.", + "requirements": "Used for do not ambulate, do not elevate head of bed, do not flush NG tube, do not take blood pressure on a certain arm, etc.", + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.doNotPerform", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "meaningWhenMissing": "If missing, the request is a positive request e.g. \"do perform\"", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "If true this element negates the specified action. For Example, instead of a request for a procedure, it is a request for the procedure to not occur.", + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.doNotPerform" + }, + { + "identity": "rim", + "map": ".actionNegationInd" + } + ] + }, + { + "id": "ServiceRequest.code", + "path": "ServiceRequest.code", + "short": "What is being requested/ordered", + "definition": "A code that identifies a particular service (i.e., procedure, diagnostic investigation, or panel of investigations) that have been requested.", + "comment": "Many laboratory and radiology procedure codes embed the specimen/organ system in the test order name, for example, serum or serum/plasma glucose, or a chest x-ray. The specimen might not be recorded separately from the test code.", + "alias": [ + "service requested" + ], + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.code", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestCode" + } + ], + "strength": "example", + "description": "Codes for tests or services that can be carried out by a designated individual, organization or healthcare service. For laboratory, LOINC is (preferred)[http://build.fhir.org/terminologies.html#preferred].", + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-code|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.code" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "v2", + "map": "PR1-3 / OBR-4 (varies by domain)" + }, + { + "identity": "rim", + "map": ".code" + }, + { + "identity": "quick", + "map": "Procedure.procedureCode" + } + ] + }, + { + "id": "ServiceRequest.orderDetail", + "path": "ServiceRequest.orderDetail", + "short": "Additional order information", + "definition": "Additional details and instructions about the how the services are to be delivered. For example, and order for a urinary catheter may have an order detail for an external or indwelling catheter, or an order for a bandage may require additional instructions specifying how the bandage should be applied.", + "comment": "For information from the medical record intended to support the delivery of the requested services, use the `supportingInformation` element.", + "alias": [ + "detailed instructions" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.orderDetail", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "prr-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "OrderDetail" + } + ], + "strength": "example", + "description": "Codified order entry details which are based on order context.", + "valueSet": "http://hl7.org/fhir/ValueSet/servicerequest-orderdetail|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "NTE" + }, + { + "identity": "rim", + "map": ".code" + }, + { + "identity": "quick", + "map": "Procedure.procedureCode" + } + ] + }, + { + "id": "ServiceRequest.quantity[x]", + "path": "ServiceRequest.quantity[x]", + "short": "Service amount", + "definition": "An amount of service being requested which can be a quantity ( for example $1,500 home modification), a ratio ( for example, 20 half day visits per month), or a range (2.0 to 1.8 Gy per fraction).", + "requirements": "When ordering a service the number of service items may need to be specified separately from the the service item.", + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.quantity[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity" + }, + { + "code": "Ratio" + }, + { + "code": "Range" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "NTE" + }, + { + "identity": "rim", + "map": ".quantity" + } + ] + }, + { + "id": "ServiceRequest.subject", + "path": "ServiceRequest.subject", + "short": "Patient associated with the referral", + "definition": "On whom or what the service is to be performed. This is usually a human patient, but can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).", + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.subject", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "PID" + }, + { + "identity": "rim", + "map": ".participation[typeCode=SBJ].role" + }, + { + "identity": "quick", + "map": "ClinicalStatement.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "ServiceRequest.encounter", + "path": "ServiceRequest.encounter", + "short": "Visit or Encounter associated with the referral", + "definition": "An encounter that provides additional information about the healthcare context in which this request is made.", + "alias": [ + "context" + ], + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.encounter", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.encounter" + }, + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "v2", + "map": "PV1" + }, + { + "identity": "rim", + "map": ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]" + }, + { + "identity": "quick", + "map": "ClinicalStatement.encounter" + } + ] + }, + { + "id": "ServiceRequest.occurrence[x]", + "path": "ServiceRequest.occurrence[x]", + "short": "Date the patient is expected to arrive at the reciving facility", + "definition": "The date/time at which the requested service should occur.", + "alias": [ + "schedule" + ], + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.occurrence[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + }, + { + "code": "Period" + }, + { + "code": "Timing" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.planned" + }, + { + "identity": "v2", + "map": "TQ1/TQ2, OBR-7/OBR-8" + }, + { + "identity": "rim", + "map": ".effectiveTime" + }, + { + "identity": "quick", + "map": "Procedure.procedureSchedule" + } + ] + }, + { + "id": "ServiceRequest.asNeeded[x]", + "path": "ServiceRequest.asNeeded[x]", + "short": "Preconditions for service", + "definition": "If a CodeableConcept is present, it indicates the pre-condition for performing the service. For example \"pain\", \"on flare-up\", etc.", + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.asNeeded[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + }, + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ProcedureAsNeededReason" + } + ], + "strength": "example", + "description": "A coded concept identifying the pre-condition that should hold prior to performing a procedure. For example \"pain\", \"on flare-up\", etc.", + "valueSet": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "boolean: precondition.negationInd (inversed - so negationInd = true means asNeeded=false CodeableConcept: precondition.observationEventCriterion[code=\"Assertion\"].value" + }, + { + "identity": "quick", + "map": "Proposal.prnReason.reason" + } + ] + }, + { + "id": "ServiceRequest.authoredOn", + "path": "ServiceRequest.authoredOn", + "short": "Date the refferal was created", + "definition": "When the request transitioned to being actionable.", + "alias": [ + "orderedOn" + ], + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.authoredOn", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.authoredOn" + }, + { + "identity": "w5", + "map": "FiveWs.recorded" + }, + { + "identity": "v2", + "map": "ORC.9, RF1-7 / RF1-9" + }, + { + "identity": "rim", + "map": ".participation[typeCode=AUT].time" + }, + { + "identity": "quick", + "map": "Proposal.proposedAtTime" + } + ] + }, + { + "id": "ServiceRequest.requester", + "path": "ServiceRequest.requester", + "short": "Health facility making the referral", + "definition": "The individual who initiated the request and has responsibility for its activation.", + "comment": "This not the dispatcher, but rather who is the authorizer. This element is not intended to handle delegation which would generally be managed through the Provenance resource.", + "alias": [ + "author", + "orderer" + ], + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.requester", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.requester" + }, + { + "identity": "w5", + "map": "FiveWs.author" + }, + { + "identity": "v2", + "map": "ORC.12, PRT" + }, + { + "identity": "rim", + "map": ".participation[typeCode=AUT].role" + }, + { + "identity": "quick", + "map": "ClinicalStatement.statementAuthor" + } + ] + }, + { + "id": "ServiceRequest.performerType", + "path": "ServiceRequest.performerType", + "short": "Performer role", + "definition": "Desired type of performer for doing the requested service.", + "comment": "This is a role, not a participation type. In other words, does not describe the task but describes the capacity. For example, “compounding pharmacy”, “psychiatrist” or “internal referral”.", + "alias": [ + "specialty" + ], + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.performerType", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestParticipantRole" + } + ], + "strength": "example", + "description": "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.", + "valueSet": "http://hl7.org/fhir/ValueSet/participant-role|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.performerType" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "PRT, RF!-3" + }, + { + "identity": "rim", + "map": ".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code" + } + ] + }, + { + "id": "ServiceRequest.performer", + "path": "ServiceRequest.performer", + "short": "Requested performer", + "definition": "The desired performer for doing the requested service. For example, the surgeon, dermatopathologist, endoscopist, etc.", + "comment": "If multiple performers are present, it is interpreted as a list of *alternative* performers without any preference regardless of order. If order of preference is needed use the [request-performerOrder extension](http://hl7.org/fhir/R4/extension-request-performerorder.html). Use CareTeam to represent a group of performers (for example, Practitioner A *and* Practitioner B).", + "alias": [ + "request recipient" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.performer", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1", + "http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1", + "http://hl7.org/fhir/StructureDefinition/HealthcareService|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Device|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.performer" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "PRT, Practitioner: PRD-2/PRD-7 where PRD-3 = RT; Organization: PRD-10 where PRD-3 = RT" + }, + { + "identity": "rim", + "map": ".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" + } + ] + }, + { + "id": "ServiceRequest.locationCode", + "path": "ServiceRequest.locationCode", + "short": "Requested location", + "definition": "The preferred location(s) where the procedure should actually happen in coded or free text form. E.g. at home or nursing day care center.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.locationCode", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestLocation" + } + ], + "strength": "example", + "description": "A location type where services are delivered.", + "valueSet": "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "rim", + "map": ".participation[typeCode=LOC].role[scoper.determinerCode=KIND].code" + } + ] + }, + { + "id": "ServiceRequest.locationReference", + "path": "ServiceRequest.locationReference", + "short": "Requested location", + "definition": "A reference to the the preferred location(s) where the procedure should actually happen. E.g. at home or nursing day care center.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.locationReference", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Location|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "rim", + "map": ".participation[typeCode=LOC].role[scoper.determinerCode=INSTANCE]" + } + ] + }, + { + "id": "ServiceRequest.reasonCode", + "path": "ServiceRequest.reasonCode", + "short": "Reason the patient is being referred", + "definition": "An explanation or justification for why this service is being requested in coded or textual form. This is often for billing purposes. May relate to the resources referred to in `supportingInfo`.", + "comment": "This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all. Use `CodeableConcept.text` element if the data is free (uncoded) text as shown in the [CT Scan example](http://hl7.org/fhir/R4/servicerequest-example-di.html).", + "min": 1, + "max": "1", + "base": { + "path": "ServiceRequest.reasonCode", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ServiceRequestReason" + } + ], + "strength": "example", + "description": "Diagnosis or problem codes justifying the reason for requesting the service investigation.", + "valueSet": "http://hl7.org/fhir/ValueSet/procedure-reason|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Request.reasonCode" + }, + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "v2", + "map": "ORC.16, RF1-10" + }, + { + "identity": "rim", + "map": ".reasonCode" + } + ] + }, + { + "id": "ServiceRequest.reasonReference", + "path": "ServiceRequest.reasonReference", + "short": "Explanation/Justification for service or service", + "definition": "Indicates another resource that provides a justification for why this service is being requested. May relate to the resources referred to in `supportingInfo`.", + "comment": "This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all. To be as specific as possible, a reference to *Observation* or *Condition* should be used if available. Otherwise when referencing *DiagnosticReport* it should contain a finding in `DiagnosticReport.conclusion` and/or `DiagnosticReport.conclusionCode`. When using a reference to *DocumentReference*, the target document should contain clear findings language providing the relevant reason for this service request. Use the CodeableConcept text element in `ServiceRequest.reasonCode` if the data is free (uncoded) text as shown in the [CT Scan example](http://hl7.org/fhir/R4/servicerequest-example-di.html).", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.reasonReference", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Condition|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DiagnosticReport|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Request.reasonReference" + }, + { + "identity": "w5", + "map": "FiveWs.why[x]" + }, + { + "identity": "v2", + "map": "ORC.16" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=RSON].target" + } + ] + }, + { + "id": "ServiceRequest.insurance", + "path": "ServiceRequest.insurance", + "short": "Associated insurance coverage", + "definition": "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be needed for delivering the requested service.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.insurance", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Coverage|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ClaimResponse|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.insurance" + }, + { + "identity": "v2", + "map": "IN1/IN2" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COVBY].target" + } + ] + }, + { + "id": "ServiceRequest.supportingInfo", + "path": "ServiceRequest.supportingInfo", + "short": "Additional clinical information", + "definition": "Additional clinical information about the patient or specimen that may influence the services or their interpretations. This information includes diagnosis, clinical findings and other observations. In laboratory ordering these are typically referred to as \"ask at order entry questions (AOEs)\". This includes observations explicitly requested by the producer (filler) to provide context or supporting information needed to complete the order. For example, reporting the amount of inspired oxygen for blood gas measurements.", + "comment": "To represent information about how the services are to be delivered use the `instructions` element.", + "alias": [ + "Ask at order entry question", + "AOE" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.supportingInfo", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.supportingInfo" + }, + { + "identity": "v2", + "map": "Accompanying segments" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=PERT].target" + } + ] + }, + { + "id": "ServiceRequest.specimen", + "path": "ServiceRequest.specimen", + "short": "Procedure Samples", + "definition": "One or more specimens that the laboratory procedure will use.", + "comment": "Many diagnostic procedures need a specimen, but the request itself is not actually about the specimen. This element is for when the diagnostic is requested on already existing specimens and the request points to the specimen it applies to. Conversely, if the request is entered first with an unknown specimen, then the [Specimen](http://hl7.org/fhir/R4/specimen.html) resource points to the ServiceRequest.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.specimen", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "SPM" + }, + { + "identity": "rim", + "map": ".participation[typeCode=SPC].role" + } + ] + }, + { + "id": "ServiceRequest.bodySite", + "path": "ServiceRequest.bodySite", + "short": "Location on Body", + "definition": "Anatomic location where the procedure should be performed. This is the target site.", + "comment": "Only used if not implicit in the code found in ServiceRequest.code. If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately) then use the standard extension [procedure-targetBodyStructure](http://hl7.org/fhir/R4/extension-procedure-targetbodystructure.html).", + "requirements": "Knowing where the procedure is performed is important for tracking if multiple sites are possible.", + "alias": [ + "location" + ], + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.bodySite", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "BodySite" + } + ], + "strength": "example", + "description": "Codes describing anatomical locations. May include laterality.", + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "SPM" + }, + { + "identity": "rim", + "map": "targetSiteCode" + }, + { + "identity": "quick", + "map": "Procedure.targetBodySite" + } + ] + }, + { + "id": "ServiceRequest.note", + "path": "ServiceRequest.note", + "short": "Comments", + "definition": "Any other notes and comments made about the service request. For example, internal billing notes.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.note" + }, + { + "identity": "v2", + "map": "NTE" + }, + { + "identity": "rim", + "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]" + }, + { + "identity": "quick", + "map": "ClinicalStatement.additionalText" + } + ] + }, + { + "id": "ServiceRequest.patientInstruction", + "path": "ServiceRequest.patientInstruction", + "short": "Patient or consumer-oriented instructions", + "definition": "Instructions in terms that are understood by the patient or consumer.", + "min": 0, + "max": "1", + "base": { + "path": "ServiceRequest.patientInstruction", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "NTE" + }, + { + "identity": "rim", + "map": ".text" + } + ] + }, + { + "id": "ServiceRequest.relevantHistory", + "path": "ServiceRequest.relevantHistory", + "short": "Request provenance", + "definition": "Key events in the history of the request.", + "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject.", + "min": 0, + "max": "*", + "base": { + "path": "ServiceRequest.relevantHistory", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Provenance|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "workflow", + "map": "Request.relevantHistory" + }, + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "ServiceRequest", + "path": "ServiceRequest" + }, + { + "id": "ServiceRequest.id", + "path": "ServiceRequest.id", + "min": 1 + }, + { + "id": "ServiceRequest.extension", + "path": "ServiceRequest.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + }, + "min": 1 + }, + { + "id": "ServiceRequest.extension:recipient", + "path": "ServiceRequest.extension", + "sliceName": "recipient", + "short": "Health facility receiving the referred patient.", + "min": 1, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension" + ] + } + ] + }, + { + "id": "ServiceRequest.identifier", + "path": "ServiceRequest.identifier", + "min": 1, + "max": "1" + }, + { + "id": "ServiceRequest.category", + "path": "ServiceRequest.category", + "min": 1, + "max": "1" + }, + { + "id": "ServiceRequest.code", + "path": "ServiceRequest.code", + "min": 1 + }, + { + "id": "ServiceRequest.subject", + "path": "ServiceRequest.subject", + "short": "Patient associated with the referral", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ] + }, + { + "id": "ServiceRequest.encounter", + "path": "ServiceRequest.encounter", + "short": "Visit or Encounter associated with the referral", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ] + }, + { + "id": "ServiceRequest.occurrence[x]", + "path": "ServiceRequest.occurrence[x]", + "short": "Date the patient is expected to arrive at the reciving facility", + "min": 1 + }, + { + "id": "ServiceRequest.authoredOn", + "path": "ServiceRequest.authoredOn", + "short": "Date the refferal was created", + "min": 1 + }, + { + "id": "ServiceRequest.requester", + "path": "ServiceRequest.requester", + "short": "Health facility making the referral", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization" + ] + } + ] + }, + { + "id": "ServiceRequest.reasonCode", + "path": "ServiceRequest.reasonCode", + "short": "Reason the patient is being referred", + "min": 1, + "max": "1" + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzReferralRecipientExtension.json b/packages/fhir-eswatini/spec/StructureDefinition-SzReferralRecipientExtension.json new file mode 100644 index 0000000000..99305ce789 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzReferralRecipientExtension.json @@ -0,0 +1,497 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzReferralRecipientExtension", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzReferralRecipientExtension

\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Extension 0..*ExtensionExtention: Eswatini Referral Recipient
\".\"\".\"\".\" extension 0..0Extension
\".\"\".\"\".\" url 1..1uri"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension"
\".\"\".\"\".\" Slices for value[x] 0..1base64Binary, boolean, canonical(), code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, url, uuid, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, ContactDetail, Contributor, DataRequirement, Expression, ParameterDefinition, RelatedArtifact, TriggerDefinition, UsageContext, Dosage, MetaValue of extension
Slice: Unordered, Open by type:$this
\".\"\".\"\".\"\".\" value[x]:valueReference 0..1Reference(Eswatini Organization Profile)Value of extension

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension", + "version": "0.1.0", + "name": "SzReferralRecipientExtension", + "title": "Extention: Eswatini Referral Recipient", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Extention for Eswatini Referral Recipient", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Eswatini Referral Recipient", + "definition": "Extention for Eswatini Referral Recipient", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "open" + }, + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "base64Binary" + }, + { + "code": "boolean" + }, + { + "code": "canonical" + }, + { + "code": "code" + }, + { + "code": "date" + }, + { + "code": "dateTime" + }, + { + "code": "decimal" + }, + { + "code": "id" + }, + { + "code": "instant" + }, + { + "code": "integer" + }, + { + "code": "markdown" + }, + { + "code": "oid" + }, + { + "code": "positiveInt" + }, + { + "code": "string" + }, + { + "code": "time" + }, + { + "code": "unsignedInt" + }, + { + "code": "uri" + }, + { + "code": "url" + }, + { + "code": "uuid" + }, + { + "code": "Address" + }, + { + "code": "Age" + }, + { + "code": "Annotation" + }, + { + "code": "Attachment" + }, + { + "code": "CodeableConcept" + }, + { + "code": "Coding" + }, + { + "code": "ContactPoint" + }, + { + "code": "Count" + }, + { + "code": "Distance" + }, + { + "code": "Duration" + }, + { + "code": "HumanName" + }, + { + "code": "Identifier" + }, + { + "code": "Money" + }, + { + "code": "Period" + }, + { + "code": "Quantity" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "Reference" + }, + { + "code": "SampledData" + }, + { + "code": "Signature" + }, + { + "code": "Timing" + }, + { + "code": "ContactDetail" + }, + { + "code": "Contributor" + }, + { + "code": "DataRequirement" + }, + { + "code": "Expression" + }, + { + "code": "ParameterDefinition" + }, + { + "code": "RelatedArtifact" + }, + { + "code": "TriggerDefinition" + }, + { + "code": "UsageContext" + }, + { + "code": "Dosage" + }, + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]:valueReference", + "path": "Extension.value[x]", + "sliceName": "valueReference", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization|0.1.0" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Eswatini Referral Recipient", + "definition": "Extention for Eswatini Referral Recipient" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "open" + } + }, + { + "id": "Extension.value[x]:valueReference", + "path": "Extension.value[x]", + "sliceName": "valueReference", + "min": 0, + "max": "1", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization|0.1.0" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzRegistrationDate.json b/packages/fhir-eswatini/spec/StructureDefinition-SzRegistrationDate.json new file mode 100644 index 0000000000..68cd6ec862 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzRegistrationDate.json @@ -0,0 +1,280 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzRegistrationDate", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzRegistrationDate

\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Extension 0..*ExtensionExtention: Patient Registration Date
\".\"\".\"\".\" extension 0..0Extension
\".\"\".\"\".\" url 1..1uri"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzRegistrationDate"
\".\"\".\"\".\" value[x] 0..1dateTimeValue of extension

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzRegistrationDate", + "version": "0.1.0", + "name": "SzRegistrationDate", + "title": "Extention: Patient Registration Date", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Extention for Eswatini Chiefdom", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Patient Registration Date", + "definition": "Extention for Eswatini Chiefdom", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzRegistrationDate", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Patient Registration Date", + "definition": "Extention for Eswatini Chiefdom" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzRegistrationDate" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "type": [ + { + "code": "dateTime" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzTestingLabExtension.json b/packages/fhir-eswatini/spec/StructureDefinition-SzTestingLabExtension.json new file mode 100644 index 0000000000..29217d2421 --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzTestingLabExtension.json @@ -0,0 +1,286 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzTestingLabExtension", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzTestingLabExtension

\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Extension 0..*ExtensionExtention: Eswatini Testing Laboratory
\".\"\".\"\".\" extension 0..0Extension
\".\"\".\"\".\" url 1..1uri"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzTestingLabExtension"
\".\"\".\"\".\" value[x] 0..1Reference(Eswatini Location Profile)Value of extension

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzTestingLabExtension", + "version": "0.1.0", + "name": "SzTestingLabExtension", + "title": "Extention: Eswatini Testing Laboratory", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "Extention for Eswatini Testing Laboratory", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Eswatini Testing Laboratory", + "definition": "Extention for Eswatini Testing Laboratory", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzTestingLabExtension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 0, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation|0.1.0" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element|4.0.1" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extention: Eswatini Testing Laboratory", + "definition": "Extention for Eswatini Testing Laboratory" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzTestingLabExtension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation|0.1.0" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/StructureDefinition-SzVitalSigns.json b/packages/fhir-eswatini/spec/StructureDefinition-SzVitalSigns.json new file mode 100644 index 0000000000..41cce68d2d --- /dev/null +++ b/packages/fhir-eswatini/spec/StructureDefinition-SzVitalSigns.json @@ -0,0 +1,3689 @@ +{ + "resourceType": "StructureDefinition", + "id": "SzVitalSigns", + "text": { + "status": "extensions", + "div": "

Generated Narrative: StructureDefinition SzVitalSigns

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
NameFlagsCard.TypeDescription & Constraints\"doco\"
\".\"\".\" Observation 0..*observation-vitalsignsEswatini Health Information Exchange Vital Signs
\".\"\".\"\".\" id 1..1idLogical id of this artifact
\".\"\".\"\".\" code 1..1CodeableConceptSpecific vital sign being observed
Binding: VitalSigns (required)
\".\"\".\"\".\" subject 1..1Reference(Eswatini Patient Profile)Patient related to the vitals being recorded
\".\"\".\"\".\" encounter 0..1Reference(Eswatini Encounter Profile)Visit related to the vitals being recorded
\".\"\".\"\".\" value[x] 0..1QuantityVital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.
\".\"\".\"\".\"\".\" value 1..1decimalNumerical value (with implicit precision)
\".\"\".\"\".\"\".\" unit S1..1stringUnit representation

\"doco\" Documentation for this format
" + }, + "url": "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzVitalSigns", + "version": "0.1.0", + "name": "EswatiniVitalSigns", + "title": "Eswatini Vital Signs Profile", + "status": "active", + "date": "2026-03-26T10:44:11+00:00", + "publisher": "Ministry of Health Eswatini", + "contact": [ + { + "name": "Ministry of Health Eswatini", + "telecom": [ + { + "system": "url", + "value": "https://hapifhir.eswatinihie.com" + }, + { + "system": "email", + "value": "eswatinihie@moh.gov.sz" + } + ] + } + ], + "description": "This profile is based on the base FHIR Vital Signs Profile and defines additional constraints on the Observation resource to represent\nvital signs observations specifically for Eswatini.", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "workflow", + "uri": "http://hl7.org/fhir/workflow", + "name": "Workflow Pattern" + }, + { + "identity": "sct-concept", + "uri": "http://snomed.info/conceptdomain", + "name": "SNOMED CT Concept Domain Binding" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "sct-attr", + "uri": "http://snomed.org/attributebinding", + "name": "SNOMED CT Attribute Binding" + } + ], + "kind": "resource", + "abstract": false, + "type": "Observation", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns", + "derivation": "constraint", + "snapshot": { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", + "valueString": "4.0.1" + } + ], + "element": [ + { + "id": "Observation", + "path": "Observation", + "short": "Eswatini Health Information Exchange Vital Signs", + "definition": "The FHIR Vitals Signs profile sets minimum expectations for the Observation Resource to record, search and fetch the vital signs associated with a patient.", + "comment": "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc. Other resources are used to provide context for observations such as laboratory reports, etc.", + "alias": [ + "Vital Signs", + "Measurement", + "Results", + "Tests" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "obs-6", + "severity": "error", + "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", + "expression": "dataAbsentReason.empty() or value.empty()", + "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + }, + { + "key": "obs-7", + "severity": "error", + "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present", + "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()", + "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))", + "source": "http://hl7.org/fhir/StructureDefinition/Observation" + }, + { + "key": "vs-2", + "severity": "error", + "human": "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.", + "expression": "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())", + "xpath": "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason", + "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "workflow", + "map": "Event" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity|" + }, + { + "identity": "v2", + "map": "OBX" + }, + { + "identity": "rim", + "map": "Observation[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.id", + "path": "Observation.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 1, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "id" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Observation.meta", + "path": "Observation.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "Observation.implicitRules", + "path": "Observation.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "Observation.language", + "path": "Observation.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1" + } + }, + { + "id": "Observation.text", + "path": "Observation.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "Observation.contained", + "path": "Observation.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.extension", + "path": "Observation.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.modifierExtension", + "path": "Observation.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.identifier", + "path": "Observation.identifier", + "short": "Business Identifier for observation", + "definition": "A unique identifier assigned to this observation.", + "requirements": "Allows observations to be distinguished and referenced.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.identifier" + }, + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "v2", + "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4." + }, + { + "identity": "rim", + "map": "id" + } + ] + }, + { + "id": "Observation.basedOn", + "path": "Observation.basedOn", + "short": "Fulfills plan, proposal or order", + "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.", + "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.", + "alias": [ + "Fulfills" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.basedOn", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DeviceRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1", + "http://hl7.org/fhir/StructureDefinition/NutritionOrder|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.basedOn" + }, + { + "identity": "v2", + "map": "ORC" + }, + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]" + } + ] + }, + { + "id": "Observation.partOf", + "path": "Observation.partOf", + "short": "Part of referenced event", + "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.", + "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.", + "alias": [ + "Container" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.partOf", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationDispense|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Immunization|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.partOf" + }, + { + "identity": "v2", + "map": "Varies by domain" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=FLFS].target" + } + ] + }, + { + "id": "Observation.status", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", + "valueString": "default: final" + } + ], + "path": "Observation.status", + "short": "registered | preliminary | final | amended +", + "definition": "The status of the result value.", + "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", + "requirements": "Need to track the status of individual results. Some results are finalized before the whole report is finalized.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Status" + } + ], + "strength": "required", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.status" + }, + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "sct-concept", + "map": "< 445584004 |Report by finality status|" + }, + { + "identity": "v2", + "map": "OBX-11" + }, + { + "identity": "rim", + "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\"" + } + ] + }, + { + "id": "Observation.category", + "path": "Observation.category", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "coding.code" + }, + { + "type": "value", + "path": "coding.system" + } + ], + "ordered": false, + "rules": "open" + }, + "short": "Classification of type of observation", + "definition": "A code that classifies the general type of observation being made.", + "comment": "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.", + "requirements": "Used for filtering what observations are retrieved and displayed.", + "min": 1, + "max": "*", + "base": { + "path": "Observation.category", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCategory" + } + ], + "strength": "preferred", + "description": "Codes for high level observation categories.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-category|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code" + } + ] + }, + { + "id": "Observation.category:VSCat", + "path": "Observation.category", + "sliceName": "VSCat", + "short": "Classification of type of observation", + "definition": "A code that classifies the general type of observation being made.", + "comment": "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.", + "requirements": "Used for filtering what observations are retrieved and displayed.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.category", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationCategory" + } + ], + "strength": "preferred", + "description": "Codes for high level observation categories.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-category|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code" + } + ] + }, + { + "id": "Observation.category:VSCat.id", + "path": "Observation.category.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.category:VSCat.extension", + "path": "Observation.category.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.category:VSCat.coding", + "path": "Observation.category.coding", + "short": "Code defined by a terminology system", + "definition": "A reference to a code defined by a terminology system.", + "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.", + "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.", + "min": 1, + "max": "*", + "base": { + "path": "CodeableConcept.coding", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Coding" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.1-8, C*E.10-22" + }, + { + "identity": "rim", + "map": "union(., ./translation)" + }, + { + "identity": "orim", + "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" + } + ] + }, + { + "id": "Observation.category:VSCat.coding.id", + "path": "Observation.category.coding.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.category:VSCat.coding.extension", + "path": "Observation.category.coding.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.category:VSCat.coding.system", + "path": "Observation.category.coding.system", + "short": "Identity of the terminology system", + "definition": "The identification of the code system that defines the meaning of the symbol in the code.", + "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.", + "requirements": "Need to be unambiguous about the source of the definition of the symbol.", + "min": 1, + "max": "1", + "base": { + "path": "Coding.system", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "fixedUri": "http://terminology.hl7.org/CodeSystem/observation-category", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.3" + }, + { + "identity": "rim", + "map": "./codeSystem" + }, + { + "identity": "orim", + "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" + } + ] + }, + { + "id": "Observation.category:VSCat.coding.version", + "path": "Observation.category.coding.version", + "short": "Version of the system - if relevant", + "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.", + "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.", + "min": 0, + "max": "1", + "base": { + "path": "Coding.version", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.7" + }, + { + "identity": "rim", + "map": "./codeSystemVersion" + }, + { + "identity": "orim", + "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" + } + ] + }, + { + "id": "Observation.category:VSCat.coding.code", + "path": "Observation.category.coding.code", + "short": "Symbol in syntax defined by the system", + "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).", + "requirements": "Need to refer to a particular code in the system.", + "min": 1, + "max": "1", + "base": { + "path": "Coding.code", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "fixedCode": "vital-signs", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.1" + }, + { + "identity": "rim", + "map": "./code" + }, + { + "identity": "orim", + "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" + } + ] + }, + { + "id": "Observation.category:VSCat.coding.display", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", + "valueBoolean": true + } + ], + "path": "Observation.category.coding.display", + "short": "Representation defined by the system", + "definition": "A representation of the meaning of the code in the system, following the rules of the system.", + "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.", + "min": 0, + "max": "1", + "base": { + "path": "Coding.display", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.2 - but note this is not well followed" + }, + { + "identity": "rim", + "map": "CV.displayName" + }, + { + "identity": "orim", + "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" + } + ] + }, + { + "id": "Observation.category:VSCat.coding.userSelected", + "path": "Observation.category.coding.userSelected", + "short": "If this coding was chosen directly by the user", + "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).", + "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.", + "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.", + "min": 0, + "max": "1", + "base": { + "path": "Coding.userSelected", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "Sometimes implied by being first" + }, + { + "identity": "rim", + "map": "CD.codingRationale" + }, + { + "identity": "orim", + "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]" + } + ] + }, + { + "id": "Observation.category:VSCat.text", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", + "valueBoolean": true + } + ], + "path": "Observation.category.text", + "short": "Plain text representation of the concept", + "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", + "comment": "Very often the text is the same as a displayName of one of the codings.", + "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", + "min": 0, + "max": "1", + "base": { + "path": "CodeableConcept.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "C*E.9. But note many systems use C*E.2 for this" + }, + { + "identity": "rim", + "map": "./originalText[mediaType/code=\"text/plain\"]/data" + }, + { + "identity": "orim", + "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" + } + ] + }, + { + "id": "Observation.code", + "path": "Observation.code", + "short": "Specific vital sign being observed", + "definition": "Coded Responses from C-CDA Vital Sign Results.", + "comment": "*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.", + "requirements": "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).", + "alias": [ + "Name" + ], + "min": 1, + "max": "1", + "base": { + "path": "Observation.code", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" + }, + "mapping": [ + { + "identity": "workflow", + "map": "Event.code" + }, + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "code" + }, + { + "identity": "sct-attr", + "map": "116680003 |Is a|" + } + ] + }, + { + "id": "Observation.subject", + "path": "Observation.subject", + "short": "Patient related to the vitals being recorded", + "definition": "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.", + "comment": "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.", + "requirements": "Observations have no value if you don't know who or what they're about.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.subject", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.subject" + }, + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "PID-3" + }, + { + "identity": "rim", + "map": "participation[typeCode=RTGT]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Observation.focus", + "path": "Observation.focus", + "short": "What the observation is about, when it is not about the subject of record", + "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.", + "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).", + "min": 0, + "max": "*", + "base": { + "path": "Observation.focus", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "participation[typeCode=SBJ]" + }, + { + "identity": "w5", + "map": "FiveWs.subject" + } + ] + }, + { + "id": "Observation.encounter", + "path": "Observation.encounter", + "short": "Visit related to the vitals being recorded", + "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.", + "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).", + "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.", + "alias": [ + "Context" + ], + "min": 0, + "max": "1", + "base": { + "path": "Observation.encounter", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.context" + }, + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "v2", + "map": "PV1" + }, + { + "identity": "rim", + "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.effective[x]", + "path": "Observation.effective[x]", + "short": "Often just a dateTime for Vital Signs", + "definition": "Often just a dateTime for Vital Signs.", + "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.", + "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.", + "alias": [ + "Occurrence" + ], + "min": 1, + "max": "1", + "base": { + "path": "Observation.effective[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + }, + { + "code": "Period" + } + ], + "condition": [ + "vs-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "vs-1", + "severity": "error", + "human": "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day", + "expression": "$this is dateTime implies $this.toString().length() >= 10", + "xpath": "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]", + "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.occurrence[x]" + }, + { + "identity": "w5", + "map": "FiveWs.done[x]" + }, + { + "identity": "v2", + "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)" + }, + { + "identity": "rim", + "map": "effectiveTime" + } + ] + }, + { + "id": "Observation.issued", + "path": "Observation.issued", + "short": "Date/Time this version was made available", + "definition": "The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.", + "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.issued", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "instant" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.recorded" + }, + { + "identity": "v2", + "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)" + }, + { + "identity": "rim", + "map": "participation[typeCode=AUT].time" + } + ] + }, + { + "id": "Observation.performer", + "path": "Observation.performer", + "short": "Who is responsible for the observation", + "definition": "Who was responsible for asserting the observed value as \"true\".", + "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.performer", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", + "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1", + "http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", + "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "workflow", + "map": "Event.performer.actor" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'" + }, + { + "identity": "rim", + "map": "participation[typeCode=PRF]" + } + ] + }, + { + "id": "Observation.value[x]", + "path": "Observation.value[x]", + "short": "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.", + "definition": "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.", + "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.", + "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity" + } + ], + "condition": [ + "obs-7", + "vs-2" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.value[x].id", + "path": "Observation.value[x].id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.value[x].extension", + "path": "Observation.value[x].extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.value[x].value", + "path": "Observation.value[x].value", + "short": "Numerical value (with implicit precision)", + "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.", + "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).", + "requirements": "Precision is handled implicitly in almost all cases of measurement.", + "min": 1, + "max": "1", + "base": { + "path": "Quantity.value", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "decimal" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "SN.2 / CQ - N/A" + }, + { + "identity": "rim", + "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value" + } + ] + }, + { + "id": "Observation.value[x].comparator", + "path": "Observation.value[x].comparator", + "short": "< | <= | >= | > - how to understand the value", + "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.", + "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.", + "min": 0, + "max": "1", + "base": { + "path": "Quantity.comparator", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "QuantityComparator" + } + ], + "strength": "required", + "description": "How the Quantity should be understood and represented.", + "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "SN.1 / CQ.1" + }, + { + "identity": "rim", + "map": "IVL properties" + } + ] + }, + { + "id": "Observation.value[x].unit", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", + "valueBoolean": true + } + ], + "path": "Observation.value[x].unit", + "short": "Unit representation", + "definition": "A human-readable form of the unit.", + "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.", + "min": 1, + "max": "1", + "base": { + "path": "Quantity.unit", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "(see OBX.6 etc.) / CQ.2" + }, + { + "identity": "rim", + "map": "PQ.unit" + } + ] + }, + { + "id": "Observation.value[x].system", + "path": "Observation.value[x].system", + "short": "System that defines coded unit form", + "definition": "The identification of the system that provides the coded form of the unit.", + "requirements": "Need to know the system that defines the coded form of the unit.", + "min": 0, + "max": "1", + "base": { + "path": "Quantity.system", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "condition": [ + "qty-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "(see OBX.6 etc.) / CQ.2" + }, + { + "identity": "rim", + "map": "CO.codeSystem, PQ.translation.codeSystem" + } + ] + }, + { + "id": "Observation.value[x].code", + "path": "Observation.value[x].code", + "short": "Coded form of the unit", + "definition": "A computer processable form of the unit in some unit representation system.", + "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.", + "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.", + "min": 0, + "max": "1", + "base": { + "path": "Quantity.code", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "(see OBX.6 etc.) / CQ.2" + }, + { + "identity": "rim", + "map": "PQ.code, MO.currency, PQ.translation.code" + } + ] + }, + { + "id": "Observation.dataAbsentReason", + "path": "Observation.dataAbsentReason", + "short": "Why the result is missing", + "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.", + "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.", + "requirements": "For many results it is necessary to handle exceptional values in measurements.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.dataAbsentReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "obs-6", + "vs-2" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationValueAbsentReason" + } + ], + "strength": "extensible", + "description": "Codes specifying why the result (`Observation.value[x]`) is missing.", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": "value.nullFlavor" + } + ] + }, + { + "id": "Observation.interpretation", + "path": "Observation.interpretation", + "short": "High, low, normal, etc.", + "definition": "A categorical assessment of an observation value. For example, high, low, normal.", + "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.", + "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.", + "alias": [ + "Abnormal Flag" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.interpretation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationInterpretation" + } + ], + "strength": "extensible", + "description": "Codes identifying interpretations of observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values|" + }, + { + "identity": "v2", + "map": "OBX-8" + }, + { + "identity": "rim", + "map": "interpretationCode" + }, + { + "identity": "sct-attr", + "map": "363713009 |Has interpretation|" + } + ] + }, + { + "id": "Observation.note", + "path": "Observation.note", + "short": "Comments about the observation", + "definition": "Comments about the observation or the results.", + "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.", + "requirements": "Need to be able to provide free text additional information.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)" + }, + { + "identity": "rim", + "map": "subjectOf.observationEvent[code=\"annotation\"].value" + } + ] + }, + { + "id": "Observation.bodySite", + "path": "Observation.bodySite", + "short": "Observed body part", + "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).", + "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.bodySite", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "BodySite" + } + ], + "strength": "example", + "description": "Codes describing anatomical locations. May include laterality.", + "valueSet": "http://hl7.org/fhir/ValueSet/body-site|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 123037004 |Body structure|" + }, + { + "identity": "v2", + "map": "OBX-20" + }, + { + "identity": "rim", + "map": "targetSiteCode" + }, + { + "identity": "sct-attr", + "map": "718497002 |Inherent location|" + } + ] + }, + { + "id": "Observation.method", + "path": "Observation.method", + "short": "How it was done", + "definition": "Indicates the mechanism used to perform the observation.", + "comment": "Only used if not implicit in code for Observation.code.", + "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.method", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationMethod" + } + ], + "strength": "example", + "description": "Methods for simple observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "OBX-17" + }, + { + "identity": "rim", + "map": "methodCode" + } + ] + }, + { + "id": "Observation.specimen", + "path": "Observation.specimen", + "short": "Specimen used for this observation", + "definition": "The specimen that was used when this observation was made.", + "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.specimen", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 123038009 |Specimen|" + }, + { + "identity": "v2", + "map": "SPM segment" + }, + { + "identity": "rim", + "map": "participation[typeCode=SPC].specimen" + }, + { + "identity": "sct-attr", + "map": "704319004 |Inherent in|" + } + ] + }, + { + "id": "Observation.device", + "path": "Observation.device", + "short": "(Measurement) Device", + "definition": "The device used to generate the observation data.", + "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.device", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Device|4.0.1", + "http://hl7.org/fhir/StructureDefinition/DeviceMetric|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 49062001 |Device|" + }, + { + "identity": "v2", + "map": "OBX-17 / PRT -10" + }, + { + "identity": "rim", + "map": "participation[typeCode=DEV]" + }, + { + "identity": "sct-attr", + "map": "424226004 |Using device|" + } + ] + }, + { + "id": "Observation.referenceRange", + "path": "Observation.referenceRange", + "short": "Provides guide for interpretation", + "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.", + "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.", + "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.referenceRange", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "obs-3", + "severity": "error", + "human": "Must have at least a low or a high or text", + "expression": "low.exists() or high.exists() or text.exists()", + "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))", + "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX.7" + }, + { + "identity": "rim", + "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" + } + ] + }, + { + "id": "Observation.referenceRange.id", + "path": "Observation.referenceRange.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.referenceRange.extension", + "path": "Observation.referenceRange.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.referenceRange.modifierExtension", + "path": "Observation.referenceRange.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.referenceRange.low", + "path": "Observation.referenceRange.low", + "short": "Low Range, if relevant", + "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.low", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "condition": [ + "obs-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:IVL_PQ.low" + } + ] + }, + { + "id": "Observation.referenceRange.high", + "path": "Observation.referenceRange.high", + "short": "High Range, if relevant", + "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.high", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1" + ] + } + ], + "condition": [ + "obs-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:IVL_PQ.high" + } + ] + }, + { + "id": "Observation.referenceRange.type", + "path": "Observation.referenceRange.type", + "short": "Reference range qualifier", + "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.", + "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.", + "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationRangeMeaning" + } + ], + "strength": "preferred", + "description": "Code for the meaning of a reference range.", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|" + }, + { + "identity": "v2", + "map": "OBX-10" + }, + { + "identity": "rim", + "map": "interpretationCode" + } + ] + }, + { + "id": "Observation.referenceRange.appliesTo", + "path": "Observation.referenceRange.appliesTo", + "short": "Reference range population", + "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.", + "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.", + "requirements": "Need to be able to identify the target population for proper interpretation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.referenceRange.appliesTo", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationRangeType" + } + ], + "strength": "example", + "description": "Codes identifying the population the reference range applies to.", + "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|" + }, + { + "identity": "v2", + "map": "OBX-10" + }, + { + "identity": "rim", + "map": "interpretationCode" + } + ] + }, + { + "id": "Observation.referenceRange.age", + "path": "Observation.referenceRange.age", + "short": "Applicable age range, if relevant", + "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.", + "requirements": "Some analytes vary greatly over age.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.age", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Range" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value" + } + ] + }, + { + "id": "Observation.referenceRange.text", + "path": "Observation.referenceRange.text", + "short": "Text based reference range in an observation", + "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".", + "min": 0, + "max": "1", + "base": { + "path": "Observation.referenceRange.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX-7" + }, + { + "identity": "rim", + "map": "value:ST" + } + ] + }, + { + "id": "Observation.hasMember", + "path": "Observation.hasMember", + "short": "Used when reporting vital signs panel components", + "definition": "Used when reporting vital signs panel components.", + "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html) into a final score and represent the score as an Observation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.hasMember", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1", + "http://hl7.org/fhir/StructureDefinition/vitalsigns|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "Relationships established by OBX-4 usage" + }, + { + "identity": "rim", + "map": "outBoundRelationship" + } + ] + }, + { + "id": "Observation.derivedFrom", + "path": "Observation.derivedFrom", + "short": "Related measurements the observation is made from", + "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.", + "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.derivedFrom", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1", + "http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1", + "http://hl7.org/fhir/StructureDefinition/Media|4.0.1", + "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1", + "http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1", + "http://hl7.org/fhir/StructureDefinition/vitalsigns|4.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "Relationships established by OBX-4 usage" + }, + { + "identity": "rim", + "map": ".targetObservation" + } + ] + }, + { + "id": "Observation.component", + "path": "Observation.component", + "short": "Used when reporting systolic and diastolic blood pressure.", + "definition": "Used when reporting systolic and diastolic blood pressure.", + "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.", + "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.component", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "vs-3", + "severity": "error", + "human": "If there is no a value a data absent reason must be present", + "expression": "value.exists() or dataAbsentReason.exists()", + "xpath": "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason", + "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "v2", + "map": "containment by OBX-4?" + }, + { + "identity": "rim", + "map": "outBoundRelationship[typeCode=COMP]" + } + ] + }, + { + "id": "Observation.component.id", + "path": "Observation.component.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component.extension", + "path": "Observation.component.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Observation.component.modifierExtension", + "path": "Observation.component.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Observation.component.code", + "path": "Observation.component.code", + "short": "Type of component observation (code / type)", + "definition": "Describes what was observed. Sometimes this is called the observation \"code\".", + "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.", + "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.", + "min": 1, + "max": "1", + "base": { + "path": "Observation.component.code", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "VitalSigns" + } + ], + "strength": "extensible", + "description": "This identifies the vital sign result type.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "sct-concept", + "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|" + }, + { + "identity": "v2", + "map": "OBX-3" + }, + { + "identity": "rim", + "map": "code" + } + ] + }, + { + "id": "Observation.component.value[x]", + "path": "Observation.component.value[x]", + "short": "Vital Sign Value recorded with UCUM", + "definition": "Vital Sign Value recorded with UCUM.", + "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.", + "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity" + }, + { + "code": "CodeableConcept" + }, + { + "code": "string" + }, + { + "code": "boolean" + }, + { + "code": "integer" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "SampledData" + }, + { + "code": "time" + }, + { + "code": "dateTime" + }, + { + "code": "Period" + } + ], + "condition": [ + "vs-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "VitalSignsUnits" + } + ], + "strength": "extensible", + "description": "Common UCUM units for recording Vital Signs.", + "valueSet": "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "363714003 |Interprets| < 441742003 |Evaluation finding|" + }, + { + "identity": "v2", + "map": "OBX.2, OBX.5, OBX.6" + }, + { + "identity": "rim", + "map": "value" + }, + { + "identity": "sct-attr", + "map": "363714003 |Interprets|" + } + ] + }, + { + "id": "Observation.component.dataAbsentReason", + "path": "Observation.component.dataAbsentReason", + "short": "Why the component result is missing", + "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.", + "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.", + "requirements": "For many results it is necessary to handle exceptional values in measurements.", + "min": 0, + "max": "1", + "base": { + "path": "Observation.component.dataAbsentReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "obs-6", + "vs-3" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "mustSupport": true, + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationValueAbsentReason" + } + ], + "strength": "extensible", + "description": "Codes specifying why the result (`Observation.value[x]`) is missing.", + "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1" + }, + "mapping": [ + { + "identity": "v2", + "map": "N/A" + }, + { + "identity": "rim", + "map": "value.nullFlavor" + } + ] + }, + { + "id": "Observation.component.interpretation", + "path": "Observation.component.interpretation", + "short": "High, low, normal, etc.", + "definition": "A categorical assessment of an observation value. For example, high, low, normal.", + "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.", + "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.", + "alias": [ + "Abnormal Flag" + ], + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.interpretation", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ObservationInterpretation" + } + ], + "strength": "extensible", + "description": "Codes identifying interpretations of observations.", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1" + }, + "mapping": [ + { + "identity": "sct-concept", + "map": "< 260245000 |Findings values|" + }, + { + "identity": "v2", + "map": "OBX-8" + }, + { + "identity": "rim", + "map": "interpretationCode" + }, + { + "identity": "sct-attr", + "map": "363713009 |Has interpretation|" + } + ] + }, + { + "id": "Observation.component.referenceRange", + "path": "Observation.component.referenceRange", + "short": "Provides guide for interpretation of component result", + "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.", + "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.", + "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.", + "min": 0, + "max": "*", + "base": { + "path": "Observation.component.referenceRange", + "min": 0, + "max": "*" + }, + "contentReference": "http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange", + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "v2", + "map": "OBX.7" + }, + { + "identity": "rim", + "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Observation", + "path": "Observation", + "short": "Eswatini Health Information Exchange Vital Signs" + }, + { + "id": "Observation.id", + "path": "Observation.id", + "min": 1 + }, + { + "id": "Observation.code", + "path": "Observation.code", + "short": "Specific vital sign being observed", + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" + } + }, + { + "id": "Observation.subject", + "path": "Observation.subject", + "short": "Patient related to the vitals being recorded", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient" + ] + } + ] + }, + { + "id": "Observation.encounter", + "path": "Observation.encounter", + "short": "Visit related to the vitals being recorded", + "type": [ + { + "code": "Reference", + "targetProfile": [ + "https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter" + ] + } + ] + }, + { + "id": "Observation.value[x]", + "path": "Observation.value[x]", + "type": [ + { + "code": "Quantity" + } + ] + }, + { + "id": "Observation.value[x].value", + "path": "Observation.value[x].value", + "min": 1 + }, + { + "id": "Observation.value[x].unit", + "path": "Observation.value[x].unit", + "min": 1, + "mustSupport": true + } + ] + } +} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/spec.json b/packages/fhir-eswatini/spec/spec.json new file mode 100644 index 0000000000..6dc1edf168 --- /dev/null +++ b/packages/fhir-eswatini/spec/spec.json @@ -0,0 +1 @@ +{"SzCauseOfDeath":{"resourceType":"StructureDefinition","id":"SzCauseOfDeath","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzCauseOfDeath","version":"0.1.0","name":"SzCauseOfDeath","title":"Eswatini Cause of Death Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Eswatini Cause of Death Profile","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"sct-concept","uri":"http://snomed.info/conceptdomain","name":"SNOMED CT Concept Domain Binding"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"sct-attr","uri":"http://snomed.org/attributebinding","name":"SNOMED CT Attribute Binding"}],"kind":"resource","abstract":false,"type":"Observation","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Observation","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Observation","path":"Observation","short":"Measurements and simple assertions","definition":"Measurements and simple assertions made about a patient, device or other subject.","comment":"Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc. Other resources are used to provide context for observations such as laboratory reports, etc.","alias":["Vital Signs","Measurement","Results","Tests"],"min":0,"max":"*","base":{"path":"Observation","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"obs-6","severity":"error","human":"dataAbsentReason SHALL only be present if Observation.value[x] is not present","expression":"dataAbsentReason.empty() or value.empty()","xpath":"not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))","source":"http://hl7.org/fhir/StructureDefinition/Observation"},{"key":"obs-7","severity":"error","human":"If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present","expression":"value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()","xpath":"not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))","source":"http://hl7.org/fhir/StructureDefinition/Observation"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Event"},{"identity":"sct-concept","map":"< 363787002 |Observable entity|"},{"identity":"v2","map":"OBX"},{"identity":"rim","map":"Observation[classCode=OBS, moodCode=EVN]"}]},{"id":"Observation.id","path":"Observation.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Observation.meta","path":"Observation.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"Observation.implicitRules","path":"Observation.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Observation.language","path":"Observation.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Observation.text","path":"Observation.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Observation.contained","path":"Observation.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.extension","path":"Observation.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.modifierExtension","path":"Observation.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.identifier","path":"Observation.identifier","short":"Business Identifier for observation","definition":"A unique identifier assigned to this observation.","requirements":"Allows observations to be distinguished and referenced.","min":0,"max":"*","base":{"path":"Observation.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."},{"identity":"rim","map":"id"}]},{"id":"Observation.basedOn","path":"Observation.basedOn","short":"Fulfills plan, proposal or order","definition":"A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.","requirements":"Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.","alias":["Fulfills"],"min":0,"max":"*","base":{"path":"Observation.basedOn","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1","http://hl7.org/fhir/StructureDefinition/DeviceRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/NutritionOrder|4.0.1","http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.basedOn"},{"identity":"v2","map":"ORC"},{"identity":"rim","map":".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"}]},{"id":"Observation.partOf","path":"Observation.partOf","short":"Part of referenced event","definition":"A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.","comment":"To link an Observation to an Encounter use `encounter`. See the [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below for guidance on referencing another Observation.","alias":["Container"],"min":0,"max":"*","base":{"path":"Observation.partOf","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationDispense|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1","http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1","http://hl7.org/fhir/StructureDefinition/Immunization|4.0.1","http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.partOf"},{"identity":"v2","map":"Varies by domain"},{"identity":"rim","map":".outboundRelationship[typeCode=FLFS].target"}]},{"id":"Observation.status","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint","valueString":"default: final"}],"path":"Observation.status","short":"registered | preliminary | final | amended +","definition":"The status of the result value.","comment":"This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.","requirements":"Need to track the status of individual results. Some results are finalized before the whole report is finalized.","min":1,"max":"1","base":{"path":"Observation.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationStatus"}],"strength":"required","description":"Codes providing the status of an observation.","valueSet":"http://hl7.org/fhir/ValueSet/observation-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.status"},{"identity":"w5","map":"FiveWs.status"},{"identity":"sct-concept","map":"< 445584004 |Report by finality status|"},{"identity":"v2","map":"OBX-11"},{"identity":"rim","map":"status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""}]},{"id":"Observation.category","path":"Observation.category","short":"Classification of type of observation","definition":"A code that classifies the general type of observation being made.","comment":"In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.","requirements":"Used for filtering what observations are retrieved and displayed.","min":0,"max":"*","base":{"path":"Observation.category","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCategory"}],"strength":"preferred","description":"Codes for high level observation categories.","valueSet":"http://hl7.org/fhir/ValueSet/observation-category|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"}]},{"id":"Observation.code","path":"Observation.code","short":"Cause of death","definition":"Describes what was observed. Sometimes this is called the observation \"name\".","comment":"*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.","requirements":"Knowing what kind of observation is being made is essential to understanding the observation.","alias":["Name"],"min":1,"max":"1","base":{"path":"Observation.code","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"patternCodeableConcept":{"coding":[{"system":"http://loinc.org","code":"79378-6"}]},"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCode"}],"strength":"example","description":"Codes identifying names of simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-codes|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.code"},{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"sct-concept","map":"< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"code"},{"identity":"sct-attr","map":"116680003 |Is a|"}]},{"id":"Observation.subject","path":"Observation.subject","label":"The decedent","short":"The decedent","definition":"The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.","comment":"One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.","requirements":"Observations have no value if you don't know who or what they're about.","min":1,"max":"1","base":{"path":"Observation.subject","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.subject"},{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"PID-3"},{"identity":"rim","map":"participation[typeCode=RTGT]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Observation.focus","path":"Observation.focus","short":"What the observation is about, when it is not about the subject of record","definition":"The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.","comment":"Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/R4/extension-observation-focuscode.html).","min":0,"max":"*","base":{"path":"Observation.focus","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"participation[typeCode=SBJ]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Observation.encounter","path":"Observation.encounter","short":"Healthcare event during which this observation is made","definition":"The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.","comment":"This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).","requirements":"For some observations it may be important to know the link between an observation and a particular encounter.","alias":["Context"],"min":0,"max":"1","base":{"path":"Observation.encounter","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.context"},{"identity":"w5","map":"FiveWs.context"},{"identity":"v2","map":"PV1"},{"identity":"rim","map":"inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"}]},{"id":"Observation.effective[x]","path":"Observation.effective[x]","short":"Clinically relevant time/time-period for observation","definition":"The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.","comment":"At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/R4/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.","requirements":"Knowing when an observation was deemed true is important to its relevance as well as determining trends.","alias":["Occurrence"],"min":0,"max":"1","base":{"path":"Observation.effective[x]","min":0,"max":"1"},"type":[{"code":"dateTime"},{"code":"Period"},{"code":"Timing"},{"code":"instant"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.occurrence[x]"},{"identity":"w5","map":"FiveWs.done[x]"},{"identity":"v2","map":"OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"},{"identity":"rim","map":"effectiveTime"}]},{"id":"Observation.issued","path":"Observation.issued","short":"Date/Time this version was made available","definition":"The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.","comment":"For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/R4/resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.","min":0,"max":"1","base":{"path":"Observation.issued","min":0,"max":"1"},"type":[{"code":"instant"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.recorded"},{"identity":"v2","map":"OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"},{"identity":"rim","map":"participation[typeCode=AUT].time"}]},{"id":"Observation.performer","path":"Observation.performer","label":"Cause of death certifier (coroner or medical examiner)","short":"Cause of death certifier (coroner or medical examiner)","definition":"Who was responsible for asserting the observed value as \"true\".","requirements":"May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.","min":0,"max":"*","base":{"path":"Observation.performer","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.performer.actor"},{"identity":"w5","map":"FiveWs.actor"},{"identity":"v2","map":"OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"},{"identity":"rim","map":"participation[typeCode=PRF]"}]},{"id":"Observation.value[x]","path":"Observation.value[x]","short":"Actual result","definition":"The information determined as a result of making the observation, if the information has a simple value.","comment":"An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.","min":1,"max":"1","base":{"path":"Observation.value[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["obs-7"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"< 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.value[x].id","path":"Observation.value[x].id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.value[x].extension","path":"Observation.value[x].extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.value[x].coding","path":"Observation.value[x].coding","short":"Code defined by a terminology system","definition":"A reference to a code defined by a terminology system.","comment":"Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.","requirements":"Allows for alternative encodings within a code system, and translations to other code systems.","min":0,"max":"*","base":{"path":"CodeableConcept.coding","min":0,"max":"*"},"type":[{"code":"Coding"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.1-8, C*E.10-22"},{"identity":"rim","map":"union(., ./translation)"},{"identity":"orim","map":"fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"}]},{"id":"Observation.value[x].text","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable","valueBoolean":true}],"path":"Observation.value[x].text","short":"Cause of death Intermediate | Intermediate I | Intermediat II | Underlying","definition":"A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.","comment":"Very often the text is the same as a displayName of one of the codings.","requirements":"The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.","min":1,"max":"1","base":{"path":"CodeableConcept.text","min":0,"max":"1"},"type":[{"code":"string"}],"maxLength":255,"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.9. But note many systems use C*E.2 for this"},{"identity":"rim","map":"./originalText[mediaType/code=\"text/plain\"]/data"},{"identity":"orim","map":"fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"}]},{"id":"Observation.dataAbsentReason","path":"Observation.dataAbsentReason","short":"Why the result is missing","definition":"Provides a reason why the expected value in the element Observation.value[x] is missing.","comment":"Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.","requirements":"For many results it is necessary to handle exceptional values in measurements.","min":0,"max":"1","base":{"path":"Observation.dataAbsentReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["obs-6"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationValueAbsentReason"}],"strength":"extensible","description":"Codes specifying why the result (`Observation.value[x]`) is missing.","valueSet":"http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1"},"mapping":[{"identity":"v2","map":"N/A"},{"identity":"rim","map":"value.nullFlavor"}]},{"id":"Observation.interpretation","path":"Observation.interpretation","short":"High, low, normal, etc.","definition":"A categorical assessment of an observation value. For example, high, low, normal.","comment":"Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.","requirements":"For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.","alias":["Abnormal Flag"],"min":0,"max":"*","base":{"path":"Observation.interpretation","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationInterpretation"}],"strength":"extensible","description":"Codes identifying interpretations of observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values|"},{"identity":"v2","map":"OBX-8"},{"identity":"rim","map":"interpretationCode"},{"identity":"sct-attr","map":"363713009 |Has interpretation|"}]},{"id":"Observation.note","path":"Observation.note","short":"Comments about the observation","definition":"Comments about the observation or the results.","comment":"May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.","requirements":"Need to be able to provide free text additional information.","min":0,"max":"*","base":{"path":"Observation.note","min":0,"max":"*"},"type":[{"code":"Annotation"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"},{"identity":"rim","map":"subjectOf.observationEvent[code=\"annotation\"].value"}]},{"id":"Observation.bodySite","path":"Observation.bodySite","short":"Observed body part","definition":"Indicates the site on the subject's body where the observation was made (i.e. the target site).","comment":"Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/R4/extension-bodysite.html).","min":0,"max":"1","base":{"path":"Observation.bodySite","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"BodySite"}],"strength":"example","description":"Codes describing anatomical locations. May include laterality.","valueSet":"http://hl7.org/fhir/ValueSet/body-site|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 123037004 |Body structure|"},{"identity":"v2","map":"OBX-20"},{"identity":"rim","map":"targetSiteCode"},{"identity":"sct-attr","map":"718497002 |Inherent location|"}]},{"id":"Observation.method","path":"Observation.method","short":"How it was done","definition":"Indicates the mechanism used to perform the observation.","comment":"Only used if not implicit in code for Observation.code.","requirements":"In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.","min":0,"max":"1","base":{"path":"Observation.method","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationMethod"}],"strength":"example","description":"Methods for simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-methods|4.0.1"},"mapping":[{"identity":"v2","map":"OBX-17"},{"identity":"rim","map":"methodCode"}]},{"id":"Observation.specimen","path":"Observation.specimen","short":"Specimen used for this observation","definition":"The specimen that was used when this observation was made.","comment":"Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).","min":0,"max":"1","base":{"path":"Observation.specimen","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"sct-concept","map":"< 123038009 |Specimen|"},{"identity":"v2","map":"SPM segment"},{"identity":"rim","map":"participation[typeCode=SPC].specimen"},{"identity":"sct-attr","map":"704319004 |Inherent in|"}]},{"id":"Observation.device","path":"Observation.device","short":"(Measurement) Device","definition":"The device used to generate the observation data.","comment":"Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.","min":0,"max":"1","base":{"path":"Observation.device","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Device|4.0.1","http://hl7.org/fhir/StructureDefinition/DeviceMetric|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"sct-concept","map":"< 49062001 |Device|"},{"identity":"v2","map":"OBX-17 / PRT -10"},{"identity":"rim","map":"participation[typeCode=DEV]"},{"identity":"sct-attr","map":"424226004 |Using device|"}]},{"id":"Observation.referenceRange","path":"Observation.referenceRange","short":"Provides guide for interpretation","definition":"Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.","comment":"Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.","requirements":"Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.","min":0,"max":"*","base":{"path":"Observation.referenceRange","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"obs-3","severity":"error","human":"Must have at least a low or a high or text","expression":"low.exists() or high.exists() or text.exists()","xpath":"(exists(f:low) or exists(f:high)or exists(f:text))","source":"http://hl7.org/fhir/StructureDefinition/Observation"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX.7"},{"identity":"rim","map":"outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"}]},{"id":"Observation.referenceRange.id","path":"Observation.referenceRange.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.referenceRange.extension","path":"Observation.referenceRange.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.referenceRange.modifierExtension","path":"Observation.referenceRange.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.referenceRange.low","path":"Observation.referenceRange.low","short":"Low Range, if relevant","definition":"The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).","min":0,"max":"1","base":{"path":"Observation.referenceRange.low","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"condition":["obs-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:IVL_PQ.low"}]},{"id":"Observation.referenceRange.high","path":"Observation.referenceRange.high","short":"High Range, if relevant","definition":"The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).","min":0,"max":"1","base":{"path":"Observation.referenceRange.high","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"condition":["obs-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:IVL_PQ.high"}]},{"id":"Observation.referenceRange.type","path":"Observation.referenceRange.type","short":"Reference range qualifier","definition":"Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.","comment":"This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.","requirements":"Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.","min":0,"max":"1","base":{"path":"Observation.referenceRange.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationRangeMeaning"}],"strength":"preferred","description":"Code for the meaning of a reference range.","valueSet":"http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"},{"identity":"v2","map":"OBX-10"},{"identity":"rim","map":"interpretationCode"}]},{"id":"Observation.referenceRange.appliesTo","path":"Observation.referenceRange.appliesTo","short":"Reference range population","definition":"Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.","comment":"This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.","requirements":"Need to be able to identify the target population for proper interpretation.","min":0,"max":"*","base":{"path":"Observation.referenceRange.appliesTo","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationRangeType"}],"strength":"example","description":"Codes identifying the population the reference range applies to.","valueSet":"http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"},{"identity":"v2","map":"OBX-10"},{"identity":"rim","map":"interpretationCode"}]},{"id":"Observation.referenceRange.age","path":"Observation.referenceRange.age","short":"Applicable age range, if relevant","definition":"The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.","requirements":"Some analytes vary greatly over age.","min":0,"max":"1","base":{"path":"Observation.referenceRange.age","min":0,"max":"1"},"type":[{"code":"Range"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"}]},{"id":"Observation.referenceRange.text","path":"Observation.referenceRange.text","short":"Text based reference range in an observation","definition":"Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".","min":0,"max":"1","base":{"path":"Observation.referenceRange.text","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:ST"}]},{"id":"Observation.hasMember","path":"Observation.hasMember","short":"Related resource that belongs to the Observation group","definition":"This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.","comment":"When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/R4/questionnaireresponse.html) into a final score and represent the score as an Observation.","min":0,"max":"*","base":{"path":"Observation.hasMember","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1","http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"Relationships established by OBX-4 usage"},{"identity":"rim","map":"outBoundRelationship"}]},{"id":"Observation.derivedFrom","path":"Observation.derivedFrom","short":"Related measurements the observation is made from","definition":"The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.","comment":"All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below.","min":0,"max":"*","base":{"path":"Observation.derivedFrom","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1","http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1","http://hl7.org/fhir/StructureDefinition/Media|4.0.1","http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1","http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"Relationships established by OBX-4 usage"},{"identity":"rim","map":".targetObservation"}]},{"id":"Observation.component","path":"Observation.component","slicing":{"discriminator":[{"type":"value","path":"code"}],"rules":"open"},"short":"Component results","definition":"Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.","comment":"For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.","min":2,"max":"*","base":{"path":"Observation.component","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"containment by OBX-4?"},{"identity":"rim","map":"outBoundRelationship[typeCode=COMP]"}]},{"id":"Observation.component.id","path":"Observation.component.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component.extension","path":"Observation.component.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component.modifierExtension","path":"Observation.component.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.component.code","path":"Observation.component.code","short":"Type of component observation (code / type)","definition":"Describes what was observed. Sometimes this is called the observation \"code\".","comment":"*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.","requirements":"Knowing what kind of observation is being made is essential to understanding the observation.","min":1,"max":"1","base":{"path":"Observation.component.code","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCode"}],"strength":"example","description":"Codes identifying names of simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-codes|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"sct-concept","map":"< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"code"}]},{"id":"Observation.component.value[x]","path":"Observation.component.value[x]","short":"Actual component result","definition":"The information determined as a result of making the observation, if the information has a simple value.","comment":"Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.","min":0,"max":"1","base":{"path":"Observation.component.value[x]","min":0,"max":"1"},"type":[{"code":"Quantity"},{"code":"CodeableConcept"},{"code":"string"},{"code":"boolean"},{"code":"integer"},{"code":"Range"},{"code":"Ratio"},{"code":"SampledData"},{"code":"time"},{"code":"dateTime"},{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"363714003 |Interprets| < 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.component.dataAbsentReason","path":"Observation.component.dataAbsentReason","short":"Why the component result is missing","definition":"Provides a reason why the expected value in the element Observation.component.value[x] is missing.","comment":"\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.","requirements":"For many results it is necessary to handle exceptional values in measurements.","min":0,"max":"1","base":{"path":"Observation.component.dataAbsentReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["obs-6"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationValueAbsentReason"}],"strength":"extensible","description":"Codes specifying why the result (`Observation.value[x]`) is missing.","valueSet":"http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1"},"mapping":[{"identity":"v2","map":"N/A"},{"identity":"rim","map":"value.nullFlavor"}]},{"id":"Observation.component.interpretation","path":"Observation.component.interpretation","short":"High, low, normal, etc.","definition":"A categorical assessment of an observation value. For example, high, low, normal.","comment":"Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.","requirements":"For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.","alias":["Abnormal Flag"],"min":0,"max":"*","base":{"path":"Observation.component.interpretation","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationInterpretation"}],"strength":"extensible","description":"Codes identifying interpretations of observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values|"},{"identity":"v2","map":"OBX-8"},{"identity":"rim","map":"interpretationCode"},{"identity":"sct-attr","map":"363713009 |Has interpretation|"}]},{"id":"Observation.component.referenceRange","path":"Observation.component.referenceRange","short":"Provides guide for interpretation of component result","definition":"Guidance on how to interpret the value by comparison to a normal or recommended range.","comment":"Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.","requirements":"Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.","min":0,"max":"*","base":{"path":"Observation.component.referenceRange","min":0,"max":"*"},"contentReference":"http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX.7"},{"identity":"rim","map":"outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"}]},{"id":"Observation.component:sequenceOfConditions","path":"Observation.component","sliceName":"sequenceOfConditions","short":"Sequence of conditions","definition":"Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.","comment":"For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.","min":1,"max":"1","base":{"path":"Observation.component","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"containment by OBX-4?"},{"identity":"rim","map":"outBoundRelationship[typeCode=COMP]"}]},{"id":"Observation.component:sequenceOfConditions.id","path":"Observation.component.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component:sequenceOfConditions.extension","path":"Observation.component.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component:sequenceOfConditions.modifierExtension","path":"Observation.component.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.component:sequenceOfConditions.code","path":"Observation.component.code","short":"Type of component observation (code / type)","definition":"Describes what was observed. Sometimes this is called the observation \"code\".","comment":"*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.","requirements":"Knowing what kind of observation is being made is essential to understanding the observation.","min":1,"max":"1","base":{"path":"Observation.component.code","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCode"}],"strength":"example","description":"Codes identifying names of simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-codes|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"sct-concept","map":"< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"code"}]},{"id":"Observation.component:sequenceOfConditions.value[x]","path":"Observation.component.value[x]","short":"Sequence of conditions e.g Intermediate | Intermediate I | Intermediat II | Underlying","definition":"The information determined as a result of making the observation, if the information has a simple value.","comment":"Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.","min":1,"max":"1","base":{"path":"Observation.component.value[x]","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"363714003 |Interprets| < 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.component:sequenceOfConditions.dataAbsentReason","path":"Observation.component.dataAbsentReason","short":"Why the component result is missing","definition":"Provides a reason why the expected value in the element Observation.component.value[x] is missing.","comment":"\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.","requirements":"For many results it is necessary to handle exceptional values in measurements.","min":0,"max":"1","base":{"path":"Observation.component.dataAbsentReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["obs-6"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationValueAbsentReason"}],"strength":"extensible","description":"Codes specifying why the result (`Observation.value[x]`) is missing.","valueSet":"http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1"},"mapping":[{"identity":"v2","map":"N/A"},{"identity":"rim","map":"value.nullFlavor"}]},{"id":"Observation.component:sequenceOfConditions.interpretation","path":"Observation.component.interpretation","short":"High, low, normal, etc.","definition":"A categorical assessment of an observation value. For example, high, low, normal.","comment":"Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.","requirements":"For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.","alias":["Abnormal Flag"],"min":0,"max":"*","base":{"path":"Observation.component.interpretation","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationInterpretation"}],"strength":"extensible","description":"Codes identifying interpretations of observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values|"},{"identity":"v2","map":"OBX-8"},{"identity":"rim","map":"interpretationCode"},{"identity":"sct-attr","map":"363713009 |Has interpretation|"}]},{"id":"Observation.component:sequenceOfConditions.referenceRange","path":"Observation.component.referenceRange","short":"Provides guide for interpretation of component result","definition":"Guidance on how to interpret the value by comparison to a normal or recommended range.","comment":"Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.","requirements":"Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.","min":0,"max":"*","base":{"path":"Observation.component.referenceRange","min":0,"max":"*"},"contentReference":"http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX.7"},{"identity":"rim","map":"outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"}]},{"id":"Observation.component:timeInterval","path":"Observation.component","sliceName":"timeInterval","short":"Cause of death time interval for Intermediate, Intermediate I, Intermediat II, Underlying","definition":"Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.","comment":"For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.","min":1,"max":"1","base":{"path":"Observation.component","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"containment by OBX-4?"},{"identity":"rim","map":"outBoundRelationship[typeCode=COMP]"}]},{"id":"Observation.component:timeInterval.id","path":"Observation.component.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component:timeInterval.extension","path":"Observation.component.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component:timeInterval.modifierExtension","path":"Observation.component.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.component:timeInterval.code","path":"Observation.component.code","short":"Disease onset to death interval","definition":"Describes what was observed. Sometimes this is called the observation \"code\".","comment":"*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.","requirements":"Knowing what kind of observation is being made is essential to understanding the observation.","min":1,"max":"1","base":{"path":"Observation.component.code","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"patternCodeableConcept":{"coding":[{"system":"http://loinc.org","code":"69440-6"}]},"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCode"}],"strength":"example","description":"Codes identifying names of simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-codes|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"sct-concept","map":"< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"code"}]},{"id":"Observation.component:timeInterval.value[x]","path":"Observation.component.value[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"closed"},"short":"Actual component result","definition":"The information determined as a result of making the observation, if the information has a simple value.","comment":"Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.","min":0,"max":"1","base":{"path":"Observation.component.value[x]","min":0,"max":"1"},"type":[{"code":"Quantity"},{"code":"CodeableConcept"},{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"363714003 |Interprets| < 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.component:timeInterval.value[x]:valueString","path":"Observation.component.value[x]","sliceName":"valueString","short":"Interval - string description","definition":"The information determined as a result of making the observation, if the information has a simple value.","comment":"Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.","min":0,"max":"1","base":{"path":"Observation.component.value[x]","min":0,"max":"1"},"type":[{"code":"string"}],"maxLength":20,"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"363714003 |Interprets| < 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.component:timeInterval.value[x]:valueQuantity","path":"Observation.component.value[x]","sliceName":"valueQuantity","short":"Interval - quantity with units of time","definition":"The information determined as a result of making the observation, if the information has a simple value.","comment":"Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.","min":0,"max":"1","base":{"path":"Observation.component.value[x]","min":0,"max":"1"},"type":[{"code":"Quantity"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"363714003 |Interprets| < 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.component:timeInterval.value[x]:valueCodeableConcept","path":"Observation.component.value[x]","sliceName":"valueCodeableConcept","short":"Interval Unknown","definition":"The information determined as a result of making the observation, if the information has a simple value.","comment":"Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.","min":0,"max":"1","base":{"path":"Observation.component.value[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"363714003 |Interprets| < 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.component:timeInterval.dataAbsentReason","path":"Observation.component.dataAbsentReason","short":"Why the component result is missing","definition":"Provides a reason why the expected value in the element Observation.component.value[x] is missing.","comment":"\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.","requirements":"For many results it is necessary to handle exceptional values in measurements.","min":0,"max":"1","base":{"path":"Observation.component.dataAbsentReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["obs-6"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationValueAbsentReason"}],"strength":"extensible","description":"Codes specifying why the result (`Observation.value[x]`) is missing.","valueSet":"http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1"},"mapping":[{"identity":"v2","map":"N/A"},{"identity":"rim","map":"value.nullFlavor"}]},{"id":"Observation.component:timeInterval.interpretation","path":"Observation.component.interpretation","short":"High, low, normal, etc.","definition":"A categorical assessment of an observation value. For example, high, low, normal.","comment":"Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.","requirements":"For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.","alias":["Abnormal Flag"],"min":0,"max":"*","base":{"path":"Observation.component.interpretation","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationInterpretation"}],"strength":"extensible","description":"Codes identifying interpretations of observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values|"},{"identity":"v2","map":"OBX-8"},{"identity":"rim","map":"interpretationCode"},{"identity":"sct-attr","map":"363713009 |Has interpretation|"}]},{"id":"Observation.component:timeInterval.referenceRange","path":"Observation.component.referenceRange","short":"Provides guide for interpretation of component result","definition":"Guidance on how to interpret the value by comparison to a normal or recommended range.","comment":"Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.","requirements":"Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.","min":0,"max":"*","base":{"path":"Observation.component.referenceRange","min":0,"max":"*"},"contentReference":"http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX.7"},{"identity":"rim","map":"outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"}]}]},"differential":{"element":[{"id":"Observation","path":"Observation"},{"id":"Observation.id","path":"Observation.id","min":1},{"id":"Observation.code","path":"Observation.code","short":"Cause of death","patternCodeableConcept":{"coding":[{"system":"http://loinc.org","code":"79378-6"}]}},{"id":"Observation.subject","path":"Observation.subject","label":"The decedent","short":"The decedent","min":1,"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}]},{"id":"Observation.performer","path":"Observation.performer","label":"Cause of death certifier (coroner or medical examiner)","short":"Cause of death certifier (coroner or medical examiner)","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner"]}]},{"id":"Observation.value[x]","path":"Observation.value[x]","min":1,"type":[{"code":"CodeableConcept"}]},{"id":"Observation.value[x].text","path":"Observation.value[x].text","short":"Cause of death Intermediate | Intermediate I | Intermediat II | Underlying","min":1,"maxLength":255},{"id":"Observation.component","path":"Observation.component","slicing":{"discriminator":[{"type":"value","path":"code"}],"rules":"open"},"min":2},{"id":"Observation.component:sequenceOfConditions","path":"Observation.component","sliceName":"sequenceOfConditions","short":"Sequence of conditions","min":1,"max":"1"},{"id":"Observation.component:sequenceOfConditions.value[x]","path":"Observation.component.value[x]","short":"Sequence of conditions e.g Intermediate | Intermediate I | Intermediat II | Underlying","min":1,"type":[{"code":"string"}]},{"id":"Observation.component:timeInterval","path":"Observation.component","sliceName":"timeInterval","short":"Cause of death time interval for Intermediate, Intermediate I, Intermediat II, Underlying","min":1,"max":"1"},{"id":"Observation.component:timeInterval.code","path":"Observation.component.code","short":"Disease onset to death interval","patternCodeableConcept":{"coding":[{"system":"http://loinc.org","code":"69440-6"}]}},{"id":"Observation.component:timeInterval.value[x]","path":"Observation.component.value[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"open"},"type":[{"code":"Quantity"},{"code":"CodeableConcept"},{"code":"string"}]},{"id":"Observation.component:timeInterval.value[x]:valueString","path":"Observation.component.value[x]","sliceName":"valueString","short":"Interval - string description","min":0,"max":"1","type":[{"code":"string"}],"maxLength":20},{"id":"Observation.component:timeInterval.value[x]:valueQuantity","path":"Observation.component.value[x]","sliceName":"valueQuantity","short":"Interval - quantity with units of time","min":0,"max":"1","type":[{"code":"Quantity"}]},{"id":"Observation.component:timeInterval.value[x]:valueCodeableConcept","path":"Observation.component.value[x]","sliceName":"valueCodeableConcept","short":"Interval Unknown","min":0,"max":"1","type":[{"code":"CodeableConcept"}]}]}},"SzAuthorizerExtension":{"resourceType":"StructureDefinition","id":"SzAuthorizerExtension","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAuthorizerExtension","version":"0.1.0","name":"SzAuthorizerExtension","title":"Extention: Eswatini Lab Result Authorizer","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Extention for Eswatini Lab Result Authorizer","fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Extension","path":"Extension","short":"Extention: Eswatini Lab Result Authorizer","definition":"Extention for Eswatini Lab Result Authorizer","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAuthorizerExtension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":0,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension","short":"Extention: Eswatini Lab Result Authorizer","definition":"Extention for Eswatini Lab Result Authorizer"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAuthorizerExtension"},{"id":"Extension.value[x]","path":"Extension.value[x]","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner"]}]}]}},"SzReferral":{"resourceType":"StructureDefinition","id":"SzReferral","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferral","version":"0.1.0","name":"SzReferral","title":"Eswatini Referral Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"This resource is designed to record patient referral information.","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"quick","uri":"http://siframework.org/cqf","name":"Quality Improvement and Clinical Knowledge (QUICK)"}],"kind":"resource","abstract":false,"type":"ServiceRequest","baseDefinition":"http://hl7.org/fhir/StructureDefinition/ServiceRequest","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"ServiceRequest","path":"ServiceRequest","short":"A request for a service to be performed","definition":"A record of a request for service such as diagnostic investigations, treatments, or operations to be performed.","alias":["diagnostic request","referral","referral request","transfer of care request"],"min":0,"max":"*","base":{"path":"ServiceRequest","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"prr-1","severity":"error","human":"orderDetail SHALL only be present if code is present","expression":"orderDetail.empty() or code.exists()","xpath":"exists(f:code) or not(exists(f:orderDetail))","source":"http://hl7.org/fhir/StructureDefinition/ServiceRequest"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Request"},{"identity":"v2","map":"ORC"},{"identity":"rim","map":"Act[moodCode<=INT]"}]},{"id":"ServiceRequest.id","path":"ServiceRequest.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"ServiceRequest.meta","path":"ServiceRequest.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"ServiceRequest.implicitRules","path":"ServiceRequest.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"ServiceRequest.language","path":"ServiceRequest.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"ServiceRequest.text","path":"ServiceRequest.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"ServiceRequest.contained","path":"ServiceRequest.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ServiceRequest.extension","path":"ServiceRequest.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"ordered":false,"rules":"open"},"short":"Extension","definition":"An Extension","min":1,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"ServiceRequest.extension:recipient","path":"ServiceRequest.extension","sliceName":"recipient","short":"Health facility receiving the referred patient.","definition":"Extention for Eswatini Referral Recipient","min":1,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"ServiceRequest.modifierExtension","path":"ServiceRequest.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ServiceRequest.identifier","path":"ServiceRequest.identifier","short":"Identifiers assigned to this order","definition":"Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.","comment":"The identifier.type element is used to distinguish between the identifiers assigned by the orderer (known as the 'Placer' in HL7 v2) and the producer of the observations in response to the order (known as the 'Filler' in HL7 v2). For further discussion and examples see the resource notes section below.","min":1,"max":"1","base":{"path":"ServiceRequest.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"ORC.2, ORC.3, RF1-6 / RF1-11,"},{"identity":"rim","map":".identifier"},{"identity":"quick","map":"ClinicalStatement.identifier"}]},{"id":"ServiceRequest.instantiatesCanonical","path":"ServiceRequest.instantiatesCanonical","short":"Instantiates FHIR protocol or definition","definition":"The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.","comment":"Note: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.","min":0,"max":"*","base":{"path":"ServiceRequest.instantiatesCanonical","min":0,"max":"*"},"type":[{"code":"canonical","targetProfile":["http://hl7.org/fhir/StructureDefinition/ActivityDefinition|4.0.1","http://hl7.org/fhir/StructureDefinition/PlanDefinition|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.instantiatesCanonical"},{"identity":"v2","map":"Varies by domain"},{"identity":"rim","map":".outboundRelationship[typeCode=DEFN].target"}]},{"id":"ServiceRequest.instantiatesUri","path":"ServiceRequest.instantiatesUri","short":"Instantiates external protocol or definition","definition":"The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.","comment":"This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.","min":0,"max":"*","base":{"path":"ServiceRequest.instantiatesUri","min":0,"max":"*"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.instantiatesUri"},{"identity":"v2","map":"Varies by domain"},{"identity":"rim","map":".outboundRelationship[typeCode=DEFN].target"}]},{"id":"ServiceRequest.basedOn","path":"ServiceRequest.basedOn","short":"What request fulfills","definition":"Plan/proposal/order fulfilled by this request.","alias":["fulfills"],"min":0,"max":"*","base":{"path":"ServiceRequest.basedOn","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1","http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.basedOn"},{"identity":"v2","map":"ORC.8 (plus others)"},{"identity":"rim","map":".outboundRelationship[typeCode=FLFS].target"}]},{"id":"ServiceRequest.replaces","path":"ServiceRequest.replaces","short":"What request replaces","definition":"The request takes the place of the referenced completed or terminated request(s).","alias":["supersedes","prior","renewed order"],"min":0,"max":"*","base":{"path":"ServiceRequest.replaces","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.replaces"},{"identity":"v2","map":"Handled by message location of ORC (ORC.1=RO or RU)"},{"identity":"rim","map":".outboundRelationship[typeCode=RPLC].target"}]},{"id":"ServiceRequest.requisition","path":"ServiceRequest.requisition","short":"Composite Request ID","definition":"A shared identifier common to all service requests that were authorized more or less simultaneously by a single author, representing the composite or group identifier.","comment":"Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.","requirements":"Some business processes need to know if multiple items were ordered as part of the same \"requisition\" for billing or other purposes.","alias":["grouperId","groupIdentifier"],"min":0,"max":"1","base":{"path":"ServiceRequest.requisition","min":0,"max":"1"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.groupIdentifier"},{"identity":"v2","map":"ORC.4"},{"identity":"rim","map":".inboundRelationship(typeCode=COMP].source[moodCode=INT].identifier"}]},{"id":"ServiceRequest.status","path":"ServiceRequest.status","short":"draft | active | on-hold | revoked | completed | entered-in-error | unknown","definition":"The status of the order.","comment":"The status is generally fully in the control of the requester - they determine whether the order is draft or active and, after it has been activated, competed, cancelled or suspended. States relating to the activities of the performer are reflected on either the corresponding event (see [Event Pattern](http://hl7.org/fhir/R4/event.html) for general discussion) or using the [Task](http://hl7.org/fhir/R4/task.html) resource.","min":1,"max":"1","base":{"path":"ServiceRequest.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestStatus"}],"strength":"required","description":"The status of a service order.","valueSet":"http://hl7.org/fhir/ValueSet/request-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.status"},{"identity":"w5","map":"FiveWs.status"},{"identity":"v2","map":"ORC.5,RF1-1"},{"identity":"rim","map":".status"},{"identity":"quick","map":"Action.currentStatus"}]},{"id":"ServiceRequest.intent","path":"ServiceRequest.intent","short":"proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option","definition":"Whether the request is a proposal, plan, an original order or a reflex order.","comment":"This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.","min":1,"max":"1","base":{"path":"ServiceRequest.intent","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestIntent"}],"strength":"required","description":"The kind of service request.","valueSet":"http://hl7.org/fhir/ValueSet/request-intent|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.intent"},{"identity":"w5","map":"FiveWs.class"},{"identity":"v2","map":"N/A"},{"identity":"rim","map":".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)"}]},{"id":"ServiceRequest.category","path":"ServiceRequest.category","short":"Classification of service","definition":"A code that classifies the service for searching, sorting and display purposes (e.g. \"Surgical Procedure\").","comment":"There may be multiple axis of categorization depending on the context or use case for retrieving or displaying the resource. The level of granularity is defined by the category concepts in the value set.","requirements":"Used for filtering what service request are retrieved and displayed.","min":1,"max":"1","base":{"path":"ServiceRequest.category","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestCategory"}],"strength":"example","description":"Classification of the requested service.","valueSet":"http://hl7.org/fhir/ValueSet/servicerequest-category|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"v2","map":"RF1-5"},{"identity":"rim","map":".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"INT\"].code"}]},{"id":"ServiceRequest.priority","path":"ServiceRequest.priority","short":"routine | urgent | asap | stat","definition":"Indicates how quickly the ServiceRequest should be addressed with respect to other requests.","min":0,"max":"1","base":{"path":"ServiceRequest.priority","min":0,"max":"1"},"type":[{"code":"code"}],"meaningWhenMissing":"If missing, this task should be performed with normal priority","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestPriority"}],"strength":"required","description":"Identifies the level of importance to be assigned to actioning the request.","valueSet":"http://hl7.org/fhir/ValueSet/request-priority|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.priority"},{"identity":"w5","map":"FiveWs.grade"},{"identity":"v2","map":"TQ1.9, RF1-2"},{"identity":"rim","map":".priorityCode"}]},{"id":"ServiceRequest.doNotPerform","path":"ServiceRequest.doNotPerform","short":"True if service/procedure should not be performed","definition":"Set this to true if the record is saying that the service/procedure should NOT be performed.","comment":"In general, only the code and timeframe will be present, though occasional additional qualifiers such as body site or even performer could be included to narrow the scope of the prohibition. If the ServiceRequest.code and ServiceRequest.doNotPerform both contain negation, that will reinforce prohibition and should not have a double negative interpretation.","requirements":"Used for do not ambulate, do not elevate head of bed, do not flush NG tube, do not take blood pressure on a certain arm, etc.","min":0,"max":"1","base":{"path":"ServiceRequest.doNotPerform","min":0,"max":"1"},"type":[{"code":"boolean"}],"meaningWhenMissing":"If missing, the request is a positive request e.g. \"do perform\"","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"If true this element negates the specified action. For Example, instead of a request for a procedure, it is a request for the procedure to not occur.","isSummary":true,"mapping":[{"identity":"workflow","map":"Request.doNotPerform"},{"identity":"rim","map":".actionNegationInd"}]},{"id":"ServiceRequest.code","path":"ServiceRequest.code","short":"What is being requested/ordered","definition":"A code that identifies a particular service (i.e., procedure, diagnostic investigation, or panel of investigations) that have been requested.","comment":"Many laboratory and radiology procedure codes embed the specimen/organ system in the test order name, for example, serum or serum/plasma glucose, or a chest x-ray. The specimen might not be recorded separately from the test code.","alias":["service requested"],"min":1,"max":"1","base":{"path":"ServiceRequest.code","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestCode"}],"strength":"example","description":"Codes for tests or services that can be carried out by a designated individual, organization or healthcare service. For laboratory, LOINC is (preferred)[http://build.fhir.org/terminologies.html#preferred].","valueSet":"http://hl7.org/fhir/ValueSet/procedure-code|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.code"},{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"v2","map":"PR1-3 / OBR-4 (varies by domain)"},{"identity":"rim","map":".code"},{"identity":"quick","map":"Procedure.procedureCode"}]},{"id":"ServiceRequest.orderDetail","path":"ServiceRequest.orderDetail","short":"Additional order information","definition":"Additional details and instructions about the how the services are to be delivered. For example, and order for a urinary catheter may have an order detail for an external or indwelling catheter, or an order for a bandage may require additional instructions specifying how the bandage should be applied.","comment":"For information from the medical record intended to support the delivery of the requested services, use the `supportingInformation` element.","alias":["detailed instructions"],"min":0,"max":"*","base":{"path":"ServiceRequest.orderDetail","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"condition":["prr-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"OrderDetail"}],"strength":"example","description":"Codified order entry details which are based on order context.","valueSet":"http://hl7.org/fhir/ValueSet/servicerequest-orderdetail|4.0.1"},"mapping":[{"identity":"v2","map":"NTE"},{"identity":"rim","map":".code"},{"identity":"quick","map":"Procedure.procedureCode"}]},{"id":"ServiceRequest.quantity[x]","path":"ServiceRequest.quantity[x]","short":"Service amount","definition":"An amount of service being requested which can be a quantity ( for example $1,500 home modification), a ratio ( for example, 20 half day visits per month), or a range (2.0 to 1.8 Gy per fraction).","requirements":"When ordering a service the number of service items may need to be specified separately from the the service item.","min":0,"max":"1","base":{"path":"ServiceRequest.quantity[x]","min":0,"max":"1"},"type":[{"code":"Quantity"},{"code":"Ratio"},{"code":"Range"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"NTE"},{"identity":"rim","map":".quantity"}]},{"id":"ServiceRequest.subject","path":"ServiceRequest.subject","short":"Patient associated with the referral","definition":"On whom or what the service is to be performed. This is usually a human patient, but can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).","min":1,"max":"1","base":{"path":"ServiceRequest.subject","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.subject"},{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"PID"},{"identity":"rim","map":".participation[typeCode=SBJ].role"},{"identity":"quick","map":"ClinicalStatement.subject"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"ServiceRequest.encounter","path":"ServiceRequest.encounter","short":"Visit or Encounter associated with the referral","definition":"An encounter that provides additional information about the healthcare context in which this request is made.","alias":["context"],"min":1,"max":"1","base":{"path":"ServiceRequest.encounter","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.encounter"},{"identity":"w5","map":"FiveWs.context"},{"identity":"v2","map":"PV1"},{"identity":"rim","map":".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]"},{"identity":"quick","map":"ClinicalStatement.encounter"}]},{"id":"ServiceRequest.occurrence[x]","path":"ServiceRequest.occurrence[x]","short":"Date the patient is expected to arrive at the reciving facility","definition":"The date/time at which the requested service should occur.","alias":["schedule"],"min":1,"max":"1","base":{"path":"ServiceRequest.occurrence[x]","min":0,"max":"1"},"type":[{"code":"dateTime"},{"code":"Period"},{"code":"Timing"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.occurrence[x]"},{"identity":"w5","map":"FiveWs.planned"},{"identity":"v2","map":"TQ1/TQ2, OBR-7/OBR-8"},{"identity":"rim","map":".effectiveTime"},{"identity":"quick","map":"Procedure.procedureSchedule"}]},{"id":"ServiceRequest.asNeeded[x]","path":"ServiceRequest.asNeeded[x]","short":"Preconditions for service","definition":"If a CodeableConcept is present, it indicates the pre-condition for performing the service. For example \"pain\", \"on flare-up\", etc.","min":0,"max":"1","base":{"path":"ServiceRequest.asNeeded[x]","min":0,"max":"1"},"type":[{"code":"boolean"},{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ProcedureAsNeededReason"}],"strength":"example","description":"A coded concept identifying the pre-condition that should hold prior to performing a procedure. For example \"pain\", \"on flare-up\", etc.","valueSet":"http://hl7.org/fhir/ValueSet/medication-as-needed-reason|4.0.1"},"mapping":[{"identity":"rim","map":"boolean: precondition.negationInd (inversed - so negationInd = true means asNeeded=false CodeableConcept: precondition.observationEventCriterion[code=\"Assertion\"].value"},{"identity":"quick","map":"Proposal.prnReason.reason"}]},{"id":"ServiceRequest.authoredOn","path":"ServiceRequest.authoredOn","short":"Date the refferal was created","definition":"When the request transitioned to being actionable.","alias":["orderedOn"],"min":1,"max":"1","base":{"path":"ServiceRequest.authoredOn","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.authoredOn"},{"identity":"w5","map":"FiveWs.recorded"},{"identity":"v2","map":"ORC.9, RF1-7 / RF1-9"},{"identity":"rim","map":".participation[typeCode=AUT].time"},{"identity":"quick","map":"Proposal.proposedAtTime"}]},{"id":"ServiceRequest.requester","path":"ServiceRequest.requester","short":"Health facility making the referral","definition":"The individual who initiated the request and has responsibility for its activation.","comment":"This not the dispatcher, but rather who is the authorizer. This element is not intended to handle delegation which would generally be managed through the Provenance resource.","alias":["author","orderer"],"min":1,"max":"1","base":{"path":"ServiceRequest.requester","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.requester"},{"identity":"w5","map":"FiveWs.author"},{"identity":"v2","map":"ORC.12, PRT"},{"identity":"rim","map":".participation[typeCode=AUT].role"},{"identity":"quick","map":"ClinicalStatement.statementAuthor"}]},{"id":"ServiceRequest.performerType","path":"ServiceRequest.performerType","short":"Performer role","definition":"Desired type of performer for doing the requested service.","comment":"This is a role, not a participation type. In other words, does not describe the task but describes the capacity. For example, “compounding pharmacy”, “psychiatrist” or “internal referral”.","alias":["specialty"],"min":0,"max":"1","base":{"path":"ServiceRequest.performerType","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestParticipantRole"}],"strength":"example","description":"Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.","valueSet":"http://hl7.org/fhir/ValueSet/participant-role|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.performerType"},{"identity":"w5","map":"FiveWs.actor"},{"identity":"v2","map":"PRT, RF!-3"},{"identity":"rim","map":".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code"}]},{"id":"ServiceRequest.performer","path":"ServiceRequest.performer","short":"Requested performer","definition":"The desired performer for doing the requested service. For example, the surgeon, dermatopathologist, endoscopist, etc.","comment":"If multiple performers are present, it is interpreted as a list of *alternative* performers without any preference regardless of order. If order of preference is needed use the [request-performerOrder extension](http://hl7.org/fhir/R4/extension-request-performerorder.html). Use CareTeam to represent a group of performers (for example, Practitioner A *and* Practitioner B).","alias":["request recipient"],"min":0,"max":"*","base":{"path":"ServiceRequest.performer","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1","http://hl7.org/fhir/StructureDefinition/Organization|4.0.1","http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1","http://hl7.org/fhir/StructureDefinition/HealthcareService|4.0.1","http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/Device|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.performer"},{"identity":"w5","map":"FiveWs.actor"},{"identity":"v2","map":"PRT, Practitioner: PRD-2/PRD-7 where PRD-3 = RT; Organization: PRD-10 where PRD-3 = RT"},{"identity":"rim","map":".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]"}]},{"id":"ServiceRequest.locationCode","path":"ServiceRequest.locationCode","short":"Requested location","definition":"The preferred location(s) where the procedure should actually happen in coded or free text form. E.g. at home or nursing day care center.","min":0,"max":"*","base":{"path":"ServiceRequest.locationCode","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestLocation"}],"strength":"example","description":"A location type where services are delivered.","valueSet":"http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType"},"mapping":[{"identity":"w5","map":"FiveWs.actor"},{"identity":"rim","map":".participation[typeCode=LOC].role[scoper.determinerCode=KIND].code"}]},{"id":"ServiceRequest.locationReference","path":"ServiceRequest.locationReference","short":"Requested location","definition":"A reference to the the preferred location(s) where the procedure should actually happen. E.g. at home or nursing day care center.","min":0,"max":"*","base":{"path":"ServiceRequest.locationReference","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Location|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.actor"},{"identity":"rim","map":".participation[typeCode=LOC].role[scoper.determinerCode=INSTANCE]"}]},{"id":"ServiceRequest.reasonCode","path":"ServiceRequest.reasonCode","short":"Reason the patient is being referred","definition":"An explanation or justification for why this service is being requested in coded or textual form. This is often for billing purposes. May relate to the resources referred to in `supportingInfo`.","comment":"This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all. Use `CodeableConcept.text` element if the data is free (uncoded) text as shown in the [CT Scan example](http://hl7.org/fhir/R4/servicerequest-example-di.html).","min":1,"max":"1","base":{"path":"ServiceRequest.reasonCode","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestReason"}],"strength":"example","description":"Diagnosis or problem codes justifying the reason for requesting the service investigation.","valueSet":"http://hl7.org/fhir/ValueSet/procedure-reason|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.reasonCode"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"v2","map":"ORC.16, RF1-10"},{"identity":"rim","map":".reasonCode"}]},{"id":"ServiceRequest.reasonReference","path":"ServiceRequest.reasonReference","short":"Explanation/Justification for service or service","definition":"Indicates another resource that provides a justification for why this service is being requested. May relate to the resources referred to in `supportingInfo`.","comment":"This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all. To be as specific as possible, a reference to *Observation* or *Condition* should be used if available. Otherwise when referencing *DiagnosticReport* it should contain a finding in `DiagnosticReport.conclusion` and/or `DiagnosticReport.conclusionCode`. When using a reference to *DocumentReference*, the target document should contain clear findings language providing the relevant reason for this service request. Use the CodeableConcept text element in `ServiceRequest.reasonCode` if the data is free (uncoded) text as shown in the [CT Scan example](http://hl7.org/fhir/R4/servicerequest-example-di.html).","min":0,"max":"*","base":{"path":"ServiceRequest.reasonReference","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Condition|4.0.1","http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/DiagnosticReport|4.0.1","http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.reasonReference"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"v2","map":"ORC.16"},{"identity":"rim","map":".outboundRelationship[typeCode=RSON].target"}]},{"id":"ServiceRequest.insurance","path":"ServiceRequest.insurance","short":"Associated insurance coverage","definition":"Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be needed for delivering the requested service.","min":0,"max":"*","base":{"path":"ServiceRequest.insurance","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Coverage|4.0.1","http://hl7.org/fhir/StructureDefinition/ClaimResponse|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.insurance"},{"identity":"v2","map":"IN1/IN2"},{"identity":"rim","map":".outboundRelationship[typeCode=COVBY].target"}]},{"id":"ServiceRequest.supportingInfo","path":"ServiceRequest.supportingInfo","short":"Additional clinical information","definition":"Additional clinical information about the patient or specimen that may influence the services or their interpretations. This information includes diagnosis, clinical findings and other observations. In laboratory ordering these are typically referred to as \"ask at order entry questions (AOEs)\". This includes observations explicitly requested by the producer (filler) to provide context or supporting information needed to complete the order. For example, reporting the amount of inspired oxygen for blood gas measurements.","comment":"To represent information about how the services are to be delivered use the `instructions` element.","alias":["Ask at order entry question","AOE"],"min":0,"max":"*","base":{"path":"ServiceRequest.supportingInfo","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.supportingInfo"},{"identity":"v2","map":"Accompanying segments"},{"identity":"rim","map":".outboundRelationship[typeCode=PERT].target"}]},{"id":"ServiceRequest.specimen","path":"ServiceRequest.specimen","short":"Procedure Samples","definition":"One or more specimens that the laboratory procedure will use.","comment":"Many diagnostic procedures need a specimen, but the request itself is not actually about the specimen. This element is for when the diagnostic is requested on already existing specimens and the request points to the specimen it applies to. Conversely, if the request is entered first with an unknown specimen, then the [Specimen](http://hl7.org/fhir/R4/specimen.html) resource points to the ServiceRequest.","min":0,"max":"*","base":{"path":"ServiceRequest.specimen","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"SPM"},{"identity":"rim","map":".participation[typeCode=SPC].role"}]},{"id":"ServiceRequest.bodySite","path":"ServiceRequest.bodySite","short":"Location on Body","definition":"Anatomic location where the procedure should be performed. This is the target site.","comment":"Only used if not implicit in the code found in ServiceRequest.code. If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately) then use the standard extension [procedure-targetBodyStructure](http://hl7.org/fhir/R4/extension-procedure-targetbodystructure.html).","requirements":"Knowing where the procedure is performed is important for tracking if multiple sites are possible.","alias":["location"],"min":0,"max":"*","base":{"path":"ServiceRequest.bodySite","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"BodySite"}],"strength":"example","description":"Codes describing anatomical locations. May include laterality.","valueSet":"http://hl7.org/fhir/ValueSet/body-site|4.0.1"},"mapping":[{"identity":"v2","map":"SPM"},{"identity":"rim","map":"targetSiteCode"},{"identity":"quick","map":"Procedure.targetBodySite"}]},{"id":"ServiceRequest.note","path":"ServiceRequest.note","short":"Comments","definition":"Any other notes and comments made about the service request. For example, internal billing notes.","min":0,"max":"*","base":{"path":"ServiceRequest.note","min":0,"max":"*"},"type":[{"code":"Annotation"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.note"},{"identity":"v2","map":"NTE"},{"identity":"rim","map":".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]"},{"identity":"quick","map":"ClinicalStatement.additionalText"}]},{"id":"ServiceRequest.patientInstruction","path":"ServiceRequest.patientInstruction","short":"Patient or consumer-oriented instructions","definition":"Instructions in terms that are understood by the patient or consumer.","min":0,"max":"1","base":{"path":"ServiceRequest.patientInstruction","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"NTE"},{"identity":"rim","map":".text"}]},{"id":"ServiceRequest.relevantHistory","path":"ServiceRequest.relevantHistory","short":"Request provenance","definition":"Key events in the history of the request.","comment":"This might not include provenances for all versions of the request – only those deemed “relevant” or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject.","min":0,"max":"*","base":{"path":"ServiceRequest.relevantHistory","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Provenance|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.relevantHistory"},{"identity":"v2","map":"N/A"},{"identity":"rim","map":".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]"}]}]},"differential":{"element":[{"id":"ServiceRequest","path":"ServiceRequest"},{"id":"ServiceRequest.id","path":"ServiceRequest.id","min":1},{"id":"ServiceRequest.extension","path":"ServiceRequest.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"ordered":false,"rules":"open"},"min":1},{"id":"ServiceRequest.extension:recipient","path":"ServiceRequest.extension","sliceName":"recipient","short":"Health facility receiving the referred patient.","min":1,"max":"1","type":[{"code":"Extension","profile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension"]}]},{"id":"ServiceRequest.identifier","path":"ServiceRequest.identifier","min":1,"max":"1"},{"id":"ServiceRequest.category","path":"ServiceRequest.category","min":1,"max":"1"},{"id":"ServiceRequest.code","path":"ServiceRequest.code","min":1},{"id":"ServiceRequest.subject","path":"ServiceRequest.subject","short":"Patient associated with the referral","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}]},{"id":"ServiceRequest.encounter","path":"ServiceRequest.encounter","short":"Visit or Encounter associated with the referral","min":1,"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}]},{"id":"ServiceRequest.occurrence[x]","path":"ServiceRequest.occurrence[x]","short":"Date the patient is expected to arrive at the reciving facility","min":1},{"id":"ServiceRequest.authoredOn","path":"ServiceRequest.authoredOn","short":"Date the refferal was created","min":1},{"id":"ServiceRequest.requester","path":"ServiceRequest.requester","short":"Health facility making the referral","min":1,"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization"]}]},{"id":"ServiceRequest.reasonCode","path":"ServiceRequest.reasonCode","short":"Reason the patient is being referred","min":1,"max":"1"}]}},"SzLabRequest":{"resourceType":"StructureDefinition","id":"SzLabRequest","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabRequest","version":"0.1.0","name":"EswatiniLabTest","title":"Eswatini Lab Test Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Eswatini Lab Test Profile","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"quick","uri":"http://siframework.org/cqf","name":"Quality Improvement and Clinical Knowledge (QUICK)"}],"kind":"resource","abstract":false,"type":"ServiceRequest","baseDefinition":"http://hl7.org/fhir/StructureDefinition/ServiceRequest","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"ServiceRequest","path":"ServiceRequest","short":"A request for a service to be performed","definition":"A record of a request for service such as diagnostic investigations, treatments, or operations to be performed.","alias":["diagnostic request","referral","referral request","transfer of care request"],"min":0,"max":"*","base":{"path":"ServiceRequest","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"prr-1","severity":"error","human":"orderDetail SHALL only be present if code is present","expression":"orderDetail.empty() or code.exists()","xpath":"exists(f:code) or not(exists(f:orderDetail))","source":"http://hl7.org/fhir/StructureDefinition/ServiceRequest"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Request"},{"identity":"v2","map":"ORC"},{"identity":"rim","map":"Act[moodCode<=INT]"}]},{"id":"ServiceRequest.id","path":"ServiceRequest.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"ServiceRequest.meta","path":"ServiceRequest.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"ServiceRequest.implicitRules","path":"ServiceRequest.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"ServiceRequest.language","path":"ServiceRequest.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"ServiceRequest.text","path":"ServiceRequest.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"ServiceRequest.contained","path":"ServiceRequest.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ServiceRequest.extension","path":"ServiceRequest.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ServiceRequest.modifierExtension","path":"ServiceRequest.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ServiceRequest.identifier","path":"ServiceRequest.identifier","short":"Identifiers assigned to this order","definition":"Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.","comment":"The identifier.type element is used to distinguish between the identifiers assigned by the orderer (known as the 'Placer' in HL7 v2) and the producer of the observations in response to the order (known as the 'Filler' in HL7 v2). For further discussion and examples see the resource notes section below.","min":0,"max":"*","base":{"path":"ServiceRequest.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"ORC.2, ORC.3, RF1-6 / RF1-11,"},{"identity":"rim","map":".identifier"},{"identity":"quick","map":"ClinicalStatement.identifier"}]},{"id":"ServiceRequest.instantiatesCanonical","path":"ServiceRequest.instantiatesCanonical","short":"Instantiates FHIR protocol or definition","definition":"The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.","comment":"Note: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.","min":0,"max":"*","base":{"path":"ServiceRequest.instantiatesCanonical","min":0,"max":"*"},"type":[{"code":"canonical","targetProfile":["http://hl7.org/fhir/StructureDefinition/ActivityDefinition|4.0.1","http://hl7.org/fhir/StructureDefinition/PlanDefinition|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.instantiatesCanonical"},{"identity":"v2","map":"Varies by domain"},{"identity":"rim","map":".outboundRelationship[typeCode=DEFN].target"}]},{"id":"ServiceRequest.instantiatesUri","path":"ServiceRequest.instantiatesUri","short":"Instantiates external protocol or definition","definition":"The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this ServiceRequest.","comment":"This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.","min":0,"max":"*","base":{"path":"ServiceRequest.instantiatesUri","min":0,"max":"*"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.instantiatesUri"},{"identity":"v2","map":"Varies by domain"},{"identity":"rim","map":".outboundRelationship[typeCode=DEFN].target"}]},{"id":"ServiceRequest.basedOn","path":"ServiceRequest.basedOn","short":"What request fulfills","definition":"Plan/proposal/order fulfilled by this request.","alias":["fulfills"],"min":0,"max":"*","base":{"path":"ServiceRequest.basedOn","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1","http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.basedOn"},{"identity":"v2","map":"ORC.8 (plus others)"},{"identity":"rim","map":".outboundRelationship[typeCode=FLFS].target"}]},{"id":"ServiceRequest.replaces","path":"ServiceRequest.replaces","short":"What request replaces","definition":"The request takes the place of the referenced completed or terminated request(s).","alias":["supersedes","prior","renewed order"],"min":0,"max":"*","base":{"path":"ServiceRequest.replaces","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.replaces"},{"identity":"v2","map":"Handled by message location of ORC (ORC.1=RO or RU)"},{"identity":"rim","map":".outboundRelationship[typeCode=RPLC].target"}]},{"id":"ServiceRequest.requisition","path":"ServiceRequest.requisition","short":"Composite Request ID","definition":"A shared identifier common to all service requests that were authorized more or less simultaneously by a single author, representing the composite or group identifier.","comment":"Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.","requirements":"Some business processes need to know if multiple items were ordered as part of the same \"requisition\" for billing or other purposes.","alias":["grouperId","groupIdentifier"],"min":0,"max":"1","base":{"path":"ServiceRequest.requisition","min":0,"max":"1"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.groupIdentifier"},{"identity":"v2","map":"ORC.4"},{"identity":"rim","map":".inboundRelationship(typeCode=COMP].source[moodCode=INT].identifier"}]},{"id":"ServiceRequest.status","path":"ServiceRequest.status","short":"draft | active | on-hold | revoked | completed | entered-in-error | unknown","definition":"The status of the order.","comment":"The status is generally fully in the control of the requester - they determine whether the order is draft or active and, after it has been activated, competed, cancelled or suspended. States relating to the activities of the performer are reflected on either the corresponding event (see [Event Pattern](http://hl7.org/fhir/R4/event.html) for general discussion) or using the [Task](http://hl7.org/fhir/R4/task.html) resource.","min":1,"max":"1","base":{"path":"ServiceRequest.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestStatus"}],"strength":"required","description":"The status of a service order.","valueSet":"http://hl7.org/fhir/ValueSet/request-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.status"},{"identity":"w5","map":"FiveWs.status"},{"identity":"v2","map":"ORC.5,RF1-1"},{"identity":"rim","map":".status"},{"identity":"quick","map":"Action.currentStatus"}]},{"id":"ServiceRequest.intent","path":"ServiceRequest.intent","short":"proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option","definition":"Whether the request is a proposal, plan, an original order or a reflex order.","comment":"This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.","min":1,"max":"1","base":{"path":"ServiceRequest.intent","min":1,"max":"1"},"type":[{"code":"code"}],"patternCode":"order","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestIntent"}],"strength":"required","description":"The kind of service request.","valueSet":"http://hl7.org/fhir/ValueSet/request-intent|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.intent"},{"identity":"w5","map":"FiveWs.class"},{"identity":"v2","map":"N/A"},{"identity":"rim","map":".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)"}]},{"id":"ServiceRequest.category","path":"ServiceRequest.category","short":"Type of service request","definition":"Classification of the requested service","comment":"There may be multiple axis of categorization depending on the context or use case for retrieving or displaying the resource. The level of granularity is defined by the category concepts in the value set.","requirements":"Used for filtering what service request are retrieved and displayed.","min":1,"max":"1","base":{"path":"ServiceRequest.category","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestCategory"}],"strength":"example","description":"Classification of the requested service.","valueSet":"http://hl7.org/fhir/ValueSet/servicerequest-category|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"v2","map":"RF1-5"},{"identity":"rim","map":".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"INT\"].code"}]},{"id":"ServiceRequest.category.id","path":"ServiceRequest.category.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ServiceRequest.category.extension","path":"ServiceRequest.category.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ServiceRequest.category.coding","path":"ServiceRequest.category.coding","short":"Code defined by a terminology system","definition":"A reference to a code defined by a terminology system.","comment":"Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.","requirements":"Allows for alternative encodings within a code system, and translations to other code systems.","min":1,"max":"1","base":{"path":"CodeableConcept.coding","min":0,"max":"*"},"type":[{"code":"Coding"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.1-8, C*E.10-22"},{"identity":"rim","map":"union(., ./translation)"},{"identity":"orim","map":"fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"}]},{"id":"ServiceRequest.category.coding.id","path":"ServiceRequest.category.coding.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ServiceRequest.category.coding.extension","path":"ServiceRequest.category.coding.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ServiceRequest.category.coding.system","path":"ServiceRequest.category.coding.system","short":"Identity of the terminology system","definition":"The identification of the code system that defines the meaning of the symbol in the code.","comment":"The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.","requirements":"Need to be unambiguous about the source of the definition of the symbol.","min":0,"max":"1","base":{"path":"Coding.system","min":0,"max":"1"},"type":[{"code":"uri"}],"patternUri":"http://snomed.info/sct","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.3"},{"identity":"rim","map":"./codeSystem"},{"identity":"orim","map":"fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"}]},{"id":"ServiceRequest.category.coding.version","path":"ServiceRequest.category.coding.version","short":"Version of the system - if relevant","definition":"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.","comment":"Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.","min":0,"max":"1","base":{"path":"Coding.version","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.7"},{"identity":"rim","map":"./codeSystemVersion"},{"identity":"orim","map":"fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"}]},{"id":"ServiceRequest.category.coding.code","path":"ServiceRequest.category.coding.code","short":"Symbol in syntax defined by the system","definition":"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).","requirements":"Need to refer to a particular code in the system.","min":0,"max":"1","base":{"path":"Coding.code","min":0,"max":"1"},"type":[{"code":"code"}],"patternCode":"108252007","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.1"},{"identity":"rim","map":"./code"},{"identity":"orim","map":"fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"}]},{"id":"ServiceRequest.category.coding.display","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable","valueBoolean":true}],"path":"ServiceRequest.category.coding.display","short":"Representation defined by the system","definition":"A representation of the meaning of the code in the system, following the rules of the system.","requirements":"Need to be able to carry a human-readable meaning of the code for readers that do not know the system.","min":0,"max":"1","base":{"path":"Coding.display","min":0,"max":"1"},"type":[{"code":"string"}],"patternString":"Laboratory procedure","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.2 - but note this is not well followed"},{"identity":"rim","map":"CV.displayName"},{"identity":"orim","map":"fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"}]},{"id":"ServiceRequest.category.coding.userSelected","path":"ServiceRequest.category.coding.userSelected","short":"If this coding was chosen directly by the user","definition":"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).","comment":"Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.","requirements":"This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.","min":0,"max":"1","base":{"path":"Coding.userSelected","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"Sometimes implied by being first"},{"identity":"rim","map":"CD.codingRationale"},{"identity":"orim","map":"fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"}]},{"id":"ServiceRequest.category.text","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable","valueBoolean":true}],"path":"ServiceRequest.category.text","short":"Plain text representation of the concept","definition":"A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.","comment":"Very often the text is the same as a displayName of one of the codings.","requirements":"The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.","min":0,"max":"1","base":{"path":"CodeableConcept.text","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.9. But note many systems use C*E.2 for this"},{"identity":"rim","map":"./originalText[mediaType/code=\"text/plain\"]/data"},{"identity":"orim","map":"fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"}]},{"id":"ServiceRequest.priority","path":"ServiceRequest.priority","short":"routine | urgent | asap | stat","definition":"Indicates how quickly the ServiceRequest should be addressed with respect to other requests.","min":0,"max":"1","base":{"path":"ServiceRequest.priority","min":0,"max":"1"},"type":[{"code":"code"}],"meaningWhenMissing":"If missing, this task should be performed with normal priority","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestPriority"}],"strength":"required","description":"Identifies the level of importance to be assigned to actioning the request.","valueSet":"http://hl7.org/fhir/ValueSet/request-priority|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.priority"},{"identity":"w5","map":"FiveWs.grade"},{"identity":"v2","map":"TQ1.9, RF1-2"},{"identity":"rim","map":".priorityCode"}]},{"id":"ServiceRequest.doNotPerform","path":"ServiceRequest.doNotPerform","short":"True if service/procedure should not be performed","definition":"Set this to true if the record is saying that the service/procedure should NOT be performed.","comment":"In general, only the code and timeframe will be present, though occasional additional qualifiers such as body site or even performer could be included to narrow the scope of the prohibition. If the ServiceRequest.code and ServiceRequest.doNotPerform both contain negation, that will reinforce prohibition and should not have a double negative interpretation.","requirements":"Used for do not ambulate, do not elevate head of bed, do not flush NG tube, do not take blood pressure on a certain arm, etc.","min":0,"max":"1","base":{"path":"ServiceRequest.doNotPerform","min":0,"max":"1"},"type":[{"code":"boolean"}],"meaningWhenMissing":"If missing, the request is a positive request e.g. \"do perform\"","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"If true this element negates the specified action. For Example, instead of a request for a procedure, it is a request for the procedure to not occur.","isSummary":true,"mapping":[{"identity":"workflow","map":"Request.doNotPerform"},{"identity":"rim","map":".actionNegationInd"}]},{"id":"ServiceRequest.code","path":"ServiceRequest.code","short":"Local test code","definition":"A code that identifies a particular service (i.e., procedure, diagnostic investigation, or panel of investigations) that have been requested.","comment":"Many laboratory and radiology procedure codes embed the specimen/organ system in the test order name, for example, serum or serum/plasma glucose, or a chest x-ray. The specimen might not be recorded separately from the test code.","alias":["service requested"],"min":1,"max":"1","base":{"path":"ServiceRequest.code","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"strength":"preferred","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestCodeVS"},"mapping":[{"identity":"workflow","map":"Request.code"},{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"v2","map":"PR1-3 / OBR-4 (varies by domain)"},{"identity":"rim","map":".code"},{"identity":"quick","map":"Procedure.procedureCode"}]},{"id":"ServiceRequest.orderDetail","path":"ServiceRequest.orderDetail","short":"Additional order information","definition":"Additional details and instructions about the how the services are to be delivered. For example, and order for a urinary catheter may have an order detail for an external or indwelling catheter, or an order for a bandage may require additional instructions specifying how the bandage should be applied.","comment":"For information from the medical record intended to support the delivery of the requested services, use the `supportingInformation` element.","alias":["detailed instructions"],"min":0,"max":"*","base":{"path":"ServiceRequest.orderDetail","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"condition":["prr-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"OrderDetail"}],"strength":"example","description":"Codified order entry details which are based on order context.","valueSet":"http://hl7.org/fhir/ValueSet/servicerequest-orderdetail|4.0.1"},"mapping":[{"identity":"v2","map":"NTE"},{"identity":"rim","map":".code"},{"identity":"quick","map":"Procedure.procedureCode"}]},{"id":"ServiceRequest.quantity[x]","path":"ServiceRequest.quantity[x]","short":"Service amount","definition":"An amount of service being requested which can be a quantity ( for example $1,500 home modification), a ratio ( for example, 20 half day visits per month), or a range (2.0 to 1.8 Gy per fraction).","requirements":"When ordering a service the number of service items may need to be specified separately from the the service item.","min":0,"max":"1","base":{"path":"ServiceRequest.quantity[x]","min":0,"max":"1"},"type":[{"code":"Quantity"},{"code":"Ratio"},{"code":"Range"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"NTE"},{"identity":"rim","map":".quantity"}]},{"id":"ServiceRequest.subject","path":"ServiceRequest.subject","short":"Patient's information","definition":"Patient relevant to the requested lab order","min":1,"max":"1","base":{"path":"ServiceRequest.subject","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.subject"},{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"PID"},{"identity":"rim","map":".participation[typeCode=SBJ].role"},{"identity":"quick","map":"ClinicalStatement.subject"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"ServiceRequest.encounter","path":"ServiceRequest.encounter","short":"Encounter information","definition":"Encounter relevant to the requested lab order","alias":["context"],"min":1,"max":"1","base":{"path":"ServiceRequest.encounter","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.encounter"},{"identity":"w5","map":"FiveWs.context"},{"identity":"v2","map":"PV1"},{"identity":"rim","map":".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]"},{"identity":"quick","map":"ClinicalStatement.encounter"}]},{"id":"ServiceRequest.occurrence[x]","path":"ServiceRequest.occurrence[x]","short":"When service should occur","definition":"The date/time at which the requested service should occur.","alias":["schedule"],"min":0,"max":"1","base":{"path":"ServiceRequest.occurrence[x]","min":0,"max":"1"},"type":[{"code":"dateTime"},{"code":"Period"},{"code":"Timing"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.occurrence[x]"},{"identity":"w5","map":"FiveWs.planned"},{"identity":"v2","map":"TQ1/TQ2, OBR-7/OBR-8"},{"identity":"rim","map":".effectiveTime"},{"identity":"quick","map":"Procedure.procedureSchedule"}]},{"id":"ServiceRequest.asNeeded[x]","path":"ServiceRequest.asNeeded[x]","short":"Preconditions for service","definition":"If a CodeableConcept is present, it indicates the pre-condition for performing the service. For example \"pain\", \"on flare-up\", etc.","min":0,"max":"1","base":{"path":"ServiceRequest.asNeeded[x]","min":0,"max":"1"},"type":[{"code":"boolean"},{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ProcedureAsNeededReason"}],"strength":"example","description":"A coded concept identifying the pre-condition that should hold prior to performing a procedure. For example \"pain\", \"on flare-up\", etc.","valueSet":"http://hl7.org/fhir/ValueSet/medication-as-needed-reason|4.0.1"},"mapping":[{"identity":"rim","map":"boolean: precondition.negationInd (inversed - so negationInd = true means asNeeded=false CodeableConcept: precondition.observationEventCriterion[code=\"Assertion\"].value"},{"identity":"quick","map":"Proposal.prnReason.reason"}]},{"id":"ServiceRequest.authoredOn","path":"ServiceRequest.authoredOn","short":"Date request signed","definition":"When the request transitioned to being actionable.","alias":["orderedOn"],"min":0,"max":"1","base":{"path":"ServiceRequest.authoredOn","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.authoredOn"},{"identity":"w5","map":"FiveWs.recorded"},{"identity":"v2","map":"ORC.9, RF1-7 / RF1-9"},{"identity":"rim","map":".participation[typeCode=AUT].time"},{"identity":"quick","map":"Proposal.proposedAtTime"}]},{"id":"ServiceRequest.requester","path":"ServiceRequest.requester","short":"Who/what is requesting service","definition":"The individual who initiated the request and has responsibility for its activation.","comment":"This not the dispatcher, but rather who is the authorizer. This element is not intended to handle delegation which would generally be managed through the Provenance resource.","alias":["author","orderer"],"min":0,"max":"1","base":{"path":"ServiceRequest.requester","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1","http://hl7.org/fhir/StructureDefinition/Organization|4.0.1","http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1","http://hl7.org/fhir/StructureDefinition/Device|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.requester"},{"identity":"w5","map":"FiveWs.author"},{"identity":"v2","map":"ORC.12, PRT"},{"identity":"rim","map":".participation[typeCode=AUT].role"},{"identity":"quick","map":"ClinicalStatement.statementAuthor"}]},{"id":"ServiceRequest.performerType","path":"ServiceRequest.performerType","short":"Performer role","definition":"Desired type of performer for doing the requested service.","comment":"This is a role, not a participation type. In other words, does not describe the task but describes the capacity. For example, “compounding pharmacy”, “psychiatrist” or “internal referral”.","alias":["specialty"],"min":0,"max":"1","base":{"path":"ServiceRequest.performerType","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestParticipantRole"}],"strength":"example","description":"Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.","valueSet":"http://hl7.org/fhir/ValueSet/participant-role|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.performerType"},{"identity":"w5","map":"FiveWs.actor"},{"identity":"v2","map":"PRT, RF!-3"},{"identity":"rim","map":".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code"}]},{"id":"ServiceRequest.performer","path":"ServiceRequest.performer","short":"Requested performer","definition":"The desired performer for doing the requested service. For example, the surgeon, dermatopathologist, endoscopist, etc.","comment":"If multiple performers are present, it is interpreted as a list of *alternative* performers without any preference regardless of order. If order of preference is needed use the [request-performerOrder extension](http://hl7.org/fhir/R4/extension-request-performerorder.html). Use CareTeam to represent a group of performers (for example, Practitioner A *and* Practitioner B).","alias":["request recipient"],"min":0,"max":"*","base":{"path":"ServiceRequest.performer","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1","http://hl7.org/fhir/StructureDefinition/Organization|4.0.1","http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1","http://hl7.org/fhir/StructureDefinition/HealthcareService|4.0.1","http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/Device|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.performer"},{"identity":"w5","map":"FiveWs.actor"},{"identity":"v2","map":"PRT, Practitioner: PRD-2/PRD-7 where PRD-3 = RT; Organization: PRD-10 where PRD-3 = RT"},{"identity":"rim","map":".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]"}]},{"id":"ServiceRequest.locationCode","path":"ServiceRequest.locationCode","short":"Requested location","definition":"The preferred location(s) where the procedure should actually happen in coded or free text form. E.g. at home or nursing day care center.","min":0,"max":"*","base":{"path":"ServiceRequest.locationCode","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestLocation"}],"strength":"example","description":"A location type where services are delivered.","valueSet":"http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType"},"mapping":[{"identity":"w5","map":"FiveWs.actor"},{"identity":"rim","map":".participation[typeCode=LOC].role[scoper.determinerCode=KIND].code"}]},{"id":"ServiceRequest.locationReference","path":"ServiceRequest.locationReference","short":"Requested location","definition":"A reference to the the preferred location(s) where the procedure should actually happen. E.g. at home or nursing day care center.","min":0,"max":"*","base":{"path":"ServiceRequest.locationReference","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Location|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.actor"},{"identity":"rim","map":".participation[typeCode=LOC].role[scoper.determinerCode=INSTANCE]"}]},{"id":"ServiceRequest.reasonCode","path":"ServiceRequest.reasonCode","short":"Explanation/Justification for procedure or service","definition":"An explanation or justification for why this service is being requested in coded or textual form. This is often for billing purposes. May relate to the resources referred to in `supportingInfo`.","comment":"This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all. Use `CodeableConcept.text` element if the data is free (uncoded) text as shown in the [CT Scan example](http://hl7.org/fhir/R4/servicerequest-example-di.html).","min":0,"max":"*","base":{"path":"ServiceRequest.reasonCode","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ServiceRequestReason"}],"strength":"example","description":"Diagnosis or problem codes justifying the reason for requesting the service investigation.","valueSet":"http://hl7.org/fhir/ValueSet/procedure-reason|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.reasonCode"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"v2","map":"ORC.16, RF1-10"},{"identity":"rim","map":".reasonCode"}]},{"id":"ServiceRequest.reasonReference","path":"ServiceRequest.reasonReference","short":"Explanation/Justification for service or service","definition":"Indicates another resource that provides a justification for why this service is being requested. May relate to the resources referred to in `supportingInfo`.","comment":"This element represents why the referral is being made and may be used to decide how the service will be performed, or even if it will be performed at all. To be as specific as possible, a reference to *Observation* or *Condition* should be used if available. Otherwise when referencing *DiagnosticReport* it should contain a finding in `DiagnosticReport.conclusion` and/or `DiagnosticReport.conclusionCode`. When using a reference to *DocumentReference*, the target document should contain clear findings language providing the relevant reason for this service request. Use the CodeableConcept text element in `ServiceRequest.reasonCode` if the data is free (uncoded) text as shown in the [CT Scan example](http://hl7.org/fhir/R4/servicerequest-example-di.html).","min":0,"max":"*","base":{"path":"ServiceRequest.reasonReference","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Condition|4.0.1","http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/DiagnosticReport|4.0.1","http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.reasonReference"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"v2","map":"ORC.16"},{"identity":"rim","map":".outboundRelationship[typeCode=RSON].target"}]},{"id":"ServiceRequest.insurance","path":"ServiceRequest.insurance","short":"Associated insurance coverage","definition":"Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be needed for delivering the requested service.","min":0,"max":"*","base":{"path":"ServiceRequest.insurance","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Coverage|4.0.1","http://hl7.org/fhir/StructureDefinition/ClaimResponse|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.insurance"},{"identity":"v2","map":"IN1/IN2"},{"identity":"rim","map":".outboundRelationship[typeCode=COVBY].target"}]},{"id":"ServiceRequest.supportingInfo","path":"ServiceRequest.supportingInfo","short":"Additional clinical information","definition":"Additional clinical information about the patient or specimen that may influence the services or their interpretations. This information includes diagnosis, clinical findings and other observations. In laboratory ordering these are typically referred to as \"ask at order entry questions (AOEs)\". This includes observations explicitly requested by the producer (filler) to provide context or supporting information needed to complete the order. For example, reporting the amount of inspired oxygen for blood gas measurements.","comment":"To represent information about how the services are to be delivered use the `instructions` element.","alias":["Ask at order entry question","AOE"],"min":0,"max":"*","base":{"path":"ServiceRequest.supportingInfo","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.supportingInfo"},{"identity":"v2","map":"Accompanying segments"},{"identity":"rim","map":".outboundRelationship[typeCode=PERT].target"}]},{"id":"ServiceRequest.specimen","path":"ServiceRequest.specimen","short":"Lab test specimen","definition":"Specimen relevant to the order being reqested","comment":"Many diagnostic procedures need a specimen, but the request itself is not actually about the specimen. This element is for when the diagnostic is requested on already existing specimens and the request points to the specimen it applies to. Conversely, if the request is entered first with an unknown specimen, then the [Specimen](http://hl7.org/fhir/R4/specimen.html) resource points to the ServiceRequest.","min":1,"max":"1","base":{"path":"ServiceRequest.specimen","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabSpecimen"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"SPM"},{"identity":"rim","map":".participation[typeCode=SPC].role"}]},{"id":"ServiceRequest.bodySite","path":"ServiceRequest.bodySite","short":"Location on Body","definition":"Anatomic location where the procedure should be performed. This is the target site.","comment":"Only used if not implicit in the code found in ServiceRequest.code. If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately) then use the standard extension [procedure-targetBodyStructure](http://hl7.org/fhir/R4/extension-procedure-targetbodystructure.html).","requirements":"Knowing where the procedure is performed is important for tracking if multiple sites are possible.","alias":["location"],"min":0,"max":"*","base":{"path":"ServiceRequest.bodySite","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"BodySite"}],"strength":"example","description":"Codes describing anatomical locations. May include laterality.","valueSet":"http://hl7.org/fhir/ValueSet/body-site|4.0.1"},"mapping":[{"identity":"v2","map":"SPM"},{"identity":"rim","map":"targetSiteCode"},{"identity":"quick","map":"Procedure.targetBodySite"}]},{"id":"ServiceRequest.note","path":"ServiceRequest.note","short":"Comments","definition":"Any other notes and comments made about the service request. For example, internal billing notes.","min":0,"max":"*","base":{"path":"ServiceRequest.note","min":0,"max":"*"},"type":[{"code":"Annotation"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.note"},{"identity":"v2","map":"NTE"},{"identity":"rim","map":".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]"},{"identity":"quick","map":"ClinicalStatement.additionalText"}]},{"id":"ServiceRequest.patientInstruction","path":"ServiceRequest.patientInstruction","short":"Patient or consumer-oriented instructions","definition":"Instructions in terms that are understood by the patient or consumer.","min":0,"max":"1","base":{"path":"ServiceRequest.patientInstruction","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"NTE"},{"identity":"rim","map":".text"}]},{"id":"ServiceRequest.relevantHistory","path":"ServiceRequest.relevantHistory","short":"Request provenance","definition":"Key events in the history of the request.","comment":"This might not include provenances for all versions of the request – only those deemed “relevant” or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject.","min":0,"max":"*","base":{"path":"ServiceRequest.relevantHistory","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Provenance|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.relevantHistory"},{"identity":"v2","map":"N/A"},{"identity":"rim","map":".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]"}]}]},"differential":{"element":[{"id":"ServiceRequest","path":"ServiceRequest"},{"id":"ServiceRequest.id","path":"ServiceRequest.id","min":1},{"id":"ServiceRequest.intent","path":"ServiceRequest.intent","patternCode":"order"},{"id":"ServiceRequest.category","path":"ServiceRequest.category","short":"Type of service request","definition":"Classification of the requested service","min":1,"max":"1"},{"id":"ServiceRequest.category.coding","path":"ServiceRequest.category.coding","min":1,"max":"1"},{"id":"ServiceRequest.category.coding.system","path":"ServiceRequest.category.coding.system","patternUri":"http://snomed.info/sct"},{"id":"ServiceRequest.category.coding.code","path":"ServiceRequest.category.coding.code","patternCode":"108252007"},{"id":"ServiceRequest.category.coding.display","path":"ServiceRequest.category.coding.display","patternString":"Laboratory procedure"},{"id":"ServiceRequest.code","path":"ServiceRequest.code","short":"Local test code","min":1,"binding":{"strength":"preferred","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestCodeVS"}},{"id":"ServiceRequest.subject","path":"ServiceRequest.subject","short":"Patient's information","definition":"Patient relevant to the requested lab order","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}]},{"id":"ServiceRequest.encounter","path":"ServiceRequest.encounter","short":"Encounter information","definition":"Encounter relevant to the requested lab order","min":1,"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}]},{"id":"ServiceRequest.specimen","path":"ServiceRequest.specimen","short":"Lab test specimen","definition":"Specimen relevant to the order being reqested","min":1,"max":"1","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabSpecimen"]}],"mustSupport":true}]}},"SzRegistrationDate":{"resourceType":"StructureDefinition","id":"SzRegistrationDate","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzRegistrationDate","version":"0.1.0","name":"SzRegistrationDate","title":"Extention: Patient Registration Date","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Extention for Eswatini Chiefdom","fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Extension","path":"Extension","short":"Extention: Patient Registration Date","definition":"Extention for Eswatini Chiefdom","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzRegistrationDate","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":0,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension","short":"Extention: Patient Registration Date","definition":"Extention for Eswatini Chiefdom"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzRegistrationDate"},{"id":"Extension.value[x]","path":"Extension.value[x]","type":[{"code":"dateTime"}]}]}},"SzLocationCodeExtension":{"resourceType":"StructureDefinition","id":"SzLocationCodeExtension","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocationCodeExtension","version":"0.1.0","name":"SzLocationCodeExtension","title":"Extention: Eswatini Location Code","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Extention for Eswatini Location Code","fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Extension","path":"Extension","short":"Extention: Eswatini Location Code","definition":"Extention for Eswatini Location Code","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocationCodeExtension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":0,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension","short":"Extention: Eswatini Location Code","definition":"Extention for Eswatini Location Code"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocationCodeExtension"},{"id":"Extension.value[x]","path":"Extension.value[x]","type":[{"code":"string"}]}]}},"SzLocation":{"resourceType":"StructureDefinition","id":"SzLocation","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation","version":"0.1.0","name":"EswatiniLocation","title":"Eswatini Location Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Eswatini Location Profile sets a standard for recording locations where medical care is provided","fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"}],"kind":"resource","abstract":false,"type":"Location","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Location|4.0.1","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Location","path":"Location","short":"Details and position information for a physical place","definition":"Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated.","min":0,"max":"*","base":{"path":"Location","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"rim","map":".Role[classCode=SDLC]"}]},{"id":"Location.id","path":"Location.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Location.meta","path":"Location.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true},{"id":"Location.implicitRules","path":"Location.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Location.language","path":"Location.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages|4.0.1"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Location.text","path":"Location.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Location.contained","path":"Location.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Location.extension","path":"Location.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Location.modifierExtension","path":"Location.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Location.identifier","path":"Location.identifier","short":"Unique code or number identifying the location to its users","definition":"Unique code or number identifying the location to its users.","requirements":"Organization label locations in registries, need to keep track of those.","min":0,"max":"*","base":{"path":"Location.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.identifier"},{"identity":"rim","map":".id"}]},{"id":"Location.status","path":"Location.status","short":"active | suspended | inactive","definition":"The status property covers the general availability of the resource, not the current value which may be covered by the operationStatus, or by a schedule/slots if they are configured for the location.","min":0,"max":"1","base":{"path":"Location.status","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"LocationStatus"}],"strength":"required","description":"Indicates whether the location is still in use.","valueSet":"http://hl7.org/fhir/ValueSet/location-status|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.status"},{"identity":"rim","map":".statusCode"}]},{"id":"Location.operationalStatus","path":"Location.operationalStatus","short":"The operational status of the location (typically only for a bed/room)","definition":"The operational status covers operation values most relevant to beds (but can also apply to rooms/units/chairs/etc. such as an isolation unit/dialysis chair). This typically covers concepts such as contamination, housekeeping, and other activities like maintenance.","min":0,"max":"1","base":{"path":"Location.operationalStatus","min":0,"max":"1"},"type":[{"code":"Coding"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"OperationalStatus"}],"strength":"preferred","description":"The operational status if the location (where typically a bed/room).","valueSet":"http://terminology.hl7.org/ValueSet/v2-0116|3.0.0"},"mapping":[{"identity":"w5","map":"FiveWs.status"},{"identity":"rim","map":"n/a"}]},{"id":"Location.name","path":"Location.name","short":"Location Name","definition":"Name of the recorded location e.g KSII Clinic | Ward 10","comment":"If the name of a location changes, consider putting the old name in the alias column so that it can still be located through searches.","min":1,"max":"1","base":{"path":"Location.name","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":".name"}]},{"id":"Location.alias","path":"Location.alias","short":"A list of alternate names that the location is known as, or was known as, in the past","definition":"A list of alternate names that the location is known as, or was known as, in the past.","comment":"There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the location.","requirements":"Over time locations and organizations go through many changes and can be known by different names.\n\nFor searching knowing previous names that the location was known by can be very useful.","min":0,"max":"*","base":{"path":"Location.alias","min":0,"max":"*"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".name"}]},{"id":"Location.description","path":"Location.description","short":"Additional details about the location that could be displayed as further information to identify the location beyond its name","definition":"Description of the Location, which helps in finding or referencing the place.","requirements":"Humans need additional information to verify a correct location has been identified.","min":0,"max":"1","base":{"path":"Location.description","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":".playingEntity[classCode=PLC determinerCode=INSTANCE].desc"}]},{"id":"Location.mode","path":"Location.mode","short":"instance | kind","definition":"Indicates whether a resource instance represents a specific location or a class of locations.","comment":"This is labeled as a modifier because whether or not the location is a class of locations changes how it can be used and understood.","requirements":"When using a Location resource for scheduling or orders, we need to be able to refer to a class of Locations instead of a specific Location.","min":0,"max":"1","base":{"path":"Location.mode","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"LocationMode"}],"strength":"required","description":"Indicates whether a resource instance represents a specific location or a class of locations.","valueSet":"http://hl7.org/fhir/ValueSet/location-mode|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".playingEntity[classCode=PLC].determinerCode"}]},{"id":"Location.type","path":"Location.type","short":"Location Type","definition":"Type of location: Clinic | Health Center | Hospital | Team | Ward | etc","min":1,"max":"1","base":{"path":"Location.type","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"LocationType"}],"strength":"extensible","description":"Indicates the type of function performed at the location.","valueSet":"http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType|3.0.0"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".code"}]},{"id":"Location.telecom","path":"Location.telecom","short":"Contact details of the location","definition":"The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites.","min":0,"max":"*","base":{"path":"Location.telecom","min":0,"max":"*"},"type":[{"code":"ContactPoint"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".telecom"}]},{"id":"Location.address","path":"Location.address","short":"Physical location","definition":"Physical location.","comment":"Additional addresses should be recorded using another instance of the Location resource, or via the Organization.","requirements":"If locations can be visited, we need to keep track of their address.","min":0,"max":"1","base":{"path":"Location.address","min":0,"max":"1"},"type":[{"code":"Address"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".addr"}]},{"id":"Location.physicalType","path":"Location.physicalType","short":"Physical form of the location","definition":"Physical form of the location, e.g. building, room, vehicle, road.","requirements":"For purposes of showing relevant locations in queries, we need to categorize locations.","min":0,"max":"1","base":{"path":"Location.physicalType","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"PhysicalType"}],"strength":"example","description":"Physical form of the location.","valueSet":"http://hl7.org/fhir/ValueSet/location-physical-type|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".playingEntity [classCode=PLC].code"}]},{"id":"Location.position","path":"Location.position","short":"The absolute geographic location","definition":"The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML).","requirements":"For mobile applications and automated route-finding knowing the exact location of the Location is required.","min":0,"max":"1","base":{"path":"Location.position","min":0,"max":"1"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".playingEntity [classCode=PLC determinerCode=INSTANCE].positionText"}]},{"id":"Location.position.id","path":"Location.position.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Location.position.extension","path":"Location.position.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Location.position.modifierExtension","path":"Location.position.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Location.position.longitude","path":"Location.position.longitude","short":"Longitude with WGS84 datum","definition":"Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below).","min":1,"max":"1","base":{"path":"Location.position.longitude","min":1,"max":"1"},"type":[{"code":"decimal"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"(RIM Opted not to map the sub-elements of GPS location, is now an OBS)"}]},{"id":"Location.position.latitude","path":"Location.position.latitude","short":"Latitude with WGS84 datum","definition":"Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below).","min":1,"max":"1","base":{"path":"Location.position.latitude","min":1,"max":"1"},"type":[{"code":"decimal"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"(RIM Opted not to map the sub-elements of GPS location, is now an OBS)"}]},{"id":"Location.position.altitude","path":"Location.position.altitude","short":"Altitude with WGS84 datum","definition":"Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below).","min":0,"max":"1","base":{"path":"Location.position.altitude","min":0,"max":"1"},"type":[{"code":"decimal"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"(RIM Opted not to map the sub-elements of GPS location, is now an OBS)"}]},{"id":"Location.managingOrganization","path":"Location.managingOrganization","short":"Organization responsible for provisioning and upkeep","definition":"The organization responsible for the provisioning and upkeep of the location.","comment":"This can also be used as the part of the organization hierarchy where this location provides services. These services can be defined through the HealthcareService resource.","requirements":"Need to know who manages the location.","min":0,"max":"1","base":{"path":"Location.managingOrganization","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization|0.1.0"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":".scopingEntity[classCode=ORG determinerKind=INSTANCE]"}]},{"id":"Location.partOf","path":"Location.partOf","short":"Another Location this one is physically a part of","definition":"Another Location of which this Location is physically a part of.","requirements":"For purposes of location, display and identification, knowing which locations are located within other locations is important.","min":0,"max":"1","base":{"path":"Location.partOf","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy","valueBoolean":true}],"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Location|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".inboundLink[typeCode=PART].source[classCode=SDLC]"}]},{"id":"Location.hoursOfOperation","path":"Location.hoursOfOperation","short":"What days/times during a week is this location usually open","definition":"What days/times during a week is this location usually open.","comment":"This type of information is commonly found published in directories and on websites informing customers when the facility is available.\n\nSpecific services within the location may have their own hours which could be shorter (or longer) than the locations hours.","min":0,"max":"*","base":{"path":"Location.hoursOfOperation","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".effectiveTime"}]},{"id":"Location.hoursOfOperation.id","path":"Location.hoursOfOperation.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Location.hoursOfOperation.extension","path":"Location.hoursOfOperation.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Location.hoursOfOperation.modifierExtension","path":"Location.hoursOfOperation.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Location.hoursOfOperation.daysOfWeek","path":"Location.hoursOfOperation.daysOfWeek","short":"mon | tue | wed | thu | fri | sat | sun","definition":"Indicates which days of the week are available between the start and end Times.","min":0,"max":"*","base":{"path":"Location.hoursOfOperation.daysOfWeek","min":0,"max":"*"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"DaysOfWeek"}],"strength":"required","description":"The days of the week.","valueSet":"http://hl7.org/fhir/ValueSet/days-of-week|4.0.1"},"mapping":[{"identity":"rim","map":".effectiveTime"}]},{"id":"Location.hoursOfOperation.allDay","path":"Location.hoursOfOperation.allDay","short":"The Location is open all day","definition":"The Location is open all day.","min":0,"max":"1","base":{"path":"Location.hoursOfOperation.allDay","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".effectiveTime"}]},{"id":"Location.hoursOfOperation.openingTime","path":"Location.hoursOfOperation.openingTime","short":"Time that the Location opens","definition":"Time that the Location opens.","min":0,"max":"1","base":{"path":"Location.hoursOfOperation.openingTime","min":0,"max":"1"},"type":[{"code":"time"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".effectiveTime"}]},{"id":"Location.hoursOfOperation.closingTime","path":"Location.hoursOfOperation.closingTime","short":"Time that the Location closes","definition":"Time that the Location closes.","min":0,"max":"1","base":{"path":"Location.hoursOfOperation.closingTime","min":0,"max":"1"},"type":[{"code":"time"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".effectiveTime"}]},{"id":"Location.availabilityExceptions","path":"Location.availabilityExceptions","short":"Description of availability exceptions","definition":"A description of when the locations opening ours are different to normal, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as detailed in the opening hours Times.","min":0,"max":"1","base":{"path":"Location.availabilityExceptions","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Location.endpoint","path":"Location.endpoint","short":"Technical endpoints providing access to services operated for the location","definition":"Technical endpoints providing access to services operated for the location.","requirements":"Organizations may have different systems at different locations that provide various services and need to be able to define the technical connection details for how to connect to them, and for what purpose.","min":0,"max":"*","base":{"path":"Location.endpoint","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Endpoint|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]}]},"differential":{"element":[{"id":"Location","path":"Location"},{"id":"Location.id","path":"Location.id","min":1},{"id":"Location.name","path":"Location.name","short":"Location Name","definition":"Name of the recorded location e.g KSII Clinic | Ward 10","min":1,"mustSupport":true},{"id":"Location.type","path":"Location.type","short":"Location Type","definition":"Type of location: Clinic | Health Center | Hospital | Team | Ward | etc","min":1,"max":"1","mustSupport":true},{"id":"Location.managingOrganization","path":"Location.managingOrganization","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization|0.1.0"]}]}]}},"SzMannerOfDeath":{"resourceType":"StructureDefinition","id":"SzMannerOfDeath","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzMannerOfDeath","version":"0.1.0","name":"SzMannerOfDeath","title":"Manner of Death Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Manner of Death Profile","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"sct-concept","uri":"http://snomed.info/conceptdomain","name":"SNOMED CT Concept Domain Binding"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"sct-attr","uri":"http://snomed.org/attributebinding","name":"SNOMED CT Attribute Binding"}],"kind":"resource","abstract":false,"type":"Observation","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Observation","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Observation","path":"Observation","short":"Measurements and simple assertions","definition":"Measurements and simple assertions made about a patient, device or other subject.","comment":"Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc. Other resources are used to provide context for observations such as laboratory reports, etc.","alias":["Vital Signs","Measurement","Results","Tests"],"min":0,"max":"*","base":{"path":"Observation","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"obs-6","severity":"error","human":"dataAbsentReason SHALL only be present if Observation.value[x] is not present","expression":"dataAbsentReason.empty() or value.empty()","xpath":"not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))","source":"http://hl7.org/fhir/StructureDefinition/Observation"},{"key":"obs-7","severity":"error","human":"If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present","expression":"value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()","xpath":"not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))","source":"http://hl7.org/fhir/StructureDefinition/Observation"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Event"},{"identity":"sct-concept","map":"< 363787002 |Observable entity|"},{"identity":"v2","map":"OBX"},{"identity":"rim","map":"Observation[classCode=OBS, moodCode=EVN]"}]},{"id":"Observation.id","path":"Observation.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Observation.meta","path":"Observation.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"Observation.implicitRules","path":"Observation.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Observation.language","path":"Observation.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Observation.text","path":"Observation.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Observation.contained","path":"Observation.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.extension","path":"Observation.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.modifierExtension","path":"Observation.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.identifier","path":"Observation.identifier","short":"Business Identifier for observation","definition":"A unique identifier assigned to this observation.","requirements":"Allows observations to be distinguished and referenced.","min":0,"max":"*","base":{"path":"Observation.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."},{"identity":"rim","map":"id"}]},{"id":"Observation.basedOn","path":"Observation.basedOn","short":"Fulfills plan, proposal or order","definition":"A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.","requirements":"Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.","alias":["Fulfills"],"min":0,"max":"*","base":{"path":"Observation.basedOn","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1","http://hl7.org/fhir/StructureDefinition/DeviceRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/NutritionOrder|4.0.1","http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.basedOn"},{"identity":"v2","map":"ORC"},{"identity":"rim","map":".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"}]},{"id":"Observation.partOf","path":"Observation.partOf","short":"Part of referenced event","definition":"A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.","comment":"To link an Observation to an Encounter use `encounter`. See the [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below for guidance on referencing another Observation.","alias":["Container"],"min":0,"max":"*","base":{"path":"Observation.partOf","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationDispense|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1","http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1","http://hl7.org/fhir/StructureDefinition/Immunization|4.0.1","http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.partOf"},{"identity":"v2","map":"Varies by domain"},{"identity":"rim","map":".outboundRelationship[typeCode=FLFS].target"}]},{"id":"Observation.status","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint","valueString":"default: final"}],"path":"Observation.status","short":"registered | preliminary | final | amended +","definition":"The status of the result value.","comment":"This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.","requirements":"Need to track the status of individual results. Some results are finalized before the whole report is finalized.","min":1,"max":"1","base":{"path":"Observation.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationStatus"}],"strength":"required","description":"Codes providing the status of an observation.","valueSet":"http://hl7.org/fhir/ValueSet/observation-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.status"},{"identity":"w5","map":"FiveWs.status"},{"identity":"sct-concept","map":"< 445584004 |Report by finality status|"},{"identity":"v2","map":"OBX-11"},{"identity":"rim","map":"status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""}]},{"id":"Observation.category","path":"Observation.category","short":"Classification of type of observation","definition":"A code that classifies the general type of observation being made.","comment":"In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.","requirements":"Used for filtering what observations are retrieved and displayed.","min":0,"max":"*","base":{"path":"Observation.category","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCategory"}],"strength":"preferred","description":"Codes for high level observation categories.","valueSet":"http://hl7.org/fhir/ValueSet/observation-category|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"}]},{"id":"Observation.code","path":"Observation.code","short":"Manner of death","definition":"Describes what was observed. Sometimes this is called the observation \"name\".","comment":"*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.","requirements":"Knowing what kind of observation is being made is essential to understanding the observation.","alias":["Name"],"min":1,"max":"1","base":{"path":"Observation.code","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"patternCodeableConcept":{"coding":[{"system":"http://loinc.org","code":"69449-7"}]},"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCode"}],"strength":"example","description":"Codes identifying names of simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-codes|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.code"},{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"sct-concept","map":"< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"code"},{"identity":"sct-attr","map":"116680003 |Is a|"}]},{"id":"Observation.subject","path":"Observation.subject","short":"Who and/or what the observation is about","definition":"The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.","comment":"One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.","requirements":"Observations have no value if you don't know who or what they're about.","min":1,"max":"1","base":{"path":"Observation.subject","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.subject"},{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"PID-3"},{"identity":"rim","map":"participation[typeCode=RTGT]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Observation.focus","path":"Observation.focus","short":"What the observation is about, when it is not about the subject of record","definition":"The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.","comment":"Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/R4/extension-observation-focuscode.html).","min":0,"max":"*","base":{"path":"Observation.focus","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"participation[typeCode=SBJ]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Observation.encounter","path":"Observation.encounter","short":"Healthcare event during which this observation is made","definition":"The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.","comment":"This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).","requirements":"For some observations it may be important to know the link between an observation and a particular encounter.","alias":["Context"],"min":0,"max":"1","base":{"path":"Observation.encounter","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.context"},{"identity":"w5","map":"FiveWs.context"},{"identity":"v2","map":"PV1"},{"identity":"rim","map":"inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"}]},{"id":"Observation.effective[x]","path":"Observation.effective[x]","short":"Clinically relevant time/time-period for observation","definition":"The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.","comment":"At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/R4/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.","requirements":"Knowing when an observation was deemed true is important to its relevance as well as determining trends.","alias":["Occurrence"],"min":0,"max":"1","base":{"path":"Observation.effective[x]","min":0,"max":"1"},"type":[{"code":"dateTime"},{"code":"Period"},{"code":"Timing"},{"code":"instant"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.occurrence[x]"},{"identity":"w5","map":"FiveWs.done[x]"},{"identity":"v2","map":"OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"},{"identity":"rim","map":"effectiveTime"}]},{"id":"Observation.issued","path":"Observation.issued","short":"Date/Time this version was made available","definition":"The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.","comment":"For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/R4/resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.","min":0,"max":"1","base":{"path":"Observation.issued","min":0,"max":"1"},"type":[{"code":"instant"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.recorded"},{"identity":"v2","map":"OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"},{"identity":"rim","map":"participation[typeCode=AUT].time"}]},{"id":"Observation.performer","path":"Observation.performer","short":"Who is responsible for the observation","definition":"Who was responsible for asserting the observed value as \"true\".","requirements":"May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.","min":0,"max":"*","base":{"path":"Observation.performer","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1","http://hl7.org/fhir/StructureDefinition/Organization|4.0.1","http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1","http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.performer.actor"},{"identity":"w5","map":"FiveWs.actor"},{"identity":"v2","map":"OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"},{"identity":"rim","map":"participation[typeCode=PRF]"}]},{"id":"Observation.value[x]","path":"Observation.value[x]","short":"Value representing the actual manner of death","definition":"The information determined as a result of making the observation, if the information has a simple value.","comment":"An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.","min":1,"max":"1","base":{"path":"Observation.value[x]","min":0,"max":"1"},"type":[{"code":"string"}],"condition":["obs-7"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"< 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.dataAbsentReason","path":"Observation.dataAbsentReason","short":"Why the result is missing","definition":"Provides a reason why the expected value in the element Observation.value[x] is missing.","comment":"Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.","requirements":"For many results it is necessary to handle exceptional values in measurements.","min":0,"max":"1","base":{"path":"Observation.dataAbsentReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["obs-6"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationValueAbsentReason"}],"strength":"extensible","description":"Codes specifying why the result (`Observation.value[x]`) is missing.","valueSet":"http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1"},"mapping":[{"identity":"v2","map":"N/A"},{"identity":"rim","map":"value.nullFlavor"}]},{"id":"Observation.interpretation","path":"Observation.interpretation","short":"High, low, normal, etc.","definition":"A categorical assessment of an observation value. For example, high, low, normal.","comment":"Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.","requirements":"For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.","alias":["Abnormal Flag"],"min":0,"max":"*","base":{"path":"Observation.interpretation","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationInterpretation"}],"strength":"extensible","description":"Codes identifying interpretations of observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values|"},{"identity":"v2","map":"OBX-8"},{"identity":"rim","map":"interpretationCode"},{"identity":"sct-attr","map":"363713009 |Has interpretation|"}]},{"id":"Observation.note","path":"Observation.note","short":"Comments about the observation","definition":"Comments about the observation or the results.","comment":"May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.","requirements":"Need to be able to provide free text additional information.","min":0,"max":"*","base":{"path":"Observation.note","min":0,"max":"*"},"type":[{"code":"Annotation"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"},{"identity":"rim","map":"subjectOf.observationEvent[code=\"annotation\"].value"}]},{"id":"Observation.bodySite","path":"Observation.bodySite","short":"Observed body part","definition":"Indicates the site on the subject's body where the observation was made (i.e. the target site).","comment":"Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/R4/extension-bodysite.html).","min":0,"max":"1","base":{"path":"Observation.bodySite","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"BodySite"}],"strength":"example","description":"Codes describing anatomical locations. May include laterality.","valueSet":"http://hl7.org/fhir/ValueSet/body-site|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 123037004 |Body structure|"},{"identity":"v2","map":"OBX-20"},{"identity":"rim","map":"targetSiteCode"},{"identity":"sct-attr","map":"718497002 |Inherent location|"}]},{"id":"Observation.method","path":"Observation.method","short":"How it was done","definition":"Indicates the mechanism used to perform the observation.","comment":"Only used if not implicit in code for Observation.code.","requirements":"In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.","min":0,"max":"1","base":{"path":"Observation.method","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationMethod"}],"strength":"example","description":"Methods for simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-methods|4.0.1"},"mapping":[{"identity":"v2","map":"OBX-17"},{"identity":"rim","map":"methodCode"}]},{"id":"Observation.specimen","path":"Observation.specimen","short":"Specimen used for this observation","definition":"The specimen that was used when this observation was made.","comment":"Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).","min":0,"max":"1","base":{"path":"Observation.specimen","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"sct-concept","map":"< 123038009 |Specimen|"},{"identity":"v2","map":"SPM segment"},{"identity":"rim","map":"participation[typeCode=SPC].specimen"},{"identity":"sct-attr","map":"704319004 |Inherent in|"}]},{"id":"Observation.device","path":"Observation.device","short":"(Measurement) Device","definition":"The device used to generate the observation data.","comment":"Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.","min":0,"max":"1","base":{"path":"Observation.device","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Device|4.0.1","http://hl7.org/fhir/StructureDefinition/DeviceMetric|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"sct-concept","map":"< 49062001 |Device|"},{"identity":"v2","map":"OBX-17 / PRT -10"},{"identity":"rim","map":"participation[typeCode=DEV]"},{"identity":"sct-attr","map":"424226004 |Using device|"}]},{"id":"Observation.referenceRange","path":"Observation.referenceRange","short":"Provides guide for interpretation","definition":"Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.","comment":"Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.","requirements":"Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.","min":0,"max":"*","base":{"path":"Observation.referenceRange","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"obs-3","severity":"error","human":"Must have at least a low or a high or text","expression":"low.exists() or high.exists() or text.exists()","xpath":"(exists(f:low) or exists(f:high)or exists(f:text))","source":"http://hl7.org/fhir/StructureDefinition/Observation"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX.7"},{"identity":"rim","map":"outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"}]},{"id":"Observation.referenceRange.id","path":"Observation.referenceRange.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.referenceRange.extension","path":"Observation.referenceRange.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.referenceRange.modifierExtension","path":"Observation.referenceRange.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.referenceRange.low","path":"Observation.referenceRange.low","short":"Low Range, if relevant","definition":"The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).","min":0,"max":"1","base":{"path":"Observation.referenceRange.low","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"condition":["obs-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:IVL_PQ.low"}]},{"id":"Observation.referenceRange.high","path":"Observation.referenceRange.high","short":"High Range, if relevant","definition":"The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).","min":0,"max":"1","base":{"path":"Observation.referenceRange.high","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"condition":["obs-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:IVL_PQ.high"}]},{"id":"Observation.referenceRange.type","path":"Observation.referenceRange.type","short":"Reference range qualifier","definition":"Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.","comment":"This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.","requirements":"Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.","min":0,"max":"1","base":{"path":"Observation.referenceRange.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationRangeMeaning"}],"strength":"preferred","description":"Code for the meaning of a reference range.","valueSet":"http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"},{"identity":"v2","map":"OBX-10"},{"identity":"rim","map":"interpretationCode"}]},{"id":"Observation.referenceRange.appliesTo","path":"Observation.referenceRange.appliesTo","short":"Reference range population","definition":"Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.","comment":"This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.","requirements":"Need to be able to identify the target population for proper interpretation.","min":0,"max":"*","base":{"path":"Observation.referenceRange.appliesTo","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationRangeType"}],"strength":"example","description":"Codes identifying the population the reference range applies to.","valueSet":"http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"},{"identity":"v2","map":"OBX-10"},{"identity":"rim","map":"interpretationCode"}]},{"id":"Observation.referenceRange.age","path":"Observation.referenceRange.age","short":"Applicable age range, if relevant","definition":"The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.","requirements":"Some analytes vary greatly over age.","min":0,"max":"1","base":{"path":"Observation.referenceRange.age","min":0,"max":"1"},"type":[{"code":"Range"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"}]},{"id":"Observation.referenceRange.text","path":"Observation.referenceRange.text","short":"Text based reference range in an observation","definition":"Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".","min":0,"max":"1","base":{"path":"Observation.referenceRange.text","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:ST"}]},{"id":"Observation.hasMember","path":"Observation.hasMember","short":"Related resource that belongs to the Observation group","definition":"This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.","comment":"When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/R4/questionnaireresponse.html) into a final score and represent the score as an Observation.","min":0,"max":"*","base":{"path":"Observation.hasMember","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1","http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"Relationships established by OBX-4 usage"},{"identity":"rim","map":"outBoundRelationship"}]},{"id":"Observation.derivedFrom","path":"Observation.derivedFrom","short":"Related measurements the observation is made from","definition":"The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.","comment":"All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below.","min":0,"max":"*","base":{"path":"Observation.derivedFrom","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1","http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1","http://hl7.org/fhir/StructureDefinition/Media|4.0.1","http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1","http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"Relationships established by OBX-4 usage"},{"identity":"rim","map":".targetObservation"}]},{"id":"Observation.component","path":"Observation.component","short":"Component results","definition":"Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.","comment":"For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.","min":0,"max":"*","base":{"path":"Observation.component","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"containment by OBX-4?"},{"identity":"rim","map":"outBoundRelationship[typeCode=COMP]"}]},{"id":"Observation.component.id","path":"Observation.component.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component.extension","path":"Observation.component.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component.modifierExtension","path":"Observation.component.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.component.code","path":"Observation.component.code","short":"Type of component observation (code / type)","definition":"Describes what was observed. Sometimes this is called the observation \"code\".","comment":"*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.","requirements":"Knowing what kind of observation is being made is essential to understanding the observation.","min":1,"max":"1","base":{"path":"Observation.component.code","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCode"}],"strength":"example","description":"Codes identifying names of simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-codes|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"sct-concept","map":"< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"code"}]},{"id":"Observation.component.value[x]","path":"Observation.component.value[x]","short":"Actual component result","definition":"The information determined as a result of making the observation, if the information has a simple value.","comment":"Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.","min":0,"max":"1","base":{"path":"Observation.component.value[x]","min":0,"max":"1"},"type":[{"code":"Quantity"},{"code":"CodeableConcept"},{"code":"string"},{"code":"boolean"},{"code":"integer"},{"code":"Range"},{"code":"Ratio"},{"code":"SampledData"},{"code":"time"},{"code":"dateTime"},{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"363714003 |Interprets| < 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.component.dataAbsentReason","path":"Observation.component.dataAbsentReason","short":"Why the component result is missing","definition":"Provides a reason why the expected value in the element Observation.component.value[x] is missing.","comment":"\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.","requirements":"For many results it is necessary to handle exceptional values in measurements.","min":0,"max":"1","base":{"path":"Observation.component.dataAbsentReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["obs-6"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationValueAbsentReason"}],"strength":"extensible","description":"Codes specifying why the result (`Observation.value[x]`) is missing.","valueSet":"http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1"},"mapping":[{"identity":"v2","map":"N/A"},{"identity":"rim","map":"value.nullFlavor"}]},{"id":"Observation.component.interpretation","path":"Observation.component.interpretation","short":"High, low, normal, etc.","definition":"A categorical assessment of an observation value. For example, high, low, normal.","comment":"Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.","requirements":"For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.","alias":["Abnormal Flag"],"min":0,"max":"*","base":{"path":"Observation.component.interpretation","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationInterpretation"}],"strength":"extensible","description":"Codes identifying interpretations of observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values|"},{"identity":"v2","map":"OBX-8"},{"identity":"rim","map":"interpretationCode"},{"identity":"sct-attr","map":"363713009 |Has interpretation|"}]},{"id":"Observation.component.referenceRange","path":"Observation.component.referenceRange","short":"Provides guide for interpretation of component result","definition":"Guidance on how to interpret the value by comparison to a normal or recommended range.","comment":"Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.","requirements":"Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.","min":0,"max":"*","base":{"path":"Observation.component.referenceRange","min":0,"max":"*"},"contentReference":"http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX.7"},{"identity":"rim","map":"outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"}]}]},"differential":{"element":[{"id":"Observation","path":"Observation"},{"id":"Observation.id","path":"Observation.id","min":1},{"id":"Observation.code","path":"Observation.code","short":"Manner of death","patternCodeableConcept":{"coding":[{"system":"http://loinc.org","code":"69449-7"}]}},{"id":"Observation.subject","path":"Observation.subject","min":1,"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}]},{"id":"Observation.value[x]","path":"Observation.value[x]","short":"Value representing the actual manner of death","min":1,"type":[{"code":"string"}]}]}},"SzEpisodeOfCare":{"resourceType":"StructureDefinition","id":"SzEpisodeOfCare","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEpisodeOfCare","version":"0.1.0","name":"EswatiniEncounter","title":"Eswatini Episode of Care","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Eswatini Episode of Care","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"}],"kind":"resource","abstract":false,"type":"EpisodeOfCare","baseDefinition":"http://hl7.org/fhir/StructureDefinition/EpisodeOfCare","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"EpisodeOfCare","path":"EpisodeOfCare","short":"Eswatini Episode of Care","definition":"An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time.","alias":["Case Program Problem"],"min":0,"max":"*","base":{"path":"EpisodeOfCare","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Event"},{"identity":"rim","map":"n/a"}]},{"id":"EpisodeOfCare.id","path":"EpisodeOfCare.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"EpisodeOfCare.meta","path":"EpisodeOfCare.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"EpisodeOfCare.implicitRules","path":"EpisodeOfCare.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"EpisodeOfCare.language","path":"EpisodeOfCare.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"EpisodeOfCare.text","path":"EpisodeOfCare.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"EpisodeOfCare.contained","path":"EpisodeOfCare.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"EpisodeOfCare.extension","path":"EpisodeOfCare.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"EpisodeOfCare.modifierExtension","path":"EpisodeOfCare.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"EpisodeOfCare.identifier","path":"EpisodeOfCare.identifier","short":"Business Identifier(s) relevant for this EpisodeOfCare","definition":"The EpisodeOfCare may be known by different identifiers for different contexts of use, such as when an external agency is tracking the Episode for funding purposes.","min":0,"max":"*","base":{"path":"EpisodeOfCare.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.identifier"},{"identity":"w5","map":"FiveWs.identifier"}]},{"id":"EpisodeOfCare.status","path":"EpisodeOfCare.status","short":"planned | waitlist | active | onhold | finished | cancelled | entered-in-error","definition":"planned | waitlist | active | onhold | finished | cancelled.","comment":"This element is labeled as a modifier because the status contains codes that mark the episode as not currently valid.","min":1,"max":"1","base":{"path":"EpisodeOfCare.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"EpisodeOfCareStatus"}],"strength":"required","description":"The status of the episode of care.","valueSet":"http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.status"},{"identity":"w5","map":"FiveWs.status"}]},{"id":"EpisodeOfCare.statusHistory","path":"EpisodeOfCare.statusHistory","short":"Past list of status codes (the current status may be included to cover the start date of the status)","definition":"The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource).","min":0,"max":"*","base":{"path":"EpisodeOfCare.statusHistory","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"EpisodeOfCare.statusHistory.id","path":"EpisodeOfCare.statusHistory.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"EpisodeOfCare.statusHistory.extension","path":"EpisodeOfCare.statusHistory.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"EpisodeOfCare.statusHistory.modifierExtension","path":"EpisodeOfCare.statusHistory.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"EpisodeOfCare.statusHistory.status","path":"EpisodeOfCare.statusHistory.status","short":"planned | waitlist | active | onhold | finished | cancelled | entered-in-error","definition":"planned | waitlist | active | onhold | finished | cancelled.","min":1,"max":"1","base":{"path":"EpisodeOfCare.statusHistory.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"EpisodeOfCareStatus"}],"strength":"required","description":"The status of the episode of care.","valueSet":"http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1"}},{"id":"EpisodeOfCare.statusHistory.period","path":"EpisodeOfCare.statusHistory.period","short":"Duration the EpisodeOfCare was in the specified status","definition":"The period during this EpisodeOfCare that the specific status applied.","min":1,"max":"1","base":{"path":"EpisodeOfCare.statusHistory.period","min":1,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"EpisodeOfCare.type","path":"EpisodeOfCare.type","short":"Episode of care classification","definition":"A classification of the type of episode of care e.g ART | TPT | Family Planning | ANC etc","comment":"The type can be very important in processing as this could be used in determining if the EpisodeOfCare is relevant to specific government reporting, or other types of classifications.","min":1,"max":"1","base":{"path":"EpisodeOfCare.type","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"binding":{"strength":"preferred","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEpisodeOfCareTypeVS"},"mapping":[{"identity":"workflow","map":"Event.code"},{"identity":"w5","map":"FiveWs.class"}]},{"id":"EpisodeOfCare.diagnosis","path":"EpisodeOfCare.diagnosis","short":"The list of diagnosis relevant to this episode of care","definition":"The list of diagnosis relevant to this episode of care.","min":0,"max":"*","base":{"path":"EpisodeOfCare.diagnosis","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"EpisodeOfCare.diagnosis.id","path":"EpisodeOfCare.diagnosis.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"EpisodeOfCare.diagnosis.extension","path":"EpisodeOfCare.diagnosis.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"EpisodeOfCare.diagnosis.modifierExtension","path":"EpisodeOfCare.diagnosis.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"EpisodeOfCare.diagnosis.condition","path":"EpisodeOfCare.diagnosis.condition","short":"Conditions/problems/diagnoses this episode of care is for","definition":"A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for.","min":1,"max":"1","base":{"path":"EpisodeOfCare.diagnosis.condition","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Condition|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.reasonReference"},{"identity":"w5","map":"FiveWs.what[x]"}]},{"id":"EpisodeOfCare.diagnosis.role","path":"EpisodeOfCare.diagnosis.role","short":"Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …)","definition":"Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …).","min":0,"max":"1","base":{"path":"EpisodeOfCare.diagnosis.role","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"DiagnosisRole"}],"strength":"preferred","description":"The type of diagnosis this condition represents.","valueSet":"http://hl7.org/fhir/ValueSet/diagnosis-role|4.0.1"}},{"id":"EpisodeOfCare.diagnosis.rank","path":"EpisodeOfCare.diagnosis.rank","short":"Ranking of the diagnosis (for each role type)","definition":"Ranking of the diagnosis (for each role type).","min":0,"max":"1","base":{"path":"EpisodeOfCare.diagnosis.rank","min":0,"max":"1"},"type":[{"code":"positiveInt"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"EpisodeOfCare.patient","path":"EpisodeOfCare.patient","short":"The patient who is the focus of this episode of care","definition":"The patient who is the focus of this episode of care.","min":1,"max":"1","base":{"path":"EpisodeOfCare.patient","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Patient|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.subject"},{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"EpisodeOfCare.managingOrganization","path":"EpisodeOfCare.managingOrganization","short":"Organization that assumes care","definition":"The organization that has assumed the specific responsibilities for the specified duration.","min":0,"max":"1","base":{"path":"EpisodeOfCare.managingOrganization","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.performer.actor"}]},{"id":"EpisodeOfCare.period","path":"EpisodeOfCare.period","short":"Start and end datest of the Episode of care","definition":"Time period at which the facility was responsible for the particular episode of care","min":1,"max":"1","base":{"path":"EpisodeOfCare.period","min":0,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.occurrence[x]"},{"identity":"w5","map":"FiveWs.init"}]},{"id":"EpisodeOfCare.referralRequest","path":"EpisodeOfCare.referralRequest","short":"Originating Referral Request(s)","definition":"Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals.","min":0,"max":"*","base":{"path":"EpisodeOfCare.referralRequest","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.basedOn"}]},{"id":"EpisodeOfCare.careManager","path":"EpisodeOfCare.careManager","short":"Care manager/care coordinator for the patient","definition":"The practitioner that is the care manager/care coordinator for this patient.","min":0,"max":"1","base":{"path":"EpisodeOfCare.careManager","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.performer.actor"}]},{"id":"EpisodeOfCare.team","path":"EpisodeOfCare.team","short":"Other practitioners facilitating this episode of care","definition":"The list of practitioners that may be facilitating this episode of care for specific purposes.","alias":["CareTeam"],"min":0,"max":"*","base":{"path":"EpisodeOfCare.team","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.performer.actor"}]},{"id":"EpisodeOfCare.account","path":"EpisodeOfCare.account","short":"The set of accounts that may be used for billing for this EpisodeOfCare","definition":"The set of accounts that may be used for billing for this EpisodeOfCare.","comment":"The billing system may choose to allocate billable items associated with the EpisodeOfCare to different referenced Accounts based on internal business rules.","min":0,"max":"*","base":{"path":"EpisodeOfCare.account","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Account|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false}]},"differential":{"element":[{"id":"EpisodeOfCare","path":"EpisodeOfCare","short":"Eswatini Episode of Care"},{"id":"EpisodeOfCare.id","path":"EpisodeOfCare.id","min":1},{"id":"EpisodeOfCare.type","path":"EpisodeOfCare.type","short":"Episode of care classification","definition":"A classification of the type of episode of care e.g ART | TPT | Family Planning | ANC etc","min":1,"max":"1","mustSupport":true,"binding":{"strength":"preferred","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEpisodeOfCareTypeVS"}},{"id":"EpisodeOfCare.period","path":"EpisodeOfCare.period","short":"Start and end datest of the Episode of care","definition":"Time period at which the facility was responsible for the particular episode of care","min":1}]}},"SzMedicationDispense":{"resourceType":"StructureDefinition","id":"SzMedicationDispense","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzMedicationDispense","version":"0.1.0","name":"EswatiniMedicationDispense","title":"Eswatini Medication Dispense Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Definition of Eswatinit Medication Dispense Profile","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"rx-dispense-rmim","uri":"http://www.hl7.org/v3/PORX_RM020070UV","name":"V3 Pharmacy Dispense RMIM"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"}],"kind":"resource","abstract":false,"type":"MedicationDispense","baseDefinition":"http://hl7.org/fhir/StructureDefinition/MedicationDispense","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"MedicationDispense","path":"MedicationDispense","short":"Dispensing a medication to a named patient","definition":"Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order.","min":0,"max":"*","base":{"path":"MedicationDispense","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"mdd-1","severity":"error","human":"whenHandedOver cannot be before whenPrepared","expression":"whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared","xpath":"not(exists(f:whenHandedOver/@value)) or not(exists(f:whenPrepared/@value)) or ( f:whenHandedOver/@value >= f:whenPrepared/@value)","source":"http://hl7.org/fhir/StructureDefinition/MedicationDispense"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Event"},{"identity":"rim","map":"Supply[moodCode=EVN]"}]},{"id":"MedicationDispense.id","path":"MedicationDispense.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"MedicationDispense.meta","path":"MedicationDispense.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"MedicationDispense.implicitRules","path":"MedicationDispense.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"MedicationDispense.language","path":"MedicationDispense.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"MedicationDispense.text","path":"MedicationDispense.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"MedicationDispense.contained","path":"MedicationDispense.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationDispense.extension","path":"MedicationDispense.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationDispense.modifierExtension","path":"MedicationDispense.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationDispense.identifier","path":"MedicationDispense.identifier","short":"External identifier","definition":"Identifiers associated with this Medication Dispense that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.","comment":"This is a business identifier, not a resource identifier.","min":0,"max":"*","base":{"path":"MedicationDispense.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"rim","map":".id"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationDispense.id"}]},{"id":"MedicationDispense.partOf","path":"MedicationDispense.partOf","short":"Event that dispense is part of","definition":"The procedure that trigger the dispense.","min":0,"max":"*","base":{"path":"MedicationDispense.partOf","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.partOf"},{"identity":"rim","map":".outboundRelationship[typeCode=COMP]/target[classCode=PROC,moodCode=EVN]"}]},{"id":"MedicationDispense.status","path":"MedicationDispense.status","short":"preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown","definition":"A code specifying the state of the set of dispense events.","comment":"This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.","min":1,"max":"1","base":{"path":"MedicationDispense.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationDispenseStatus"}],"strength":"required","description":"A coded concept specifying the state of the dispense event.","valueSet":"http://hl7.org/fhir/ValueSet/medicationdispense-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.status"},{"identity":"w5","map":"FiveWs.status"},{"identity":"rim","map":".statusCode"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationDispense.SupplyEvent.statusCode"}]},{"id":"MedicationDispense.statusReason[x]","path":"MedicationDispense.statusReason[x]","short":"Why a dispense was not performed","definition":"Indicates the reason why a dispense was not performed.","min":0,"max":"1","base":{"path":"MedicationDispense.statusReason[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"},{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/DetectedIssue|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationDispenseStatusReason"}],"strength":"example","description":"A code describing why a dispense was not performed.","valueSet":"http://hl7.org/fhir/ValueSet/medicationdispense-status-reason|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.statusReason"},{"identity":"rim","map":".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=\"not done reason\"].value"}]},{"id":"MedicationDispense.category","path":"MedicationDispense.category","short":"Type of medication dispense","definition":"Indicates the type of medication dispense (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).","comment":"The category can be used to include where the medication is expected to be consumed or other types of dispenses. Invariants can be used to bind to different value sets when profiling to bind.","min":0,"max":"1","base":{"path":"MedicationDispense.category","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationDispenseCategory"}],"strength":"preferred","description":"A code describing where the dispensed medication is expected to be consumed or administered.","valueSet":"http://hl7.org/fhir/ValueSet/medicationdispense-category|4.0.1"},"mapping":[{"identity":"rim","map":".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication dispense\"].value"}]},{"id":"MedicationDispense.medication[x]","path":"MedicationDispense.medication[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"closed"},"short":"What medication was supplied","definition":"Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.","comment":"If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the medication resource is recommended. For example, if you require form or lot number, then you must reference the Medication resource.","min":1,"max":"1","base":{"path":"MedicationDispense.medication[x]","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationCode"}],"strength":"example","description":"A coded concept identifying which substance or product can be dispensed.","valueSet":"http://hl7.org/fhir/ValueSet/medication-codes|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.code"},{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"v2","map":"RXD-2-Dispense/Give Code"},{"identity":"rim","map":".participation[typeCode=PRD].role"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationRequest.component1.AdministrationRequest.consumable"}]},{"id":"MedicationDispense.medication[x]:medicationCodeableConcept","path":"MedicationDispense.medication[x]","sliceName":"medicationCodeableConcept","short":"Supplied Medication","definition":"Details of the medication that is being dispensed","comment":"If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the medication resource is recommended. For example, if you require form or lot number, then you must reference the Medication resource.","min":1,"max":"1","base":{"path":"MedicationDispense.medication[x]","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationCode"}],"strength":"example","description":"A coded concept identifying which substance or product can be dispensed.","valueSet":"http://hl7.org/fhir/ValueSet/medication-codes|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.code"},{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"v2","map":"RXD-2-Dispense/Give Code"},{"identity":"rim","map":".participation[typeCode=PRD].role"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationRequest.component1.AdministrationRequest.consumable"}]},{"id":"MedicationDispense.subject","path":"MedicationDispense.subject","short":"Who the dispense is for","definition":"A link to a resource representing the person or the group to whom the medication will be given.","comment":"SubstanceAdministration->subject->Patient.","min":0,"max":"1","base":{"path":"MedicationDispense.subject","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/Group|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.subject"},{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"PID-3-Patient ID List"},{"identity":"rim","map":".participation[typeCode=SBJ].role[classCode=PAT]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"MedicationDispense.context","path":"MedicationDispense.context","short":"Encounter / Episode associated with event","definition":"The encounter or episode of care that establishes the context for this event.","min":0,"max":"1","base":{"path":"MedicationDispense.context","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1","http://hl7.org/fhir/StructureDefinition/EpisodeOfCare|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.context"},{"identity":"rim","map":".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=\"type of encounter or episode\"]"}]},{"id":"MedicationDispense.supportingInformation","path":"MedicationDispense.supportingInformation","short":"Information that supports the dispensing of the medication","definition":"Additional information that supports the medication being dispensed.","min":0,"max":"*","base":{"path":"MedicationDispense.supportingInformation","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"w5","map":"FiveWs.context"},{"identity":"rim","map":".outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]"}]},{"id":"MedicationDispense.performer","path":"MedicationDispense.performer","short":"Dispensing Practitioner","definition":"Practitioner responsible for the dispensation of the medication","min":0,"max":"*","base":{"path":"MedicationDispense.performer","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.performer"},{"identity":"rim","map":".participation[typeCode=PRF]"}]},{"id":"MedicationDispense.performer.id","path":"MedicationDispense.performer.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationDispense.performer.extension","path":"MedicationDispense.performer.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationDispense.performer.modifierExtension","path":"MedicationDispense.performer.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationDispense.performer.function","path":"MedicationDispense.performer.function","short":"Who performed the dispense and what they did","definition":"Distinguishes the type of performer in the dispense. For example, date enterer, packager, final checker.","requirements":"Allows disambiguation of the types of involvement of different performers.","min":0,"max":"1","base":{"path":"MedicationDispense.performer.function","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationDispensePerformerFunction"}],"strength":"example","description":"A code describing the role an individual played in dispensing a medication.","valueSet":"http://hl7.org/fhir/ValueSet/medicationdispense-performer-function|4.0.1"},"mapping":[{"identity":"rim","map":"participation[typeCode=PRF].functionCode"}]},{"id":"MedicationDispense.performer.actor","path":"MedicationDispense.performer.actor","short":"Individual who was performing","definition":"The device, practitioner, etc. who performed the action. It should be assumed that the actor is the dispenser of the medication.","min":1,"max":"1","base":{"path":"MedicationDispense.performer.actor","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.performer.actor"},{"identity":"rim","map":".role"}]},{"id":"MedicationDispense.location","path":"MedicationDispense.location","short":"Where the dispense occurred","definition":"The principal physical location where the dispense was performed.","min":1,"max":"1","base":{"path":"MedicationDispense.location","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".participation[typeCode=LOC].role"}]},{"id":"MedicationDispense.authorizingPrescription","path":"MedicationDispense.authorizingPrescription","short":"Medication order that authorizes the dispense","definition":"Indicates the medication order that is being dispensed against.","comment":"Maps to basedOn in Event logical model.","min":0,"max":"*","base":{"path":"MedicationDispense.authorizingPrescription","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.basedOn"},{"identity":"v2","map":"ORC-2 Placer Order Number"},{"identity":"rim","map":".outboundRelationship[typeCode=FLFS].target[moodCode=RQO]"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationDispense.inFulfillmentOf"}]},{"id":"MedicationDispense.type","path":"MedicationDispense.type","short":"Trial fill, partial fill, emergency fill, etc.","definition":"Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.","min":0,"max":"1","base":{"path":"MedicationDispense.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationDispenseType"}],"strength":"example","description":"Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.","valueSet":"http://terminology.hl7.org/ValueSet/v3-ActPharmacySupplyType"},"mapping":[{"identity":"v2","map":"RXD-33-Dispense Type"},{"identity":"rim","map":".code"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationDispense.SupplyEvent.code"}]},{"id":"MedicationDispense.quantity","path":"MedicationDispense.quantity","short":"Amount dispensed","definition":"The amount of medication that has been dispensed. Includes unit of measure.","min":1,"max":"1","base":{"path":"MedicationDispense.quantity","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system"},{"identity":"rim","map":".quantity"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationDispense.SupplyEvent.quantity"}]},{"id":"MedicationDispense.daysSupply","path":"MedicationDispense.daysSupply","short":"Amount of medication expressed as a timing amount","definition":"The amount of medication expressed as a timing amount.","min":0,"max":"1","base":{"path":"MedicationDispense.daysSupply","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"TQ1.6 Timing/Quantity Segment Service Duration.\rPrior to v2.5, ORC.7.3 Common Order Segment / Quantity/Timing / Duration component. This is a formatted string, first character for the time unit (e.g., D=days), followed by the value. For example, “D14” represents “14 days supply”\rFrom v2.5 on, TQ1.6 Timing/Quantity Segment / Service Duration. This is a CQ data type ( ^ ), thus for days supply, assuming the unit of measure is “days”, the numeric value is TQ1.6.1 (…|14^\rFor backwards compatibility, ORC.7 was permitted through v2.6. Both forms (field and segment) may be present in v2.5, v2.5.1, and v2.6"},{"identity":"rim","map":"effectiveUseTime"}]},{"id":"MedicationDispense.whenPrepared","path":"MedicationDispense.whenPrepared","short":"When product was packaged and reviewed","definition":"The time when the dispensed product was packaged and reviewed.","min":0,"max":"1","base":{"path":"MedicationDispense.whenPrepared","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"RXD-3-Date/Time Dispensed"},{"identity":"rim","map":".effectiveTime[xmi:type=IVL_TS].low"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationDispense.SupplyEvent.effectiveTime"}]},{"id":"MedicationDispense.whenHandedOver","path":"MedicationDispense.whenHandedOver","short":"When product was given out","definition":"The time the dispensed product was provided to the patient or their representative.","min":0,"max":"1","base":{"path":"MedicationDispense.whenHandedOver","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.occurrence[x]"},{"identity":"v2","map":"RXD-3-Date/Time Dispensed"},{"identity":"rim","map":".effectiveTime[xmi:type=IVL_TS].high"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationDispense.SupplyEvent.effectiveTime"}]},{"id":"MedicationDispense.destination","path":"MedicationDispense.destination","short":"Where the medication was sent","definition":"Identification of the facility/location where the medication was shipped to, as part of the dispense event.","min":0,"max":"1","base":{"path":"MedicationDispense.destination","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Location|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"RXD-13 Dispense-to Location; RXD-30 Dispense to Pharmacy; RXD-31 Dispense to Pharmacy Address"},{"identity":"rim","map":".participation[typeCode=DST].role"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationDispense.SupplyEvent.destination"}]},{"id":"MedicationDispense.receiver","path":"MedicationDispense.receiver","short":"Who collected the medication","definition":"Identifies the person who picked up the medication. This will usually be a patient or their caregiver, but some cases exist where it can be a healthcare professional.","min":0,"max":"*","base":{"path":"MedicationDispense.receiver","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".participation[typeCode=RCV].role"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationDispense.SupplyEvent.receiver"}]},{"id":"MedicationDispense.note","path":"MedicationDispense.note","short":"Information about the dispense","definition":"Extra information about the dispense that could not be conveyed in the other attributes.","min":0,"max":"*","base":{"path":"MedicationDispense.note","min":0,"max":"*"},"type":[{"code":"Annotation"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.note"},{"identity":"v2","map":"RXD-9 Dispense Notes"},{"identity":"rim","map":".inboundRelationship[typeCode=SUBJ]/source[classCode=ACT,moodCode=EVN]"}]},{"id":"MedicationDispense.dosageInstruction","path":"MedicationDispense.dosageInstruction","short":"How the medication is to be used by the patient or administered by the caregiver","definition":"Indicates how the medication is to be used by the patient.","comment":"When the dose or rate is intended to change over the entire administration period (e.g. Tapering dose prescriptions), multiple instances of dosage instructions will need to be supplied to convey the different doses/rates.\rThe pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed.","min":0,"max":"*","base":{"path":"MedicationDispense.dosageInstruction","min":0,"max":"*"},"type":[{"code":"Dosage"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]"}]},{"id":"MedicationDispense.substitution","path":"MedicationDispense.substitution","short":"Whether a substitution was performed on the dispense","definition":"Indicates whether or not substitution was made as part of the dispense. In some cases, substitution will be expected but does not happen, in other cases substitution is not expected but does happen. This block explains what substitution did or did not happen and why. If nothing is specified, substitution was not done.","min":0,"max":"1","base":{"path":"MedicationDispense.substitution","min":0,"max":"1"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".outboundRelationship[typeCode=COMP].target[classCode=SUBST, moodCode=EVN]"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationDispense.substitutionMade"}]},{"id":"MedicationDispense.substitution.id","path":"MedicationDispense.substitution.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationDispense.substitution.extension","path":"MedicationDispense.substitution.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationDispense.substitution.modifierExtension","path":"MedicationDispense.substitution.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationDispense.substitution.wasSubstituted","path":"MedicationDispense.substitution.wasSubstituted","short":"Whether a substitution was or was not performed on the dispense","definition":"True if the dispenser dispensed a different drug or product from what was prescribed.","min":1,"max":"1","base":{"path":"MedicationDispense.substitution.wasSubstituted","min":1,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".actionNegationInd"}]},{"id":"MedicationDispense.substitution.type","path":"MedicationDispense.substitution.type","short":"Code signifying whether a different drug was dispensed from what was prescribed","definition":"A code signifying whether a different drug was dispensed from what was prescribed.","min":0,"max":"1","base":{"path":"MedicationDispense.substitution.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationIntendedSubstitutionType"}],"strength":"example","description":"A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription.","valueSet":"http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode"},"mapping":[{"identity":"v2","map":"RXO-9-Allow Substitutions / RXE-9-Substitution Status"},{"identity":"rim","map":".code"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationDispense.substitutionMade.code"}]},{"id":"MedicationDispense.substitution.reason","path":"MedicationDispense.substitution.reason","short":"Why was substitution made","definition":"Indicates the reason for the substitution (or lack of substitution) from what was prescribed.","min":0,"max":"*","base":{"path":"MedicationDispense.substitution.reason","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationIntendedSubstitutionReason"}],"strength":"example","description":"A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.","valueSet":"http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason"},"mapping":[{"identity":"rim","map":".reasonCode"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationDispense.substitutionMade.reasonCode"}]},{"id":"MedicationDispense.substitution.responsibleParty","path":"MedicationDispense.substitution.responsibleParty","short":"Who is responsible for the substitution","definition":"The person or organization that has primary responsibility for the substitution.","min":0,"max":"*","base":{"path":"MedicationDispense.substitution.responsibleParty","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".participation[typeCode=PFM].role[classCode=ASSIGN]"},{"identity":"rx-dispense-rmim","map":"CombinedMedicationDispense.substitutionMade.ResponsibleParty"}]},{"id":"MedicationDispense.detectedIssue","path":"MedicationDispense.detectedIssue","short":"Clinical issue with action","definition":"Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. drug-drug interaction, duplicate therapy, dosage alert etc.","comment":"This element can include a detected issue that has been identified either by a decision support system or by a clinician and may include information on the steps that were taken to address the issue.","alias":["Contraindication","Drug Utilization Review (DUR)","Alert"],"min":0,"max":"*","base":{"path":"MedicationDispense.detectedIssue","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/DetectedIssue|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value"}]},{"id":"MedicationDispense.eventHistory","path":"MedicationDispense.eventHistory","short":"A list of relevant lifecycle events","definition":"A summary of the events of interest that have occurred, such as when the dispense was verified.","comment":"This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).","min":0,"max":"*","base":{"path":"MedicationDispense.eventHistory","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Provenance|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]"}]}]},"differential":{"element":[{"id":"MedicationDispense","path":"MedicationDispense"},{"id":"MedicationDispense.id","path":"MedicationDispense.id","min":1},{"id":"MedicationDispense.medication[x]","path":"MedicationDispense.medication[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"open"}},{"id":"MedicationDispense.medication[x]:medicationCodeableConcept","path":"MedicationDispense.medication[x]","sliceName":"medicationCodeableConcept","short":"Supplied Medication","definition":"Details of the medication that is being dispensed","min":1,"max":"1","type":[{"code":"CodeableConcept"}],"mustSupport":true},{"id":"MedicationDispense.performer","path":"MedicationDispense.performer","short":"Dispensing Practitioner","definition":"Practitioner responsible for the dispensation of the medication"},{"id":"MedicationDispense.performer.actor","path":"MedicationDispense.performer.actor","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner"]}]},{"id":"MedicationDispense.location","path":"MedicationDispense.location","min":1,"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation"]}]},{"id":"MedicationDispense.quantity","path":"MedicationDispense.quantity","min":1,"mustSupport":true}]}},"SzAppointment":{"resourceType":"StructureDefinition","id":"SzAppointment","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAppointment","version":"0.1.0","name":"EswatiniAppointment","title":"Eswatini Appointment Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Definition of Eswatini Appointment Profile","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"ical","uri":"http://ietf.org/rfc/2445","name":"iCalendar"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"}],"kind":"resource","abstract":false,"type":"Appointment","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Appointment","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Appointment","path":"Appointment","short":"A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)","definition":"A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s).","min":0,"max":"*","base":{"path":"Appointment","min":0,"max":"*"},"constraint":[{"key":"app-2","severity":"error","human":"Either start and end are specified, or neither","expression":"start.exists() = end.exists()","xpath":"((exists(f:start) and exists(f:end)) or (not(exists(f:start)) and not(exists(f:end))))","source":"http://hl7.org/fhir/StructureDefinition/Appointment"},{"key":"app-3","severity":"error","human":"Only proposed or cancelled appointments can be missing start/end dates","expression":"(start.exists() and end.exists()) or (status in ('proposed' | 'cancelled' | 'waitlist'))","xpath":"((exists(f:start) and exists(f:end)) or (f:status/@value='proposed') or (f:status/@value='cancelled') or (f:status/@value='waitlist'))","source":"http://hl7.org/fhir/StructureDefinition/Appointment"},{"key":"app-4","severity":"error","human":"Cancelation reason is only used for appointments that have been cancelled, or no-show","expression":"Appointment.cancelationReason.exists() implies (Appointment.status='no-show' or Appointment.status='cancelled')","xpath":"not(exists(f:cancellationReason)) or f:status/@value=('no-show', 'cancelled')","source":"http://hl7.org/fhir/StructureDefinition/Appointment"},{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Request"},{"identity":"rim","map":"Act[@moodCode <= 'INT']"},{"identity":"ical","map":"VEVENT"}]},{"id":"Appointment.id","path":"Appointment.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Appointment.meta","path":"Appointment.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"Appointment.implicitRules","path":"Appointment.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Appointment.language","path":"Appointment.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Appointment.text","path":"Appointment.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Appointment.contained","path":"Appointment.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Appointment.extension","path":"Appointment.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Appointment.modifierExtension","path":"Appointment.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Appointment.identifier","path":"Appointment.identifier","short":"External Ids for this item","definition":"This records identifiers associated with this appointment concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).","min":0,"max":"*","base":{"path":"Appointment.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"SCH-1, SCH-2, ARQ-1, ARQ-2"},{"identity":"rim","map":".id"},{"identity":"ical","map":"UID"}]},{"id":"Appointment.status","path":"Appointment.status","short":"proposed | pending | booked | arrived | fulfilled | cancelled | noshow | entered-in-error | checked-in | waitlist","definition":"The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.","comment":"If the Appointment's status is \"cancelled\" then all participants are expected to have their calendars released for the appointment period, and as such any Slots that were marked as BUSY can be re-set to FREE.\n\nThis element is labeled as a modifier because the status contains the code entered-in-error that mark the Appointment as not currently valid.","min":1,"max":"1","base":{"path":"Appointment.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"AppointmentStatus"}],"strength":"required","description":"The free/busy status of an appointment.","valueSet":"http://hl7.org/fhir/ValueSet/appointmentstatus|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.status"},{"identity":"w5","map":"FiveWs.status"},{"identity":"v2","map":"SCH-25"},{"identity":"rim","map":".statusCode"},{"identity":"ical","map":"STATUS"}]},{"id":"Appointment.cancelationReason","path":"Appointment.cancelationReason","short":"The coded reason for the appointment being cancelled","definition":"The coded reason for the appointment being cancelled. This is often used in reporting/billing/futher processing to determine if further actions are required, or specific fees apply.","min":0,"max":"1","base":{"path":"Appointment.cancelationReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"cancelation-reason"}],"strength":"example","valueSet":"http://hl7.org/fhir/ValueSet/appointment-cancellation-reason|4.0.1"},"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Appointment.serviceCategory","path":"Appointment.serviceCategory","short":"A broad categorization of the service that is to be performed during this appointment","definition":"A broad categorization of the service that is to be performed during this appointment.","min":0,"max":"*","base":{"path":"Appointment.serviceCategory","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"service-category"}],"strength":"example","valueSet":"http://hl7.org/fhir/ValueSet/service-category|4.0.1"},"mapping":[{"identity":"rim","map":"n/a, might be inferred from the ServiceDeliveryLocation"},{"identity":"ical","map":"CATEGORIES"}]},{"id":"Appointment.serviceType","path":"Appointment.serviceType","short":"The specific service that is to be performed during this appointment","definition":"The specific service that is to be performed during this appointment.","comment":"For a provider to provider appointment the code \"FOLLOWUP\" may be appropriate, as this is expected to be discussing some patient that was seen in the past.","min":0,"max":"*","base":{"path":"Appointment.serviceType","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"service-type"}],"strength":"example","valueSet":"http://hl7.org/fhir/ValueSet/service-type|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.code"},{"identity":"rim","map":"n/a, might be inferred from the ServiceDeliveryLocation"}]},{"id":"Appointment.specialty","path":"Appointment.specialty","short":"The specialty of a practitioner that would be required to perform the service requested in this appointment","definition":"The specialty of a practitioner that would be required to perform the service requested in this appointment.","min":0,"max":"*","base":{"path":"Appointment.specialty","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"specialty"}],"strength":"preferred","valueSet":"http://hl7.org/fhir/ValueSet/c80-practice-codes|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".performer.AssignedPerson.code"}]},{"id":"Appointment.appointmentType","path":"Appointment.appointmentType","short":"The style of appointment or patient that has been booked in the slot (not service type)","definition":"The style of appointment or patient that has been booked in the slot (not service type).","min":0,"max":"1","base":{"path":"Appointment.appointmentType","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"appointment-type"}],"strength":"preferred","valueSet":"http://terminology.hl7.org/ValueSet/v2-0276"},"mapping":[{"identity":"v2","map":"ARQ-7"},{"identity":"rim","map":".code"},{"identity":"ical","map":"CLASSIFICATION"}]},{"id":"Appointment.reasonCode","path":"Appointment.reasonCode","short":"Coded reason this appointment is scheduled","definition":"The coded reason that this appointment is being scheduled. This is more clinical than administrative.","min":0,"max":"*","base":{"path":"Appointment.reasonCode","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ApptReason"}],"strength":"preferred","description":"The Reason for the appointment to take place.","valueSet":"http://hl7.org/fhir/ValueSet/encounter-reason|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.reasonCode"},{"identity":"v2","map":"AIS-3, SCH-7"},{"identity":"rim","map":".reasonCode"}]},{"id":"Appointment.reasonReference","path":"Appointment.reasonReference","short":"Reason the appointment is to take place (resource)","definition":"Reason the appointment has been scheduled to take place, as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.","min":0,"max":"*","base":{"path":"Appointment.reasonReference","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Condition|4.0.1","http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1","http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.reasonReference"},{"identity":"rim","map":".inboundRelationship[@typeCode = 'RSON'].observation"}]},{"id":"Appointment.priority","path":"Appointment.priority","short":"Used to make informed decisions if needing to re-prioritize","definition":"The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).","comment":"Seeking implementer feedback on this property and how interoperable it is.\r\rUsing an extension to record a CodeableConcept for named values may be tested at a future connectathon.","min":0,"max":"1","base":{"path":"Appointment.priority","min":0,"max":"1"},"type":[{"code":"unsignedInt"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.priority"},{"identity":"w5","map":"FiveWs.class"},{"identity":"v2","map":"ARQ-12, SCH-11.6 / TQ1-9"},{"identity":"rim","map":".priorityCode"},{"identity":"ical","map":"PRIORITY"}]},{"id":"Appointment.description","path":"Appointment.description","short":"Shown on a subject line in a meeting request, or appointment list","definition":"The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.","min":0,"max":"1","base":{"path":"Appointment.description","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"NTE-3"},{"identity":"rim","map":".text"},{"identity":"ical","map":"SUMMARY"}]},{"id":"Appointment.supportingInformation","path":"Appointment.supportingInformation","short":"Additional information to support the appointment","definition":"Additional information to support the appointment provided when making the appointment.","min":0,"max":"*","base":{"path":"Appointment.supportingInformation","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.supportingInfo"},{"identity":"w5","map":"FiveWs.context"},{"identity":"rim","map":".inboundRelationship[@typeCode = 'SPRT'].observation"},{"identity":"ical","map":"ATTACH"}]},{"id":"Appointment.start","path":"Appointment.start","short":"When appointment is to take place","definition":"Date/Time that the appointment is to take place.","min":1,"max":"1","base":{"path":"Appointment.start","min":0,"max":"1"},"type":[{"code":"instant"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.occurrence[x]"},{"identity":"w5","map":"FiveWs.init"},{"identity":"v2","map":"ARQ-11.1, SCH-11.4 / TQ1-7"},{"identity":"rim","map":".effectiveTime.low"},{"identity":"ical","map":"DTSTART"}]},{"id":"Appointment.end","path":"Appointment.end","short":"When appointment is to conclude","definition":"Date/Time that the appointment is to conclude.","min":1,"max":"1","base":{"path":"Appointment.end","min":0,"max":"1"},"type":[{"code":"instant"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.occurrence[x]"},{"identity":"w5","map":"FiveWs.done[x]"},{"identity":"v2","map":"SCH-11.5 / TQ1-8/ calculated based on the start and the duration which is in ARQ-9"},{"identity":"rim","map":".effectiveTime.high"},{"identity":"ical","map":"DTEND"}]},{"id":"Appointment.minutesDuration","path":"Appointment.minutesDuration","short":"Can be less than start/end (e.g. estimate)","definition":"Number of minutes that the appointment is to take. This can be less than the duration between the start and end times. For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work. Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end.","min":0,"max":"1","base":{"path":"Appointment.minutesDuration","min":0,"max":"1"},"type":[{"code":"positiveInt"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.occurrence[x]"},{"identity":"rim","map":".activityTime[@xsi:type = ('SXPR_TS', 'PIVL_TS')].width"},{"identity":"ical","map":"DURATION (e.g. PT15M)"}]},{"id":"Appointment.slot","path":"Appointment.slot","short":"The slots that this appointment is filling","definition":"The slots from the participants' schedules that will be filled by the appointment.","min":0,"max":"*","base":{"path":"Appointment.slot","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Slot|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".outboundRelationship[@typeCode = 'REFR'].act[@classCode = 'ACT'][@moodCode = 'SLOT']"}]},{"id":"Appointment.created","path":"Appointment.created","short":"The date that this appointment was initially created","definition":"The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.","comment":"This property is required for many use cases where the age of an appointment is considered in processing workflows for scheduling and billing of appointments.","min":1,"max":"1","base":{"path":"Appointment.created","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.authoredOn"},{"identity":"rim","map":".author.time"},{"identity":"ical","map":"CREATED"}]},{"id":"Appointment.comment","path":"Appointment.comment","short":"Additional comments","definition":"Additional comments about the appointment.","comment":"Additional text to aid in facilitating the appointment. For instance, a comment might be, \"patient should proceed immediately to infusion room upon arrival\"\r\rWhere this is a planned appointment and the start/end dates are not set then this field can be used to provide additional guidance on the details of the appointment request, including any restrictions on when to book it.","min":0,"max":"1","base":{"path":"Appointment.comment","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.note"},{"identity":"v2","map":"NTE-3"},{"identity":"rim","map":".subjectOf.observation[@moodCode = 'EVN'][code = 'annotation'].value"},{"identity":"ical","map":"DESCRIPTION (for internal use)"}]},{"id":"Appointment.patientInstruction","path":"Appointment.patientInstruction","short":"Detailed information and instructions for the patient","definition":"While Appointment.comment contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before).","min":0,"max":"1","base":{"path":"Appointment.patientInstruction","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"NTE-3"},{"identity":"rim","map":".subjectOf.observation[@moodCode = 'EVN'][code = 'annotation'].value"},{"identity":"ical","map":"DESCRIPTION (for patient use)"}]},{"id":"Appointment.basedOn","path":"Appointment.basedOn","short":"The service request this appointment is allocated to assess","definition":"The service request this appointment is allocated to assess (e.g. incoming referral or procedure request).","alias":["incomingReferral"],"min":0,"max":"*","base":{"path":"Appointment.basedOn","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.basedOn"},{"identity":"rim","map":".outboundRelationship[@typeCode = 'FLFS'].act[@classCode < 'ActCareProvisionRequestType'][@moodCode = 'RQO']"}]},{"id":"Appointment.participant","path":"Appointment.participant","short":"Participants involved in appointment","definition":"List of participants involved in the appointment.","min":1,"max":"*","base":{"path":"Appointment.participant","min":1,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"app-1","severity":"error","human":"Either the type or actor on the participant SHALL be specified","expression":"type.exists() or actor.exists()","xpath":"(exists(f:type) or exists(f:actor))","source":"http://hl7.org/fhir/StructureDefinition/Appointment"},{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.performer, Request.subject"},{"identity":"v2","map":"PID, AIP, AIG, AIL"},{"identity":"rim","map":"performer | reusableDevice | subject | location"},{"identity":"ical","map":"ATTENDEE component to be created"}]},{"id":"Appointment.participant.id","path":"Appointment.participant.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Appointment.participant.extension","path":"Appointment.participant.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Appointment.participant.modifierExtension","path":"Appointment.participant.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Appointment.participant.type","path":"Appointment.participant.type","short":"Role of participant in the appointment","definition":"Role of participant in the appointment.","comment":"The role of the participant can be used to declare what the actor will be doing in the scope of this appointment.\r\rIf the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.\r\rThis value SHALL be the same when creating an AppointmentResponse so that they can be matched, and subsequently update the Appointment.","min":0,"max":"*","base":{"path":"Appointment.participant.type","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ParticipantType"}],"strength":"extensible","description":"Role of participant in encounter.","valueSet":"http://hl7.org/fhir/ValueSet/encounter-participant-type|4.0.1"},"mapping":[{"identity":"v2","map":"AIP-4, AIG-4"},{"identity":"rim","map":"(performer | reusableDevice | subject | location).@typeCode"},{"identity":"ical","map":"n/a"}]},{"id":"Appointment.participant.actor","path":"Appointment.participant.actor","short":"Person, Location/HealthcareService or Device","definition":"A Person, Location/HealthcareService or Device that is participating in the appointment.","min":1,"max":"1","base":{"path":"Appointment.participant.actor","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1","http://hl7.org/fhir/StructureDefinition/Device|4.0.1","http://hl7.org/fhir/StructureDefinition/HealthcareService|4.0.1","http://hl7.org/fhir/StructureDefinition/Location|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.who"},{"identity":"v2","map":"PID-3-Patient ID List | AIL-3 | AIG-3 | AIP-3"},{"identity":"rim","map":"performer.person | reusableDevice.manufacturedDevice | subject.patient | location.serviceDeliveryLocation"},{"identity":"ical","map":"ATTENDEE: (Need to provide the common name CN and also the MAILTO properties from the practitioner resource) where the participant type is not \"information-only\""}]},{"id":"Appointment.participant.required","path":"Appointment.participant.required","short":"required | optional | information-only","definition":"Whether this participant is required to be present at the meeting. This covers a use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.","min":0,"max":"1","base":{"path":"Appointment.participant.required","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ParticipantRequired"}],"strength":"required","description":"Is the Participant required to attend the appointment.","valueSet":"http://hl7.org/fhir/ValueSet/participantrequired|4.0.1"},"mapping":[{"identity":"rim","map":"(performer | reusableDevice | subject | location).@performInd"},{"identity":"ical","map":"ROLE=REQ-PARTICIPANT (roleparam)"}]},{"id":"Appointment.participant.status","path":"Appointment.participant.status","short":"accepted | declined | tentative | needs-action","definition":"Participation status of the actor.","min":1,"max":"1","base":{"path":"Appointment.participant.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ParticipationStatus"}],"strength":"required","description":"The Participation status of an appointment.","valueSet":"http://hl7.org/fhir/ValueSet/participationstatus|4.0.1"},"mapping":[{"identity":"v2","map":"AIP-12, AIG-14"},{"identity":"rim","map":"(performer | reusableDevice | subject | location).statusCode"},{"identity":"ical","map":"ATTENDEE;CN=\"John Doe\";RSVP=TRUE:mailto:john@doe.com (rsvpparam | partstatparam)"}]},{"id":"Appointment.participant.period","path":"Appointment.participant.period","short":"Participation period of the actor","definition":"Participation period of the actor.","min":0,"max":"1","base":{"path":"Appointment.participant.period","min":0,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Appointment.requestedPeriod","path":"Appointment.requestedPeriod","short":"Potential date/time interval(s) requested to allocate the appointment within","definition":"A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within.\n\nThe duration (usually in minutes) could also be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time. However, in other situations the duration may be calculated by the scheduling system.","comment":"This does not introduce a capacity for recurring appointments.","min":0,"max":"*","base":{"path":"Appointment.requestedPeriod","min":0,"max":"*"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.occurrence[x]"},{"identity":"v2","map":"ARQ-11"},{"identity":"rim","map":".activityTime[@xsi:type = ('SXPR_TS', 'PIVL_TS')]"}]}]},"differential":{"element":[{"id":"Appointment","path":"Appointment"},{"id":"Appointment.id","path":"Appointment.id","min":1},{"id":"Appointment.start","path":"Appointment.start","min":1},{"id":"Appointment.end","path":"Appointment.end","min":1},{"id":"Appointment.created","path":"Appointment.created","min":1},{"id":"Appointment.participant.actor","path":"Appointment.participant.actor","min":1}]}},"SzPractitioner":{"resourceType":"StructureDefinition","id":"SzPractitioner","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner","version":"0.1.0","name":"EswatiniPractitioner","title":"Eswatini Practitioner Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Definition of the FHRI Eswatini Practitioner resource","fhirVersion":"4.0.1","mapping":[{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"servd","uri":"http://www.omg.org/spec/ServD/1.0/","name":"ServD"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"}],"kind":"resource","abstract":false,"type":"Practitioner","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Practitioner","path":"Practitioner","short":"A person with a formal responsibility in the provisioning of healthcare or related services","definition":"A person who is directly or indirectly involved in the provisioning of healthcare.","min":0,"max":"*","base":{"path":"Practitioner","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"v2","map":"PRD (as one example)"},{"identity":"rim","map":"Role"},{"identity":"servd","map":"Provider"}]},{"id":"Practitioner.id","path":"Practitioner.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Practitioner.meta","path":"Practitioner.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true},{"id":"Practitioner.implicitRules","path":"Practitioner.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Practitioner.language","path":"Practitioner.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages|4.0.1"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Practitioner.text","path":"Practitioner.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Practitioner.contained","path":"Practitioner.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Practitioner.extension","path":"Practitioner.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Practitioner.modifierExtension","path":"Practitioner.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Practitioner.identifier","path":"Practitioner.identifier","short":"An identifier for the person as this agent","definition":"An identifier that applies to this person in this role.","requirements":"Often, specific identities are assigned for the agent.","min":0,"max":"*","base":{"path":"Practitioner.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"PRD-7 (or XCN.1)"},{"identity":"rim","map":"./id"},{"identity":"servd","map":"./Identifiers"}]},{"id":"Practitioner.active","path":"Practitioner.active","short":"Whether this practitioner's record is in active use","definition":"Whether this practitioner's record is in active use.","comment":"If the practitioner is not in use by one organization, then it should mark the period on the PractitonerRole with an end date (even if they are active) as they may be active in another role.","requirements":"Need to be able to mark a practitioner record as not to be used because it was created in error.","min":0,"max":"1","base":{"path":"Practitioner.active","min":0,"max":"1"},"type":[{"code":"boolean"}],"meaningWhenMissing":"This resource is generally assumed to be active if no value is provided for the active element","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.status"},{"identity":"rim","map":"./statusCode"}]},{"id":"Practitioner.name","path":"Practitioner.name","short":"Practitioner's name","definition":"Verified practitioner's name","comment":"The selection of the use property should ensure that there is a single usual name specified, and others use the nickname (alias), old, or other values as appropriate. \r\rIn general, select the value to be used in the ResourceReference.display based on this:\r\r1. There is more than 1 name\r2. Use = usual\r3. Period is current to the date of the usage\r4. Use = official\r5. Other order as decided by internal business rules.","requirements":"The name(s) that a Practitioner is known by. Where there are multiple, the name that the practitioner is usually known as should be used in the display.","min":1,"max":"1","base":{"path":"Practitioner.name","min":0,"max":"*"},"type":[{"code":"HumanName"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XCN Components"},{"identity":"rim","map":"./name"},{"identity":"servd","map":"./PreferredName (GivenNames, FamilyName, TitleCode)"}]},{"id":"Practitioner.name.id","path":"Practitioner.name.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Practitioner.name.extension","path":"Practitioner.name.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Practitioner.name.use","path":"Practitioner.name.use","short":"usual | official | temp | nickname | anonymous | old | maiden","definition":"Identifies the purpose for this name.","comment":"Applications can assume that a name is current unless it explicitly says that it is temporary or old.","requirements":"Allows the appropriate name for a particular context of use to be selected from among a set of names.","min":0,"max":"1","base":{"path":"HumanName.use","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old name etc.for a current/permanent one","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"NameUse"}],"strength":"required","description":"The use of a human name.","valueSet":"http://hl7.org/fhir/ValueSet/name-use|4.0.1"},"mapping":[{"identity":"v2","map":"XPN.7, but often indicated by which field contains the name"},{"identity":"rim","map":"unique(./use)"},{"identity":"servd","map":"./NamePurpose"}]},{"id":"Practitioner.name.text","path":"Practitioner.name.text","short":"Text representation of the full name","definition":"Specifies the entire name as it should be displayed e.g. on an application UI. This may be provided instead of or as well as the specific parts.","comment":"Can provide both a text representation and parts. Applications updating a name SHALL ensure that when both text and parts are present, no content is included in the text that isn't found in a part.","requirements":"A renderable, unencoded form.","min":0,"max":"1","base":{"path":"HumanName.text","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"implied by XPN.11"},{"identity":"rim","map":"./formatted"}]},{"id":"Practitioner.name.family","path":"Practitioner.name.family","short":"Family name (often called 'Surname')","definition":"Practitioner's family name","comment":"Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures).","alias":["surname"],"min":1,"max":"1","base":{"path":"HumanName.family","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XPN.1/FN.1"},{"identity":"rim","map":"./part[partType = FAM]"},{"identity":"servd","map":"./FamilyName"}]},{"id":"Practitioner.name.given","path":"Practitioner.name.given","short":"Practitioner's given name","definition":"Practitioner's given name","comment":"If only initials are recorded, they may be used in place of the full name parts. Initials may be separated into multiple given names but often aren't due to paractical limitations. This element is not called \"first name\" since given names do not always come first.","alias":["first name","middle name"],"min":1,"max":"*","base":{"path":"HumanName.given","min":0,"max":"*"},"type":[{"code":"string"}],"orderMeaning":"Given Names appear in the correct order for presenting the name","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XPN.2 + XPN.3"},{"identity":"rim","map":"./part[partType = GIV]"},{"identity":"servd","map":"./GivenNames"}]},{"id":"Practitioner.name.prefix","path":"Practitioner.name.prefix","short":"Parts that come before the name","definition":"Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.","min":0,"max":"*","base":{"path":"HumanName.prefix","min":0,"max":"*"},"type":[{"code":"string"}],"orderMeaning":"Prefixes appear in the correct order for presenting the name","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XPN.5"},{"identity":"rim","map":"./part[partType = PFX]"},{"identity":"servd","map":"./TitleCode"}]},{"id":"Practitioner.name.suffix","path":"Practitioner.name.suffix","short":"Parts that come after the name","definition":"Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.","min":0,"max":"*","base":{"path":"HumanName.suffix","min":0,"max":"*"},"type":[{"code":"string"}],"orderMeaning":"Suffixes appear in the correct order for presenting the name","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XPN/4"},{"identity":"rim","map":"./part[partType = SFX]"}]},{"id":"Practitioner.name.period","path":"Practitioner.name.period","short":"Time period when name was/is in use","definition":"Indicates the period of time when this name was valid for the named person.","requirements":"Allows names to be placed in historical context.","min":0,"max":"1","base":{"path":"HumanName.period","min":0,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XPN.13 + XPN.14"},{"identity":"rim","map":"./usablePeriod[type=\"IVL\"]"},{"identity":"servd","map":"./StartDate and ./EndDate"}]},{"id":"Practitioner.telecom","path":"Practitioner.telecom","short":"A contact detail for the practitioner (that apply to all roles)","definition":"A contact detail for the practitioner, e.g. a telephone number or an email address.","comment":"Person may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently and to help with identification. These typically will have home numbers, or mobile numbers that are not role specific.","requirements":"Need to know how to reach a practitioner independent to any roles the practitioner may have.","min":0,"max":"*","base":{"path":"Practitioner.telecom","min":0,"max":"*"},"type":[{"code":"ContactPoint"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"PRT-15, STF-10, ROL-12"},{"identity":"rim","map":"./telecom"},{"identity":"servd","map":"./ContactPoints"}]},{"id":"Practitioner.address","path":"Practitioner.address","short":"Address(es) of the practitioner that are not role specific (typically home address)","definition":"Address(es) of the practitioner that are not role specific (typically home address). \rWork addresses are not typically entered in this property as they are usually role dependent.","comment":"The PractitionerRole does not have an address value on it, as it is expected that the location property be used for this purpose (which has an address).","requirements":"The home/mailing address of the practitioner is often required for employee administration purposes, and also for some rostering services where the start point (practitioners home) can be used in calculations.","min":0,"max":"*","base":{"path":"Practitioner.address","min":0,"max":"*"},"type":[{"code":"Address"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"ORC-24, STF-11, ROL-11, PRT-14"},{"identity":"rim","map":"./addr"},{"identity":"servd","map":"./Addresses"}]},{"id":"Practitioner.gender","path":"Practitioner.gender","short":"Sex at birth: male | female | other | unknown","definition":"Identifier to determine the genetic, endocrine and morphological characteristics of the body at birth.","requirements":"Needed to address the person correctly.","min":1,"max":"1","base":{"path":"Practitioner.gender","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"AdministrativeGender"}],"strength":"required","description":"The gender of a person used for administrative purposes.","valueSet":"http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"},"mapping":[{"identity":"v2","map":"STF-5"},{"identity":"rim","map":"./administrativeGender"},{"identity":"servd","map":"./GenderCode"}]},{"id":"Practitioner.birthDate","path":"Practitioner.birthDate","short":"The date on which the practitioner was born","definition":"The date of birth for the practitioner.","requirements":"Needed for identification.","min":0,"max":"1","base":{"path":"Practitioner.birthDate","min":0,"max":"1"},"type":[{"code":"date"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"STF-6"},{"identity":"rim","map":"./birthTime"},{"identity":"servd","map":"(not represented in ServD)"}]},{"id":"Practitioner.photo","path":"Practitioner.photo","short":"Image of the person","definition":"Image of the person.","requirements":"Many EHR systems have the capability to capture an image of patients and personnel. Fits with newer social media usage too.","min":0,"max":"*","base":{"path":"Practitioner.photo","min":0,"max":"*"},"type":[{"code":"Attachment"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"./subjectOf/ObservationEvent[code=\"photo\"]/value"},{"identity":"servd","map":"./ImageURI (only supports the URI reference)"}]},{"id":"Practitioner.qualification","path":"Practitioner.qualification","short":"Certification, licenses, or training pertaining to the provision of care","definition":"The official certifications, training, and licenses that authorize or otherwise pertain to the provision of care by the practitioner. For example, a medical license issued by a medical board authorizing the practitioner to practice medicine within a certian locality.","min":0,"max":"*","base":{"path":"Practitioner.qualification","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"CER?"},{"identity":"rim","map":".playingEntity.playingRole[classCode=QUAL].code"},{"identity":"servd","map":"./Qualifications"}]},{"id":"Practitioner.qualification.id","path":"Practitioner.qualification.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Practitioner.qualification.extension","path":"Practitioner.qualification.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Practitioner.qualification.modifierExtension","path":"Practitioner.qualification.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Practitioner.qualification.identifier","path":"Practitioner.qualification.identifier","short":"An identifier for this qualification for the practitioner","definition":"An identifier that applies to this person's qualification in this role.","requirements":"Often, specific identities are assigned for the qualification.","min":0,"max":"*","base":{"path":"Practitioner.qualification.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".playingEntity.playingRole[classCode=QUAL].id"}]},{"id":"Practitioner.qualification.code","path":"Practitioner.qualification.code","short":"Coded representation of the qualification","definition":"Coded representation of the qualification.","min":1,"max":"1","base":{"path":"Practitioner.qualification.code","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Qualification"}],"strength":"example","description":"Specific qualification the practitioner has to provide a service.","valueSet":"http://terminology.hl7.org/ValueSet/v2-2.7-0360|0360"},"mapping":[{"identity":"rim","map":".playingEntity.playingRole[classCode=QUAL].code"},{"identity":"servd","map":"./Qualifications.Value"}]},{"id":"Practitioner.qualification.period","path":"Practitioner.qualification.period","short":"Period during which the qualification is valid","definition":"Period during which the qualification is valid.","requirements":"Qualifications are often for a limited period of time, and can be revoked.","min":0,"max":"1","base":{"path":"Practitioner.qualification.period","min":0,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".playingEntity.playingRole[classCode=QUAL].effectiveTime"},{"identity":"servd","map":"./Qualifications.StartDate and ./Qualifications.EndDate"}]},{"id":"Practitioner.qualification.issuer","path":"Practitioner.qualification.issuer","short":"Organization that regulates and issues the qualification","definition":"Organization that regulates and issues the qualification.","min":0,"max":"1","base":{"path":"Practitioner.qualification.issuer","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".playingEntity.playingRole[classCode=QUAL].scoper"}]},{"id":"Practitioner.communication","path":"Practitioner.communication","short":"A language the practitioner can use in patient communication","definition":"A language the practitioner can use in patient communication.","comment":"The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.","requirements":"Knowing which language a practitioner speaks can help in facilitating communication with patients.","min":0,"max":"*","base":{"path":"Practitioner.communication","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages|4.0.1"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"},"mapping":[{"identity":"v2","map":"PID-15, NK1-20, LAN-2"},{"identity":"rim","map":"./languageCommunication"},{"identity":"servd","map":"./Languages.LanguageSpokenCode"}]}]},"differential":{"element":[{"id":"Practitioner","path":"Practitioner"},{"id":"Practitioner.id","path":"Practitioner.id","min":1},{"id":"Practitioner.name","path":"Practitioner.name","short":"Practitioner's name","definition":"Verified practitioner's name","min":1,"max":"1","mustSupport":true},{"id":"Practitioner.name.family","path":"Practitioner.name.family","definition":"Practitioner's family name","min":1},{"id":"Practitioner.name.given","path":"Practitioner.name.given","short":"Practitioner's given name","definition":"Practitioner's given name","min":1},{"id":"Practitioner.gender","path":"Practitioner.gender","short":"Sex at birth: male | female | other | unknown","definition":"Identifier to determine the genetic, endocrine and morphological characteristics of the body at birth.","min":1}]}},"SzReferralRecipientExtension":{"resourceType":"StructureDefinition","id":"SzReferralRecipientExtension","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension","version":"0.1.0","name":"SzReferralRecipientExtension","title":"Extention: Eswatini Referral Recipient","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Extention for Eswatini Referral Recipient","fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Extension","path":"Extension","short":"Extention: Eswatini Referral Recipient","definition":"Extention for Eswatini Referral Recipient","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"open"},"short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":0,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"base64Binary"},{"code":"boolean"},{"code":"canonical"},{"code":"code"},{"code":"date"},{"code":"dateTime"},{"code":"decimal"},{"code":"id"},{"code":"instant"},{"code":"integer"},{"code":"markdown"},{"code":"oid"},{"code":"positiveInt"},{"code":"string"},{"code":"time"},{"code":"unsignedInt"},{"code":"uri"},{"code":"url"},{"code":"uuid"},{"code":"Address"},{"code":"Age"},{"code":"Annotation"},{"code":"Attachment"},{"code":"CodeableConcept"},{"code":"Coding"},{"code":"ContactPoint"},{"code":"Count"},{"code":"Distance"},{"code":"Duration"},{"code":"HumanName"},{"code":"Identifier"},{"code":"Money"},{"code":"Period"},{"code":"Quantity"},{"code":"Range"},{"code":"Ratio"},{"code":"Reference"},{"code":"SampledData"},{"code":"Signature"},{"code":"Timing"},{"code":"ContactDetail"},{"code":"Contributor"},{"code":"DataRequirement"},{"code":"Expression"},{"code":"ParameterDefinition"},{"code":"RelatedArtifact"},{"code":"TriggerDefinition"},{"code":"UsageContext"},{"code":"Dosage"},{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]:valueReference","path":"Extension.value[x]","sliceName":"valueReference","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":0,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization|0.1.0"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension","short":"Extention: Eswatini Referral Recipient","definition":"Extention for Eswatini Referral Recipient"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension"},{"id":"Extension.value[x]","path":"Extension.value[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"open"}},{"id":"Extension.value[x]:valueReference","path":"Extension.value[x]","sliceName":"valueReference","min":0,"max":"1","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization|0.1.0"]}]}]}},"SzCondition":{"resourceType":"StructureDefinition","id":"SzCondition","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzCondition","version":"0.1.0","name":"SzCondition","title":"Eswatini Condition Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Eswatini Condition Profile","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"sct-concept","uri":"http://snomed.info/conceptdomain","name":"SNOMED CT Concept Domain Binding"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"sct-attr","uri":"http://snomed.org/attributebinding","name":"SNOMED CT Attribute Binding"}],"kind":"resource","abstract":false,"type":"Condition","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Condition","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Condition","path":"Condition","short":"Detailed information about conditions, problems or diagnoses","definition":"A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern.","min":0,"max":"*","base":{"path":"Condition","min":0,"max":"*"},"constraint":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"Most systems will expect a clinicalStatus to be valued for problem-list-items that are managed over time, but might not need a clinicalStatus for point in time encounter-diagnosis."}],"key":"con-3","severity":"warning","human":"Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item","expression":"clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty()","xpath":"exists(f:clinicalStatus) or exists(f:verificationStatus/f:coding/f:code/@value='entered-in-error') or not(exists(category[@value='problem-list-item']))","source":"http://hl7.org/fhir/StructureDefinition/Condition"},{"key":"con-4","severity":"error","human":"If condition is abated, then clinicalStatus must be either inactive, resolved, or remission","expression":"abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists()","xpath":"not(exists(*[starts-with(local-name(.), 'abatement')])) or exists(f:clinicalStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-clinical' and f:code/@value=('resolved', 'remission', 'inactive')])","source":"http://hl7.org/fhir/StructureDefinition/Condition"},{"key":"con-5","severity":"error","human":"Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error","expression":"verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty()","xpath":"not(exists(f:verificationStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-ver-status' and f:code/@value='entered-in-error'])) or not(exists(f:clinicalStatus))","source":"http://hl7.org/fhir/StructureDefinition/Condition"},{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Event"},{"identity":"sct-concept","map":"< 243796009 |Situation with explicit context| : 246090004 |Associated finding| = ( ( < 404684003 |Clinical finding| MINUS ( << 420134006 |Propensity to adverse reactions| OR << 473010000 |Hypersensitivity condition| OR << 79899007 |Drug interaction| OR << 69449002 |Drug action| OR << 441742003 |Evaluation finding| OR << 307824009 |Administrative status| OR << 385356007 |Tumor stage finding|)) OR < 272379006 |Event|)"},{"identity":"v2","map":"PPR message"},{"identity":"rim","map":"Observation[classCode=OBS, moodCode=EVN, code=ASSERTION, value id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"Condition.implicitRules","path":"Condition.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Condition.language","path":"Condition.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Condition.text","path":"Condition.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Condition.contained","path":"Condition.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Condition.extension","path":"Condition.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Condition.modifierExtension","path":"Condition.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Condition.identifier","path":"Condition.identifier","short":"External Ids for this condition","definition":"Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server.","comment":"This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.","requirements":"Allows identification of the condition as it is known by various participating systems and in a way that remains consistent across servers.","min":0,"max":"*","base":{"path":"Condition.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"rim","map":".id"}]},{"id":"Condition.clinicalStatus","path":"Condition.clinicalStatus","short":"active | recurrence | relapse | inactive | remission | resolved","definition":"The clinical status of the condition.","comment":"The data type is CodeableConcept because clinicalStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.","min":0,"max":"1","base":{"path":"Condition.clinicalStatus","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["con-3","con-4","con-5"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the status contains codes that mark the condition as no longer active.","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ConditionClinicalStatus"}],"strength":"required","description":"The clinical status of the condition or diagnosis.","valueSet":"http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.status"},{"identity":"w5","map":"FiveWs.status"},{"identity":"sct-concept","map":"< 303105007 |Disease phases|"},{"identity":"v2","map":"PRB-14"},{"identity":"rim","map":"Observation ACT\n.inboundRelationship[typeCode=COMP].source[classCode=OBS, code=\"clinicalStatus\", moodCode=EVN].value"}]},{"id":"Condition.verificationStatus","path":"Condition.verificationStatus","short":"unconfirmed | provisional | differential | confirmed | refuted | entered-in-error","definition":"The verification status to support the clinical status of the condition.","comment":"verificationStatus is not required. For example, when a patient has abdominal pain in the ED, there is not likely going to be a verification status.\nThe data type is CodeableConcept because verificationStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity.","min":0,"max":"1","base":{"path":"Condition.verificationStatus","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["con-3","con-5"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the status contains the code refuted and entered-in-error that mark the Condition as not currently valid.","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ConditionVerificationStatus"}],"strength":"required","description":"The verification status to support or decline the clinical status of the condition or diagnosis.","valueSet":"http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.status"},{"identity":"w5","map":"FiveWs.status"},{"identity":"sct-concept","map":"< 410514004 |Finding context value|"},{"identity":"v2","map":"PRB-13"},{"identity":"rim","map":"Observation ACT\n.inboundRelationship[typeCode=COMP].source[classCode=OBS, code=\"verificationStatus\", moodCode=EVN].value"},{"identity":"sct-attr","map":"408729009"}]},{"id":"Condition.category","path":"Condition.category","short":"problem-list-item | encounter-diagnosis","definition":"A category assigned to the condition.","comment":"The categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts.","min":1,"max":"1","base":{"path":"Condition.category","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ConditionCategory"}],"strength":"extensible","description":"A category assigned to the condition.","valueSet":"http://hl7.org/fhir/ValueSet/condition-category|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"sct-concept","map":"< 404684003 |Clinical finding|"},{"identity":"v2","map":"'problem' if from PRB-3. 'diagnosis' if from DG1 segment in PV1 message"},{"identity":"rim","map":".code"}]},{"id":"Condition.severity","path":"Condition.severity","short":"Subjective severity of condition","definition":"A subjective assessment of the severity of the condition as evaluated by the clinician.","comment":"Coding of the severity with a terminology is preferred, where possible.","min":0,"max":"1","base":{"path":"Condition.severity","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ConditionSeverity"}],"strength":"preferred","description":"A subjective assessment of the severity of the condition as evaluated by the clinician.","valueSet":"http://hl7.org/fhir/ValueSet/condition-severity|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.grade"},{"identity":"sct-concept","map":"< 272141005 |Severities|"},{"identity":"v2","map":"PRB-26 / ABS-3"},{"identity":"rim","map":"Can be pre/post-coordinated into value. Or ./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"severity\"].value"},{"identity":"sct-attr","map":"246112005"}]},{"id":"Condition.code","path":"Condition.code","short":"Condition Identification","definition":"Details specifying the ICD 10 or 11 diagnosis recorded in this profile","requirements":"0..1 to account for primarily narrative only resources.","alias":["type"],"min":1,"max":"1","base":{"path":"Condition.code","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ConditionKind"}],"strength":"example","description":"Identification of the condition or diagnosis.","valueSet":"http://hl7.org/fhir/ValueSet/condition-code|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.code"},{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"sct-concept","map":"code 246090004 |Associated finding| (< 404684003 |Clinical finding| MINUS\n<< 420134006 |Propensity to adverse reactions| MINUS \n<< 473010000 |Hypersensitivity condition| MINUS \n<< 79899007 |Drug interaction| MINUS\n<< 69449002 |Drug action| MINUS \n<< 441742003 |Evaluation finding| MINUS \n<< 307824009 |Administrative status| MINUS \n<< 385356007 |Tumor stage finding|) \nOR < 413350009 |Finding with explicit context|\nOR < 272379006 |Event|"},{"identity":"v2","map":"PRB-3"},{"identity":"rim","map":".value"},{"identity":"sct-attr","map":"246090004"}]},{"id":"Condition.bodySite","path":"Condition.bodySite","short":"Anatomical location, if relevant","definition":"The anatomical location where this condition manifests itself.","comment":"Only used if not implicit in code found in Condition.code. If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](http://hl7.org/fhir/R4/extension-bodysite.html). May be a summary code, or a reference to a very precise definition of the location, or both.","min":0,"max":"*","base":{"path":"Condition.bodySite","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"BodySite"}],"strength":"example","description":"Codes describing anatomical locations. May include laterality.","valueSet":"http://hl7.org/fhir/ValueSet/body-site|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 442083009 |Anatomical or acquired body structure|"},{"identity":"rim","map":".targetBodySiteCode"},{"identity":"sct-attr","map":"363698007"}]},{"id":"Condition.subject","path":"Condition.subject","short":"Who has the condition?","definition":"Indicates the patient or group who the condition record is associated with.","requirements":"Group is typically used for veterinary or public health use cases.","alias":["patient"],"min":1,"max":"1","base":{"path":"Condition.subject","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/Group|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.subject"},{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"PID-3"},{"identity":"rim","map":".participation[typeCode=SBJ].role[classCode=PAT]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Condition.encounter","path":"Condition.encounter","short":"Encounter created as part of","definition":"The Encounter during which this Condition was created or to which the creation of this record is tightly associated.","comment":"This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. This record indicates the encounter this particular record is associated with. In the case of a \"new\" diagnosis reflecting ongoing/revised information about the condition, this might be distinct from the first encounter in which the underlying condition was first \"known\".","min":1,"max":"1","base":{"path":"Condition.encounter","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.context"},{"identity":"w5","map":"FiveWs.context"},{"identity":"v2","map":"PV1-19 (+PV1-54)"},{"identity":"rim","map":".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"}]},{"id":"Condition.onset[x]","path":"Condition.onset[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"closed"},"short":"Estimated or actual date, date-time, or age","definition":"Estimated or actual date or date-time the condition began, in the opinion of the clinician.","comment":"Age is generally used when the patient reports an age at which the Condition began to occur.","min":1,"max":"1","base":{"path":"Condition.onset[x]","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.occurrence[x]"},{"identity":"w5","map":"FiveWs.init"},{"identity":"v2","map":"PRB-16"},{"identity":"rim","map":".effectiveTime.low or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at onset\"].value"}]},{"id":"Condition.onset[x]:onsetDateTime","path":"Condition.onset[x]","sliceName":"onsetDateTime","short":"Diagnosis date","definition":"Date at which the client was diagnosed with the condition","comment":"Age is generally used when the patient reports an age at which the Condition began to occur.","min":1,"max":"1","base":{"path":"Condition.onset[x]","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.occurrence[x]"},{"identity":"w5","map":"FiveWs.init"},{"identity":"v2","map":"PRB-16"},{"identity":"rim","map":".effectiveTime.low or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at onset\"].value"}]},{"id":"Condition.abatement[x]","path":"Condition.abatement[x]","short":"When in resolution/remission","definition":"The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.","comment":"There is no explicit distinction between resolution and remission because in many cases the distinction is not clear. Age is generally used when the patient reports an age at which the Condition abated. If there is no abatement element, it is unknown whether the condition has resolved or entered remission; applications and users should generally assume that the condition is still valid. When abatementString exists, it implies the condition is abated.","min":0,"max":"1","base":{"path":"Condition.abatement[x]","min":0,"max":"1"},"type":[{"code":"dateTime"},{"code":"Age"},{"code":"Period"},{"code":"Range"},{"code":"string"}],"condition":["con-4"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"w5","map":"FiveWs.done[x]"},{"identity":"rim","map":".effectiveTime.high or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at remission\"].value or .inboundRelationship[typeCode=SUBJ]source[classCode=CONC, moodCode=EVN].status=completed"}]},{"id":"Condition.recordedDate","path":"Condition.recordedDate","short":"Date record was first recorded","definition":"The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date.","min":1,"max":"1","base":{"path":"Condition.recordedDate","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.recorded"},{"identity":"v2","map":"REL-11"},{"identity":"rim","map":".participation[typeCode=AUT].time"}]},{"id":"Condition.recorder","path":"Condition.recorder","short":"Who recorded the condition","definition":"Individual who recorded the record and takes responsibility for its content.","min":0,"max":"1","base":{"path":"Condition.recorder","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1","http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.author"},{"identity":"rim","map":".participation[typeCode=AUT].role"}]},{"id":"Condition.asserter","path":"Condition.asserter","short":"Person who asserts this condition","definition":"Individual who is making the condition statement.","min":0,"max":"1","base":{"path":"Condition.asserter","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1","http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.source"},{"identity":"v2","map":"REL-7.1 identifier + REL-7.12 type code"},{"identity":"rim","map":".participation[typeCode=INF].role"}]},{"id":"Condition.stage","path":"Condition.stage","short":"Stage/grade, usually assessed formally","definition":"Clinical stage or grade of a condition. May include formal severity assessments.","min":0,"max":"*","base":{"path":"Condition.stage","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"con-1","severity":"error","human":"Stage SHALL have summary or assessment","expression":"summary.exists() or assessment.exists()","xpath":"exists(f:summary) or exists(f:assessment)","source":"http://hl7.org/fhir/StructureDefinition/Condition"},{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"stage/grade\"]"}]},{"id":"Condition.stage.id","path":"Condition.stage.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Condition.stage.extension","path":"Condition.stage.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Condition.stage.modifierExtension","path":"Condition.stage.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Condition.stage.summary","path":"Condition.stage.summary","short":"Simple summary (disease specific)","definition":"A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific.","min":0,"max":"1","base":{"path":"Condition.stage.summary","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["con-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ConditionStage"}],"strength":"example","description":"Codes describing condition stages (e.g. Cancer stages).","valueSet":"http://hl7.org/fhir/ValueSet/condition-stage|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 254291000 |Staging and scales|"},{"identity":"v2","map":"PRB-14"},{"identity":"rim","map":".value"}]},{"id":"Condition.stage.assessment","path":"Condition.stage.assessment","short":"Formal record of assessment","definition":"Reference to a formal record of the evidence on which the staging assessment is based.","min":0,"max":"*","base":{"path":"Condition.stage.assessment","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/ClinicalImpression|4.0.1","http://hl7.org/fhir/StructureDefinition/DiagnosticReport|4.0.1","http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"]}],"condition":["con-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".self"}]},{"id":"Condition.stage.type","path":"Condition.stage.type","short":"Kind of staging","definition":"The kind of staging, such as pathological or clinical staging.","min":0,"max":"1","base":{"path":"Condition.stage.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ConditionStageType"}],"strength":"example","description":"Codes describing the kind of condition staging (e.g. clinical or pathological).","valueSet":"http://hl7.org/fhir/ValueSet/condition-stage-type|4.0.1"},"mapping":[{"identity":"rim","map":"./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"stage type\"]"}]},{"id":"Condition.evidence","path":"Condition.evidence","short":"Supporting evidence","definition":"Supporting evidence / manifestations that are the basis of the Condition's verification status, such as evidence that confirmed or refuted the condition.","comment":"The evidence may be a simple list of coded symptoms/manifestations, or references to observations or formal assessments, or both.","min":0,"max":"*","base":{"path":"Condition.evidence","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"con-2","severity":"error","human":"evidence SHALL have code or details","expression":"code.exists() or detail.exists()","xpath":"exists(f:code) or exists(f:detail)","source":"http://hl7.org/fhir/StructureDefinition/Condition"},{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".outboundRelationship[typeCode=SPRT].target[classCode=OBS, moodCode=EVN]"}]},{"id":"Condition.evidence.id","path":"Condition.evidence.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Condition.evidence.extension","path":"Condition.evidence.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Condition.evidence.modifierExtension","path":"Condition.evidence.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Condition.evidence.code","path":"Condition.evidence.code","short":"Manifestation/symptom","definition":"A manifestation or symptom that led to the recording of this condition.","min":0,"max":"*","base":{"path":"Condition.evidence.code","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"condition":["con-2"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ManifestationOrSymptom"}],"strength":"example","description":"Codes that describe the manifestation or symptoms of a condition.","valueSet":"http://hl7.org/fhir/ValueSet/manifestation-or-symptom|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.reasonCode"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"sct-concept","map":"< 404684003 |Clinical finding|"},{"identity":"rim","map":"[code=\"diagnosis\"].value"}]},{"id":"Condition.evidence.detail","path":"Condition.evidence.detail","short":"Supporting information found elsewhere","definition":"Links to other relevant information, including pathology reports.","min":0,"max":"*","base":{"path":"Condition.evidence.detail","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"]}],"condition":["con-2"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"rim","map":".self"}]},{"id":"Condition.note","path":"Condition.note","short":"Additional information about the Condition","definition":"Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis.","min":0,"max":"*","base":{"path":"Condition.note","min":0,"max":"*"},"type":[{"code":"Annotation"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.note"},{"identity":"v2","map":"NTE child of PRB"},{"identity":"rim","map":".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"}]}]},"differential":{"element":[{"id":"Condition","path":"Condition"},{"id":"Condition.id","path":"Condition.id","min":1},{"id":"Condition.category","path":"Condition.category","min":1,"max":"1","mustSupport":true},{"id":"Condition.code","path":"Condition.code","short":"Condition Identification","definition":"Details specifying the ICD 10 or 11 diagnosis recorded in this profile","min":1},{"id":"Condition.encounter","path":"Condition.encounter","min":1},{"id":"Condition.onset[x]","path":"Condition.onset[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"open"},"min":1},{"id":"Condition.onset[x]:onsetDateTime","path":"Condition.onset[x]","sliceName":"onsetDateTime","short":"Diagnosis date","definition":"Date at which the client was diagnosed with the condition","min":1,"max":"1","type":[{"code":"dateTime"}]},{"id":"Condition.recordedDate","path":"Condition.recordedDate","min":1}]}},"SzProcedure":{"resourceType":"StructureDefinition","id":"SzProcedure","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzProcedure","version":"0.1.0","name":"SzProcedure","title":"Eswatini Procedure Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"This resource is designed to record details of current and historical procedures performed on a patient.\nThis may include the start and stop dates of treatment like IPT.","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"}],"kind":"resource","abstract":false,"type":"Procedure","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Procedure","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Procedure","path":"Procedure","short":"An action that is being or was performed on a patient","definition":"An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy.","min":0,"max":"*","base":{"path":"Procedure","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Event"},{"identity":"rim","map":"Procedure[moodCode=EVN]"}]},{"id":"Procedure.id","path":"Procedure.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Procedure.meta","path":"Procedure.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"Procedure.implicitRules","path":"Procedure.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Procedure.language","path":"Procedure.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Procedure.text","path":"Procedure.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Procedure.contained","path":"Procedure.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Procedure.extension","path":"Procedure.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Procedure.modifierExtension","path":"Procedure.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Procedure.identifier","path":"Procedure.identifier","short":"External Identifiers for this procedure","definition":"Business identifiers assigned to this procedure by the performer or other systems which remain constant as the resource is updated and is propagated from server to server.","comment":"This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and Person resource instances might share the same social insurance number.","requirements":"Allows identification of the procedure as it is known by various participating systems and in a way that remains consistent across servers.","min":0,"max":"*","base":{"path":"Procedure.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"Some combination of ORC-2 / ORC-3 / OBR-2 / OBR-3 / IPC-1 / IPC-2 / IPC-3 / IPC-4"},{"identity":"rim","map":".id"}]},{"id":"Procedure.instantiatesCanonical","path":"Procedure.instantiatesCanonical","short":"Instantiates FHIR protocol or definition","definition":"The URL pointing to a FHIR-defined protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.","min":0,"max":"*","base":{"path":"Procedure.instantiatesCanonical","min":0,"max":"*"},"type":[{"code":"canonical","targetProfile":["http://hl7.org/fhir/StructureDefinition/PlanDefinition|4.0.1","http://hl7.org/fhir/StructureDefinition/ActivityDefinition|4.0.1","http://hl7.org/fhir/StructureDefinition/Measure|4.0.1","http://hl7.org/fhir/StructureDefinition/OperationDefinition|4.0.1","http://hl7.org/fhir/StructureDefinition/Questionnaire|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.instantiatesCanonical"},{"identity":"rim","map":".outboundRelationship[typeCode=DEFN].target"}]},{"id":"Procedure.instantiatesUri","path":"Procedure.instantiatesUri","short":"Instantiates external protocol or definition","definition":"The URL pointing to an externally maintained protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.","comment":"This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.","min":0,"max":"*","base":{"path":"Procedure.instantiatesUri","min":0,"max":"*"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.instantiatesUri"},{"identity":"rim","map":".outboundRelationship[typeCode=DEFN].target"}]},{"id":"Procedure.basedOn","path":"Procedure.basedOn","short":"A request for this procedure","definition":"A reference to a resource that contains details of the request for this procedure.","alias":["fulfills"],"min":0,"max":"*","base":{"path":"Procedure.basedOn","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1","http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.basedOn"},{"identity":"rim","map":".outboundRelationship[typeCode=FLFS].target[classCode=(various e.g. PROC, OBS, PCPR, ACT, moodCode=RQO].code"}]},{"id":"Procedure.partOf","path":"Procedure.partOf","short":"Part of referenced event","definition":"A larger event of which this particular procedure is a component or step.","comment":"The MedicationAdministration resource has a partOf reference to Procedure, but this is not a circular reference. For example, the anesthesia MedicationAdministration is part of the surgical Procedure (MedicationAdministration.partOf = Procedure). For example, the procedure to insert the IV port for an IV medication administration is part of the medication administration (Procedure.partOf = MedicationAdministration).","alias":["container"],"min":0,"max":"*","base":{"path":"Procedure.partOf","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1","http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.partOf"},{"identity":"rim","map":".inboundRelationship[typeCode=COMP].source[classCode=SBADM or PROC or OBS, moodCode=EVN]"}]},{"id":"Procedure.status","path":"Procedure.status","short":"preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown","definition":"A code specifying the state of the procedure. Generally, this will be the in-progress or completed state.","comment":"The \"unknown\" code is not to be used to convey other statuses. The \"unknown\" code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the procedure.\n\nThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.","min":1,"max":"1","base":{"path":"Procedure.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ProcedureStatus"}],"strength":"required","description":"A code specifying the state of the procedure.","valueSet":"http://hl7.org/fhir/ValueSet/event-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.status"},{"identity":"w5","map":"FiveWs.status"},{"identity":"rim","map":"statusCode"}]},{"id":"Procedure.statusReason","path":"Procedure.statusReason","short":"Reason for current status","definition":"Captures the reason for the current state of the procedure.","comment":"This is generally only used for \"exception\" statuses such as \"not-done\", \"suspended\" or \"aborted\". The reason for performing the event at all is captured in reasonCode, not here.","alias":["Suspended Reason","Cancelled Reason"],"min":0,"max":"1","base":{"path":"Procedure.statusReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ProcedureNegationReason"}],"strength":"example","description":"A code that identifies the reason a procedure was not performed.","valueSet":"http://hl7.org/fhir/ValueSet/procedure-not-performed-reason|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.statusReason"},{"identity":"rim","map":".reason.Observation.value"}]},{"id":"Procedure.category","path":"Procedure.category","short":"Classification of the procedure","definition":"A code that classifies the procedure for searching, sorting and display purposes (e.g. \"Surgical Procedure\").","min":1,"max":"1","base":{"path":"Procedure.category","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ProcedureCategory"}],"strength":"example","description":"A code that classifies a procedure for searching, sorting and display purposes.","valueSet":"http://hl7.org/fhir/ValueSet/procedure-category|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"}]},{"id":"Procedure.code","path":"Procedure.code","short":"Procedure Code","definition":"Code defining the procedure that was performed","requirements":"0..1 to account for primarily narrative only resources.","alias":["type"],"min":1,"max":"1","base":{"path":"Procedure.code","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ProcedureCode"}],"strength":"example","description":"A code to identify a specific procedure .","valueSet":"http://hl7.org/fhir/ValueSet/procedure-code|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.code"},{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"v2","map":"OBR-44/OBR-45"},{"identity":"rim","map":".code"}]},{"id":"Procedure.subject","path":"Procedure.subject","short":"Who the procedure was performed on","definition":"The person, animal or group on which the procedure was performed.","alias":["patient"],"min":1,"max":"1","base":{"path":"Procedure.subject","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.subject"},{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"PID-3"},{"identity":"rim","map":".participation[typeCode=SBJ].role"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Procedure.encounter","path":"Procedure.encounter","short":"Encounter created as part of","definition":"The Encounter during which this Procedure was created or performed or to which the creation of this record is tightly associated.","comment":"This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.","min":0,"max":"1","base":{"path":"Procedure.encounter","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.context"},{"identity":"w5","map":"FiveWs.context"},{"identity":"v2","map":"PV1-19"},{"identity":"rim","map":".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"}]},{"id":"Procedure.performed[x]","path":"Procedure.performed[x]","short":"When the procedure was performed","definition":"Estimated or actual date, date-time, period, or age when the procedure was performed. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.","comment":"Age is generally used when the patient reports an age at which the procedure was performed. Range is generally used when the patient reports an age range when the procedure was performed, such as sometime between 20-25 years old. dateTime supports a range of precision due to some procedures being reported as past procedures that might not have millisecond precision while other procedures performed and documented during the encounter might have more precise UTC timestamps with timezone.","min":0,"max":"1","base":{"path":"Procedure.performed[x]","min":0,"max":"1"},"type":[{"code":"dateTime"},{"code":"Period"},{"code":"string"},{"code":"Age"},{"code":"Range"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.occurrence[x]"},{"identity":"w5","map":"FiveWs.done[x]"},{"identity":"v2","map":"OBR-7"},{"identity":"rim","map":".effectiveTime"}]},{"id":"Procedure.recorder","path":"Procedure.recorder","short":"Who recorded the procedure","definition":"Individual who recorded the record and takes responsibility for its content.","min":0,"max":"1","base":{"path":"Procedure.recorder","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1","http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.author"},{"identity":"rim","map":".participation[typeCode=AUT].role"}]},{"id":"Procedure.asserter","path":"Procedure.asserter","short":"Person who asserts this procedure","definition":"Individual who is making the procedure statement.","min":0,"max":"1","base":{"path":"Procedure.asserter","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1","http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.source"},{"identity":"rim","map":".participation[typeCode=INF].role"}]},{"id":"Procedure.performer","path":"Procedure.performer","short":"The people who performed the procedure","definition":"Limited to \"real\" people rather than equipment.","min":0,"max":"*","base":{"path":"Procedure.performer","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.performer"},{"identity":"rim","map":".participation[typeCode=PRF]"}]},{"id":"Procedure.performer.id","path":"Procedure.performer.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Procedure.performer.extension","path":"Procedure.performer.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Procedure.performer.modifierExtension","path":"Procedure.performer.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Procedure.performer.function","path":"Procedure.performer.function","short":"Type of performance","definition":"Distinguishes the type of involvement of the performer in the procedure. For example, surgeon, anaesthetist, endoscopist.","requirements":"Allows disambiguation of the types of involvement of different performers.","min":0,"max":"1","base":{"path":"Procedure.performer.function","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ProcedurePerformerRole"}],"strength":"example","description":"A code that identifies the role of a performer of the procedure.","valueSet":"http://hl7.org/fhir/ValueSet/performer-role|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.performer.function"},{"identity":"v2","map":"Some combination of STF-18 / PRA-3 / PRT-4 / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17 / OBX-25"},{"identity":"rim","map":".functionCode"}]},{"id":"Procedure.performer.actor","path":"Procedure.performer.actor","short":"The reference to the practitioner","definition":"The practitioner who was involved in the procedure.","requirements":"A reference to Device supports use cases, such as pacemakers.","min":1,"max":"1","base":{"path":"Procedure.performer.actor","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.performer.actor"},{"identity":"w5","map":"FiveWs.actor"},{"identity":"v2","map":"ORC-19/PRT-5"},{"identity":"rim","map":".role"}]},{"id":"Procedure.performer.onBehalfOf","path":"Procedure.performer.onBehalfOf","short":"Organization the device or practitioner was acting for","definition":"The organization the device or practitioner was acting on behalf of.","requirements":"Practitioners and Devices can be associated with multiple organizations. This element indicates which organization they were acting on behalf of when performing the action.","min":0,"max":"1","base":{"path":"Procedure.performer.onBehalfOf","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".scoper"}]},{"id":"Procedure.location","path":"Procedure.location","short":"Where the procedure happened","definition":"The location where the procedure actually happened. E.g. a newborn at home, a tracheostomy at a restaurant.","requirements":"Ties a procedure to where the records are likely kept.","min":0,"max":"1","base":{"path":"Procedure.location","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Location|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.where[x]"},{"identity":"rim","map":".participation[typeCode=LOC].role[classCode=SDLOC]"}]},{"id":"Procedure.reasonCode","path":"Procedure.reasonCode","short":"Coded reason procedure performed","definition":"The coded reason why the procedure was performed. This may be a coded entity of some type, or may simply be present as text.","comment":"Use Procedure.reasonCode when a code sufficiently describes the reason. Use Procedure.reasonReference when referencing a resource, which allows more information to be conveyed, such as onset date. Procedure.reasonCode and Procedure.reasonReference are not meant to be duplicative. For a single reason, either Procedure.reasonCode or Procedure.reasonReference can be used. Procedure.reasonCode may be a summary code, or Procedure.reasonReference may be used to reference a very precise definition of the reason using Condition | Observation | Procedure | DiagnosticReport | DocumentReference. Both Procedure.reasonCode and Procedure.reasonReference can be used if they are describing different reasons for the procedure.","min":0,"max":"*","base":{"path":"Procedure.reasonCode","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ProcedureReason"}],"strength":"example","description":"A code that identifies the reason a procedure is required.","valueSet":"http://hl7.org/fhir/ValueSet/procedure-reason|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.reasonCode"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"rim","map":".reasonCode"}]},{"id":"Procedure.reasonReference","path":"Procedure.reasonReference","short":"The justification that the procedure was performed","definition":"The justification of why the procedure was performed.","comment":"It is possible for a procedure to be a reason (such as C-Section) for another procedure (such as an epidural). Other examples include endoscopy for dilatation and biopsy (a combination of diagnostic and therapeutic use). \nUse Procedure.reasonCode when a code sufficiently describes the reason. Use Procedure.reasonReference when referencing a resource, which allows more information to be conveyed, such as onset date. Procedure.reasonCode and Procedure.reasonReference are not meant to be duplicative. For a single reason, either Procedure.reasonCode or Procedure.reasonReference can be used. Procedure.reasonCode may be a summary code, or Procedure.reasonReference may be used to reference a very precise definition of the reason using Condition | Observation | Procedure | DiagnosticReport | DocumentReference. Both Procedure.reasonCode and Procedure.reasonReference can be used if they are describing different reasons for the procedure.","min":0,"max":"*","base":{"path":"Procedure.reasonReference","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Condition|4.0.1","http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1","http://hl7.org/fhir/StructureDefinition/DiagnosticReport|4.0.1","http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.reasonReference"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"rim","map":".reasonCode"}]},{"id":"Procedure.bodySite","path":"Procedure.bodySite","short":"Target body sites","definition":"Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion.","comment":"If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [procedure-targetbodystructure](http://hl7.org/fhir/R4/extension-procedure-targetbodystructure.html).","min":0,"max":"*","base":{"path":"Procedure.bodySite","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"BodySite"}],"strength":"example","description":"Codes describing anatomical locations. May include laterality.","valueSet":"http://hl7.org/fhir/ValueSet/body-site|4.0.1"},"mapping":[{"identity":"v2","map":"OBX-20"},{"identity":"rim","map":".targetSiteCode"}]},{"id":"Procedure.outcome","path":"Procedure.outcome","short":"The result of procedure","definition":"The outcome of the procedure - did it resolve the reasons for the procedure being performed?","comment":"If outcome contains narrative text only, it can be captured using the CodeableConcept.text.","min":0,"max":"1","base":{"path":"Procedure.outcome","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ProcedureOutcome"}],"strength":"example","description":"An outcome of a procedure - whether it was resolved or otherwise.","valueSet":"http://hl7.org/fhir/ValueSet/procedure-outcome|4.0.1"},"mapping":[{"identity":"rim","map":".outboundRelationship[typeCode=OUT].target.text"}]},{"id":"Procedure.report","path":"Procedure.report","short":"Any report resulting from the procedure","definition":"This could be a histology result, pathology report, surgical report, etc.","comment":"There could potentially be multiple reports - e.g. if this was a procedure which took multiple biopsies resulting in a number of anatomical pathology reports.","min":0,"max":"*","base":{"path":"Procedure.report","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/DiagnosticReport|4.0.1","http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1","http://hl7.org/fhir/StructureDefinition/Composition|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN]"}]},{"id":"Procedure.complication","path":"Procedure.complication","short":"Complication following the procedure","definition":"Any complications that occurred during the procedure, or in the immediate post-performance period. These are generally tracked separately from the notes, which will typically describe the procedure itself rather than any 'post procedure' issues.","comment":"If complications are only expressed by the narrative text, they can be captured using the CodeableConcept.text.","min":0,"max":"*","base":{"path":"Procedure.complication","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ProcedureComplication"}],"strength":"example","description":"Codes describing complications that resulted from a procedure.","valueSet":"http://hl7.org/fhir/ValueSet/condition-code|4.0.1"},"mapping":[{"identity":"rim","map":".outboundRelationship[typeCode=OUTC].target[classCode=OBS, code=\"complication\", moodCode=EVN].value"}]},{"id":"Procedure.complicationDetail","path":"Procedure.complicationDetail","short":"A condition that is a result of the procedure","definition":"Any complications that occurred during the procedure, or in the immediate post-performance period.","requirements":"This is used to document a condition that is a result of the procedure, not the condition that was the reason for the procedure.","min":0,"max":"*","base":{"path":"Procedure.complicationDetail","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Condition|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".outboundRelationship[typeCode=OUTC].target[classCode=OBS, code=\"complication\", moodCode=EVN].value"}]},{"id":"Procedure.followUp","path":"Procedure.followUp","short":"Instructions for follow up","definition":"If the procedure required specific follow up - e.g. removal of sutures. The follow up may be represented as a simple note or could potentially be more complex, in which case the CarePlan resource can be used.","min":0,"max":"*","base":{"path":"Procedure.followUp","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ProcedureFollowUp"}],"strength":"example","description":"Specific follow up required for a procedure e.g. removal of sutures.","valueSet":"http://hl7.org/fhir/ValueSet/procedure-followup|4.0.1"},"mapping":[{"identity":"rim","map":".outboundRelationship[typeCode=COMP].target[classCode=ACT, moodCode=INT].code"}]},{"id":"Procedure.note","path":"Procedure.note","short":"Additional information about the procedure","definition":"Any other notes and comments about the procedure.","min":0,"max":"*","base":{"path":"Procedure.note","min":0,"max":"*"},"type":[{"code":"Annotation"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.note"},{"identity":"v2","map":"NTE"},{"identity":"rim","map":".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"}]},{"id":"Procedure.focalDevice","path":"Procedure.focalDevice","short":"Manipulated, implanted, or removed device","definition":"A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure.","min":0,"max":"*","base":{"path":"Procedure.focalDevice","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".participation[typeCode=DEV].role[classCode=MANU]"}]},{"id":"Procedure.focalDevice.id","path":"Procedure.focalDevice.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Procedure.focalDevice.extension","path":"Procedure.focalDevice.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Procedure.focalDevice.modifierExtension","path":"Procedure.focalDevice.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Procedure.focalDevice.action","path":"Procedure.focalDevice.action","short":"Kind of change to device","definition":"The kind of change that happened to the device during the procedure.","min":0,"max":"1","base":{"path":"Procedure.focalDevice.action","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"DeviceActionKind"}],"strength":"preferred","description":"A kind of change that happened to the device during the procedure.","valueSet":"http://hl7.org/fhir/ValueSet/device-action|4.0.1"},"mapping":[{"identity":"rim","map":".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"procedure device action\"].value=:procedure device action codes"}]},{"id":"Procedure.focalDevice.manipulated","path":"Procedure.focalDevice.manipulated","short":"Device that was changed","definition":"The device that was manipulated (changed) during the procedure.","min":1,"max":"1","base":{"path":"Procedure.focalDevice.manipulated","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Device|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".participation[typeCode=DEV].role[classCode=SDLOC]"}]},{"id":"Procedure.usedReference","path":"Procedure.usedReference","short":"Items used during procedure","definition":"Identifies medications, devices and any other substance used as part of the procedure.","comment":"For devices actually implanted or removed, use Procedure.device.","requirements":"Used for tracking contamination, etc.","min":0,"max":"*","base":{"path":"Procedure.usedReference","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Device|4.0.1","http://hl7.org/fhir/StructureDefinition/Medication|4.0.1","http://hl7.org/fhir/StructureDefinition/Substance|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".participation[typeCode=DEV].role[classCode=MANU] or\n.participation[typeCode=CSM].role[classCode=ADMM] (for Medication or Substance)"}]},{"id":"Procedure.usedCode","path":"Procedure.usedCode","short":"Coded items used during the procedure","definition":"Identifies coded items that were used as part of the procedure.","comment":"For devices actually implanted or removed, use Procedure.device.","min":0,"max":"*","base":{"path":"Procedure.usedCode","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ProcedureUsed"}],"strength":"example","description":"Codes describing items used during a procedure.","valueSet":"http://hl7.org/fhir/ValueSet/device-kind|4.0.1"},"mapping":[{"identity":"rim","map":"participation[typeCode=Dev].role[classCode=MANU]"}]}]},"differential":{"element":[{"id":"Procedure","path":"Procedure"},{"id":"Procedure.id","path":"Procedure.id","min":1},{"id":"Procedure.category","path":"Procedure.category","min":1},{"id":"Procedure.code","path":"Procedure.code","short":"Procedure Code","definition":"Code defining the procedure that was performed","min":1,"mustSupport":true},{"id":"Procedure.subject","path":"Procedure.subject","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}]},{"id":"Procedure.encounter","path":"Procedure.encounter","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}]},{"id":"Procedure.performer.actor","path":"Procedure.performer.actor","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner"]}]}]}},"SzTestingLabExtension":{"resourceType":"StructureDefinition","id":"SzTestingLabExtension","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzTestingLabExtension","version":"0.1.0","name":"SzTestingLabExtension","title":"Extention: Eswatini Testing Laboratory","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Extention for Eswatini Testing Laboratory","fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Extension","path":"Extension","short":"Extention: Eswatini Testing Laboratory","definition":"Extention for Eswatini Testing Laboratory","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzTestingLabExtension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":0,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation|0.1.0"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension","short":"Extention: Eswatini Testing Laboratory","definition":"Extention for Eswatini Testing Laboratory"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzTestingLabExtension"},{"id":"Extension.value[x]","path":"Extension.value[x]","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation|0.1.0"]}]}]}},"SzPatient":{"resourceType":"StructureDefinition","id":"SzPatient","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient","version":"0.1.0","name":"EswatiniPatient","title":"Eswatini Patient Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Definition of the FHIR Eswatini Patient resource","fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"cda","uri":"http://hl7.org/v3/cda","name":"CDA (R2)"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"},{"identity":"loinc","uri":"http://loinc.org","name":"LOINC code for the element"}],"kind":"resource","abstract":false,"type":"Patient","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Patient","path":"Patient","short":"Information about an individual or animal receiving health care services","definition":"Demographics and other administrative information about an individual or animal receiving care or other health-related services.","alias":["SubjectOfCare Client Resident"],"min":0,"max":"*","base":{"path":"Patient","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"rim","map":"Patient[classCode=PAT]"},{"identity":"cda","map":"ClinicalDocument.recordTarget.patientRole"}]},{"id":"Patient.id","path":"Patient.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Patient.meta","path":"Patient.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true},{"id":"Patient.implicitRules","path":"Patient.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Patient.language","path":"Patient.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages|4.0.1"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Patient.text","path":"Patient.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Patient.contained","path":"Patient.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Patient.extension","path":"Patient.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"ordered":false,"rules":"open"},"short":"Extension","definition":"An Extension","min":1,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false},{"id":"Patient.extension:nationality","path":"Patient.extension","sliceName":"nationality","short":"Nationality.","definition":"Patient's nationality according to ID document","min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/StructureDefinition/patient-nationality|5.2.0"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false},{"id":"Patient.extension:inkhundla","path":"Patient.extension","sliceName":"inkhundla","short":"Extention: Eswatini Inkhundla","definition":"Extention for Eswatini Tinkhundla","min":0,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzInkhundlaExtension|0.1.0"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":false},{"id":"Patient.extension:chiefdom","path":"Patient.extension","sliceName":"chiefdom","short":"Extention: Eswatini Chiefdom","definition":"Extention for Eswatini Chiefdom","min":0,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzChiefdomExtension|0.1.0"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":false},{"id":"Patient.extension:registrationDate","path":"Patient.extension","sliceName":"registrationDate","short":"Date the patient was registered","definition":"Extention for Eswatini Chiefdom","min":1,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzRegistrationDate|0.1.0"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false},{"id":"Patient.modifierExtension","path":"Patient.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Patient.identifier","path":"Patient.identifier","short":"Patient's Identification Number","definition":"An identifier for this patient.","requirements":"Patients are almost always assigned specific numerical identifiers.","min":1,"max":"*","base":{"path":"Patient.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"PID-3"},{"identity":"rim","map":"id"},{"identity":"cda","map":".id"}]},{"id":"Patient.identifier.id","path":"Patient.identifier.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Patient.identifier.extension","path":"Patient.identifier.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Patient.identifier.use","path":"Patient.identifier.use","short":"usual | official | temp | secondary | old (If known)","definition":"The purpose of this identifier.","comment":"Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.","requirements":"Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.","min":0,"max":"1","base":{"path":"Identifier.use","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"IdentifierUse"}],"strength":"required","description":"Identifies the purpose for this identifier, if known .","valueSet":"http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"},"mapping":[{"identity":"v2","map":"N/A"},{"identity":"rim","map":"Role.code or implied by context"}]},{"id":"Patient.identifier.type","path":"Patient.identifier.type","short":"Type of patient identifier","definition":"A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.","comment":"This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.","requirements":"Allows users to make use of identifiers when the identifier system is not known.","min":1,"max":"1","base":{"path":"Identifier.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/PersonIdentifiersVS|0.1.0"},"mapping":[{"identity":"v2","map":"CX.5"},{"identity":"rim","map":"Role.code or implied by context"}]},{"id":"Patient.identifier.system","path":"Patient.identifier.system","short":"The namespace for the identifier value","definition":"Establishes the namespace for the value - that is, a URL that describes a set values that are unique.","comment":"Identifier.system is always case sensitive.","requirements":"There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.","min":0,"max":"1","base":{"path":"Identifier.system","min":0,"max":"1"},"type":[{"code":"uri"}],"example":[{"label":"General","valueUri":"http://www.acme.com/identifiers/patient"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"CX.4 / EI-2-4"},{"identity":"rim","map":"II.root or Role.id.root"},{"identity":"servd","map":"./IdentifierType"}]},{"id":"Patient.identifier.value","path":"Patient.identifier.value","short":"Patient identier value","definition":"The portion of the identifier typically relevant to the user and which is unique within the context of the system.","comment":"If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.","min":1,"max":"1","base":{"path":"Identifier.value","min":0,"max":"1"},"type":[{"code":"string"}],"example":[{"label":"General","valueString":"123456"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"CX.1 / EI.1"},{"identity":"rim","map":"II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"},{"identity":"servd","map":"./Value"}]},{"id":"Patient.identifier.period","path":"Patient.identifier.period","short":"Time period when id is/was valid for use","definition":"Time period during which identifier is/was valid for use.","min":0,"max":"1","base":{"path":"Identifier.period","min":0,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"CX.7 + CX.8"},{"identity":"rim","map":"Role.effectiveTime or implied by context"},{"identity":"servd","map":"./StartDate and ./EndDate"}]},{"id":"Patient.identifier.assigner","path":"Patient.identifier.assigner","short":"Organization that issued id (may be just text)","definition":"Organization that issued/manages the identifier.","comment":"The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.","min":0,"max":"1","base":{"path":"Identifier.assigner","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"CX.4 / (CX.4,CX.9,CX.10)"},{"identity":"rim","map":"II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"},{"identity":"servd","map":"./IdentifierIssuingAuthority"}]},{"id":"Patient.active","path":"Patient.active","short":"Whether this patient's record is in active use","definition":"Whether this patient record is in active use. \nMany systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.\n\nIt is often used to filter patient lists to exclude inactive patients\n\nDeceased patients may also be marked as inactive for the same reasons, but may be active for some time after death.","comment":"If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient.","requirements":"Need to be able to mark a patient record as not to be used because it was created in error.","min":0,"max":"1","base":{"path":"Patient.active","min":0,"max":"1"},"type":[{"code":"boolean"}],"meaningWhenMissing":"This resource is generally assumed to be active if no value is provided for the active element","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid","isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.status"},{"identity":"rim","map":"statusCode"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.name","path":"Patient.name","short":"Patient's name","definition":"Verified Patient's name","comment":"A patient may have multiple names with different uses or applicable periods. For animals, the name is a \"HumanName\" in the sense that is assigned and used by humans and has the same patterns.","requirements":"Need to be able to track the patient by multiple names. Examples are your official name and a partner name.","min":1,"max":"1","base":{"path":"Patient.name","min":0,"max":"*"},"type":[{"code":"HumanName"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"PID-5, PID-9"},{"identity":"rim","map":"name"},{"identity":"cda","map":".patient.name"}]},{"id":"Patient.name.id","path":"Patient.name.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Patient.name.extension","path":"Patient.name.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Patient.name.use","path":"Patient.name.use","short":"usual | official | temp | nickname | anonymous | old | maiden","definition":"Identifies the purpose for this name.","comment":"Applications can assume that a name is current unless it explicitly says that it is temporary or old.","requirements":"Allows the appropriate name for a particular context of use to be selected from among a set of names.","min":0,"max":"1","base":{"path":"HumanName.use","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old name etc.for a current/permanent one","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"NameUse"}],"strength":"required","description":"The use of a human name.","valueSet":"http://hl7.org/fhir/ValueSet/name-use|4.0.1"},"mapping":[{"identity":"v2","map":"XPN.7, but often indicated by which field contains the name"},{"identity":"rim","map":"unique(./use)"},{"identity":"servd","map":"./NamePurpose"}]},{"id":"Patient.name.text","path":"Patient.name.text","short":"Text representation of the full name","definition":"Specifies the entire name as it should be displayed e.g. on an application UI. This may be provided instead of or as well as the specific parts.","comment":"Can provide both a text representation and parts. Applications updating a name SHALL ensure that when both text and parts are present, no content is included in the text that isn't found in a part.","requirements":"A renderable, unencoded form.","min":0,"max":"1","base":{"path":"HumanName.text","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"implied by XPN.11"},{"identity":"rim","map":"./formatted"}]},{"id":"Patient.name.family","path":"Patient.name.family","short":"Family name (often called 'Surname')","definition":"Patient's family name","comment":"Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures).","alias":["surname"],"min":1,"max":"1","base":{"path":"HumanName.family","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XPN.1/FN.1"},{"identity":"rim","map":"./part[partType = FAM]"},{"identity":"servd","map":"./FamilyName"}]},{"id":"Patient.name.given","path":"Patient.name.given","short":"Patient's given name","definition":"Patient's given name","comment":"If only initials are recorded, they may be used in place of the full name parts. Initials may be separated into multiple given names but often aren't due to paractical limitations. This element is not called \"first name\" since given names do not always come first.","alias":["first name","middle name"],"min":1,"max":"*","base":{"path":"HumanName.given","min":0,"max":"*"},"type":[{"code":"string"}],"orderMeaning":"Given Names appear in the correct order for presenting the name","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XPN.2 + XPN.3"},{"identity":"rim","map":"./part[partType = GIV]"},{"identity":"servd","map":"./GivenNames"}]},{"id":"Patient.name.prefix","path":"Patient.name.prefix","short":"Parts that come before the name","definition":"Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.","min":0,"max":"*","base":{"path":"HumanName.prefix","min":0,"max":"*"},"type":[{"code":"string"}],"orderMeaning":"Prefixes appear in the correct order for presenting the name","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XPN.5"},{"identity":"rim","map":"./part[partType = PFX]"},{"identity":"servd","map":"./TitleCode"}]},{"id":"Patient.name.suffix","path":"Patient.name.suffix","short":"Parts that come after the name","definition":"Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.","min":0,"max":"*","base":{"path":"HumanName.suffix","min":0,"max":"*"},"type":[{"code":"string"}],"orderMeaning":"Suffixes appear in the correct order for presenting the name","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XPN/4"},{"identity":"rim","map":"./part[partType = SFX]"}]},{"id":"Patient.name.period","path":"Patient.name.period","short":"Time period when name was/is in use","definition":"Indicates the period of time when this name was valid for the named person.","requirements":"Allows names to be placed in historical context.","min":0,"max":"1","base":{"path":"HumanName.period","min":0,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XPN.13 + XPN.14"},{"identity":"rim","map":"./usablePeriod[type=\"IVL\"]"},{"identity":"servd","map":"./StartDate and ./EndDate"}]},{"id":"Patient.telecom","path":"Patient.telecom","short":"A contact detail for the individual","definition":"A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.","comment":"A Patient may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently and also to help with identification. The address might not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone).","requirements":"People have (primary) ways to contact them in some way such as phone, email.","min":0,"max":"*","base":{"path":"Patient.telecom","min":0,"max":"*"},"type":[{"code":"ContactPoint"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"PID-13, PID-14, PID-40"},{"identity":"rim","map":"telecom"},{"identity":"cda","map":".telecom"}]},{"id":"Patient.gender","path":"Patient.gender","short":"Sex at birth: male | female | other | unknown","definition":"Identifier to determine the genetic, endocrine and morphological characteristics of the body at birth.","comment":"The gender might not match the biological sex as determined by genetics or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than male and female, though the vast majority of systems and contexts only support male and female. Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific sex or gender aspect of interest (anatomical, chromosomal, social, etc.) However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice. Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosomal and other gender aspects. For example, an alert about a hysterectomy on a male should be handled as a warning or overridable error, not a \"hard\" error. See the Patient Gender and Sex section for additional information about communicating patient gender and sex.","requirements":"Needed for identification of the individual, in combination with (at least) name and birth date.","min":1,"max":"1","base":{"path":"Patient.gender","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"AdministrativeGender"}],"strength":"required","description":"The gender of a person used for administrative purposes.","valueSet":"http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"},"mapping":[{"identity":"v2","map":"PID-8"},{"identity":"rim","map":"player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"},{"identity":"cda","map":".patient.administrativeGenderCode"}]},{"id":"Patient.birthDate","path":"Patient.birthDate","short":"Date of birth: YYYY-MM-DD","definition":"The date of birth for the individual.","comment":"At least an estimated year should be provided as a guess if the real DOB is unknown There is a standard extension \"patient-birthTime\" available that should be used where Time is required (such as in maternity/infant care systems).","requirements":"Age of the individual drives many clinical processes.","min":1,"max":"1","base":{"path":"Patient.birthDate","min":0,"max":"1"},"type":[{"code":"date"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"PID-7"},{"identity":"rim","map":"player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime"},{"identity":"cda","map":".patient.birthTime"},{"identity":"loinc","map":"21112-8"}]},{"id":"Patient.birthDate.id","path":"Patient.birthDate.id","representation":["xmlAttr"],"short":"xml:id (or equivalent in JSON)","definition":"unique id for the element within a resource (for internal references)","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false},{"id":"Patient.birthDate.extension","path":"Patient.birthDate.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"ordered":false,"rules":"open"},"short":"Patient's birth time.","definition":"An Extension","min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false},{"id":"Patient.birthDate.extension:birthTime","path":"Patient.birthDate.extension","sliceName":"birthTime","short":"Time of day of birth","definition":"The time of day that the Patient/Person/RelatedPerson/Practitioner was born. This includes the date to ensure that the timezone information can be communicated effectively.","comment":"The patient prefix on the extension was retained to ensure backward compatibility with existing data (the content itself is provided to assist in sharing data across patient resources effectively)","min":0,"max":"1","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/StructureDefinition/patient-birthTime|5.2.0"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false},{"id":"Patient.birthDate.value","path":"Patient.birthDate.value","representation":["xmlAttr"],"short":"Primitive value for date","definition":"The actual value","min":0,"max":"1","base":{"path":"date.value","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"date"},{"url":"http://hl7.org/fhir/StructureDefinition/regex","valueString":"([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?"}],"code":"http://hl7.org/fhirpath/System.Date"}],"isModifier":false,"isSummary":false},{"id":"Patient.deceased[x]","path":"Patient.deceased[x]","short":"Indicates if the individual is deceased or not","definition":"Indicates if the individual is deceased or not.","comment":"If there's no value in the instance, it means there is no statement on whether or not the individual is deceased. Most systems will interpret the absence of a value as a sign of the person being alive.","requirements":"The fact that a patient is deceased influences the clinical process. Also, in human communication and relation management it is necessary to know whether the person is alive.","min":0,"max":"1","base":{"path":"Patient.deceased[x]","min":0,"max":"1"},"type":[{"code":"boolean"},{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because once a patient is marked as deceased, the actions that are appropriate to perform on the patient may be significantly different.","isSummary":true,"mapping":[{"identity":"v2","map":"PID-30 (bool) and PID-29 (datetime)"},{"identity":"rim","map":"player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.address","path":"Patient.address","short":"An address for the individual","definition":"An address for the individual.","comment":"Patient may have multiple addresses with different uses or applicable periods.","requirements":"May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification.","min":0,"max":"*","base":{"path":"Patient.address","min":0,"max":"*"},"type":[{"code":"Address"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"PID-11"},{"identity":"rim","map":"addr"},{"identity":"cda","map":".addr"}]},{"id":"Patient.address.id","path":"Patient.address.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Patient.address.extension","path":"Patient.address.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Patient.address.use","path":"Patient.address.use","short":"home | work | temp | old | billing - purpose of this address","definition":"The purpose of this address.","comment":"Applications can assume that an address is current unless it explicitly says that it is temporary or old.","requirements":"Allows an appropriate address to be chosen from a list of many.","min":0,"max":"1","base":{"path":"Address.use","min":0,"max":"1"},"type":[{"code":"code"}],"example":[{"label":"General","valueCode":"home"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This is labeled as \"Is Modifier\" because applications should not mistake a temporary or old address etc.for a current/permanent one","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"AddressUse"}],"strength":"required","description":"The use of an address.","valueSet":"http://hl7.org/fhir/ValueSet/address-use|4.0.1"},"mapping":[{"identity":"v2","map":"XAD.7"},{"identity":"rim","map":"unique(./use)"},{"identity":"servd","map":"./AddressPurpose"}]},{"id":"Patient.address.type","path":"Patient.address.type","short":"postal | physical | both","definition":"Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.","comment":"The definition of Address states that \"address is intended to describe postal addresses, not physical locations\". However, many applications track whether an address has a dual purpose of being a location that can be visited as well as being a valid delivery destination, and Postal addresses are often used as proxies for physical locations (also see the [Location](http://hl7.org/fhir/R4/location.html#) resource).","min":0,"max":"1","base":{"path":"Address.type","min":0,"max":"1"},"type":[{"code":"code"}],"example":[{"label":"General","valueCode":"both"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"AddressType"}],"strength":"required","description":"The type of an address (physical / postal).","valueSet":"http://hl7.org/fhir/ValueSet/address-type|4.0.1"},"mapping":[{"identity":"v2","map":"XAD.18"},{"identity":"rim","map":"unique(./use)"},{"identity":"vcard","map":"address type parameter"}]},{"id":"Patient.address.text","path":"Patient.address.text","short":"Text representation of the address","definition":"Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts.","comment":"Can provide both a text representation and parts. Applications updating an address SHALL ensure that when both text and parts are present, no content is included in the text that isn't found in a part.","requirements":"A renderable, unencoded form.","min":0,"max":"1","base":{"path":"Address.text","min":0,"max":"1"},"type":[{"code":"string"}],"example":[{"label":"General","valueString":"137 Nowhere Street, Erewhon 9132"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6"},{"identity":"rim","map":"./formatted"},{"identity":"vcard","map":"address label parameter"}]},{"id":"Patient.address.line","path":"Patient.address.line","short":"Street name, number, direction & P.O. Box etc.","definition":"This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.","min":0,"max":"*","base":{"path":"Address.line","min":0,"max":"*"},"type":[{"code":"string"}],"orderMeaning":"The order in which lines should appear in an address label","example":[{"label":"General","valueString":"137 Nowhere Street"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)"},{"identity":"rim","map":"AD.part[parttype = AL]"},{"identity":"vcard","map":"street"},{"identity":"servd","map":"./StreetAddress (newline delimitted)"}]},{"id":"Patient.address.city","path":"Patient.address.city","short":"Name of city, town etc.","definition":"The name of the city, town, suburb, village or other community or delivery center.","alias":["Municpality"],"min":0,"max":"1","base":{"path":"Address.city","min":0,"max":"1"},"type":[{"code":"string"}],"example":[{"label":"General","valueString":"Erewhon"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XAD.3"},{"identity":"rim","map":"AD.part[parttype = CTY]"},{"identity":"vcard","map":"locality"},{"identity":"servd","map":"./Jurisdiction"}]},{"id":"Patient.address.district","path":"Patient.address.district","short":"District name (aka county)","definition":"The name of the administrative area (county).","comment":"District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead.","alias":["County"],"min":0,"max":"1","base":{"path":"Address.district","min":0,"max":"1"},"type":[{"code":"string"}],"example":[{"label":"General","valueString":"Madison"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XAD.9"},{"identity":"rim","map":"AD.part[parttype = CNT | CPA]"}]},{"id":"Patient.address.state","path":"Patient.address.state","short":"Sub-unit of country (abbreviations ok)","definition":"Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes).","alias":["Province","Territory"],"min":0,"max":"1","base":{"path":"Address.state","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XAD.4"},{"identity":"rim","map":"AD.part[parttype = STA]"},{"identity":"vcard","map":"region"},{"identity":"servd","map":"./Region"}]},{"id":"Patient.address.postalCode","path":"Patient.address.postalCode","short":"Postal code for area","definition":"A postal code designating a region defined by the postal service.","alias":["Zip"],"min":0,"max":"1","base":{"path":"Address.postalCode","min":0,"max":"1"},"type":[{"code":"string"}],"example":[{"label":"General","valueString":"9132"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XAD.5"},{"identity":"rim","map":"AD.part[parttype = ZIP]"},{"identity":"vcard","map":"code"},{"identity":"servd","map":"./PostalIdentificationCode"}]},{"id":"Patient.address.country","path":"Patient.address.country","short":"Country (e.g. can be ISO 3166 2 or 3 letter code)","definition":"Country - a nation as commonly understood or generally accepted.","comment":"ISO 3166 3 letter codes can be used in place of a human readable country name.","min":0,"max":"1","base":{"path":"Address.country","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XAD.6"},{"identity":"rim","map":"AD.part[parttype = CNT]"},{"identity":"vcard","map":"country"},{"identity":"servd","map":"./Country"}]},{"id":"Patient.address.period","path":"Patient.address.period","short":"Time period when address was/is in use","definition":"Time period when address was/is in use.","requirements":"Allows addresses to be placed in historical context.","min":0,"max":"1","base":{"path":"Address.period","min":0,"max":"1"},"type":[{"code":"Period"}],"example":[{"label":"General","valuePeriod":{"start":"2010-03-23","end":"2010-07-01"}}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XAD.12 / XAD.13 + XAD.14"},{"identity":"rim","map":"./usablePeriod[type=\"IVL\"]"},{"identity":"servd","map":"./StartDate and ./EndDate"}]},{"id":"Patient.maritalStatus","path":"Patient.maritalStatus","short":"Marital (civil) status of a patient","definition":"This field contains a patient's most recent marital (civil) status.","requirements":"Most, if not all systems capture it.","min":0,"max":"1","base":{"path":"Patient.maritalStatus","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MaritalStatus"}],"strength":"extensible","description":"The domestic partnership status of a person.","valueSet":"http://hl7.org/fhir/ValueSet/marital-status|4.0.1"},"mapping":[{"identity":"v2","map":"PID-16"},{"identity":"rim","map":"player[classCode=PSN]/maritalStatusCode"},{"identity":"cda","map":".patient.maritalStatusCode"}]},{"id":"Patient.multipleBirth[x]","path":"Patient.multipleBirth[x]","short":"Whether patient is part of a multiple birth","definition":"Indicates whether the patient is part of a multiple (boolean) or indicates the actual birth order (integer).","comment":"Where the valueInteger is provided, the number is the birth number in the sequence. E.g. The middle birth in triplets would be valueInteger=2 and the third born would have valueInteger=3 If a boolean value was provided for this triplets example, then all 3 patient records would have valueBoolean=true (the ordering is not indicated).","requirements":"For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs.","min":0,"max":"1","base":{"path":"Patient.multipleBirth[x]","min":0,"max":"1"},"type":[{"code":"boolean"},{"code":"integer"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"PID-24 (bool), PID-25 (integer)"},{"identity":"rim","map":"player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.photo","path":"Patient.photo","short":"Image of the patient","definition":"Image of the patient.","comment":"Guidelines:\n* Use id photos, not clinical photos.\n* Limit dimensions to thumbnail.\n* Keep byte count low to ease resource updates.","requirements":"Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too.","min":0,"max":"*","base":{"path":"Patient.photo","min":0,"max":"*"},"type":[{"code":"Attachment"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-5 - needs a profile"},{"identity":"rim","map":"player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.contact","path":"Patient.contact","short":"A contact party (e.g. guardian, partner, friend) for the patient","definition":"A contact party (e.g. guardian, partner, friend) for the patient.","comment":"Contact covers all kinds of contact parties: family members, business contacts, guardians, caregivers. Not applicable to register pedigree and family ties beyond use of having contact.","requirements":"Need to track people you can contact about the patient.","min":0,"max":"*","base":{"path":"Patient.contact","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"pat-1","severity":"error","human":"SHALL at least contain a contact's details or a reference to an organization","expression":"name.exists() or telecom.exists() or address.exists() or organization.exists()","xpath":"exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)","source":"http://hl7.org/fhir/StructureDefinition/Patient|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.contact.id","path":"Patient.contact.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Patient.contact.extension","path":"Patient.contact.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Patient.contact.modifierExtension","path":"Patient.contact.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Patient.contact.relationship","path":"Patient.contact.relationship","short":"The kind of relationship","definition":"The nature of the relationship between the patient and the contact person.","requirements":"Used to determine which contact person is the most relevant to approach, depending on circumstances.","min":0,"max":"*","base":{"path":"Patient.contact.relationship","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ContactRelationship"}],"strength":"extensible","description":"The nature of the relationship between a patient and a contact person for that patient.","valueSet":"http://hl7.org/fhir/ValueSet/patient-contactrelationship|4.0.1"},"mapping":[{"identity":"v2","map":"NK1-7, NK1-3"},{"identity":"rim","map":"code"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.contact.name","path":"Patient.contact.name","short":"A name associated with the contact person","definition":"A name associated with the contact person.","requirements":"Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person.","min":0,"max":"1","base":{"path":"Patient.contact.name","min":0,"max":"1"},"type":[{"code":"HumanName"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"NK1-2"},{"identity":"rim","map":"name"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.contact.telecom","path":"Patient.contact.telecom","short":"A contact detail for the person","definition":"A contact detail for the person, e.g. a telephone number or an email address.","comment":"Contact may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently, and also to help with identification.","requirements":"People have (primary) ways to contact them in some way such as phone, email.","min":0,"max":"*","base":{"path":"Patient.contact.telecom","min":0,"max":"*"},"type":[{"code":"ContactPoint"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"NK1-5, NK1-6, NK1-40"},{"identity":"rim","map":"telecom"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.contact.address","path":"Patient.contact.address","short":"Address for the contact person","definition":"Address for the contact person.","requirements":"Need to keep track where the contact person can be contacted per postal mail or visited.","min":0,"max":"1","base":{"path":"Patient.contact.address","min":0,"max":"1"},"type":[{"code":"Address"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"NK1-4"},{"identity":"rim","map":"addr"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.contact.gender","path":"Patient.contact.gender","short":"male | female | other | unknown","definition":"Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.","requirements":"Needed to address the person correctly.","min":0,"max":"1","base":{"path":"Patient.contact.gender","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"AdministrativeGender"}],"strength":"required","description":"The gender of a person used for administrative purposes.","valueSet":"http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"},"mapping":[{"identity":"v2","map":"NK1-15"},{"identity":"rim","map":"player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.contact.organization","path":"Patient.contact.organization","short":"Organization that is associated with the contact","definition":"Organization on behalf of which the contact is acting or for which the contact is working.","requirements":"For guardians or business related contacts, the organization is relevant.","min":0,"max":"1","base":{"path":"Patient.contact.organization","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"]}],"condition":["pat-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"NK1-13, NK1-30, NK1-31, NK1-32, NK1-41"},{"identity":"rim","map":"scoper"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.contact.period","path":"Patient.contact.period","short":"The period during which this contact person or organization is valid to be contacted relating to this patient","definition":"The period during which this contact person or organization is valid to be contacted relating to this patient.","min":0,"max":"1","base":{"path":"Patient.contact.period","min":0,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"effectiveTime"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.communication","path":"Patient.communication","short":"A language which may be used to communicate with the patient about his or her health","definition":"A language which may be used to communicate with the patient about his or her health.","comment":"If no language is specified, this *implies* that the default local language is spoken. If you need to convey proficiency for multiple modes, then you need multiple Patient.Communication associations. For animals, language is not a relevant field, and should be absent from the instance. If the Patient does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.","requirements":"If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency are important things to keep track of both for patient and other persons of interest.","min":0,"max":"*","base":{"path":"Patient.communication","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"LanguageCommunication"},{"identity":"cda","map":"patient.languageCommunication"}]},{"id":"Patient.communication.id","path":"Patient.communication.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Patient.communication.extension","path":"Patient.communication.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Patient.communication.modifierExtension","path":"Patient.communication.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Patient.communication.language","path":"Patient.communication.language","short":"The language which can be used to communicate with the patient about his or her health","definition":"The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English.","comment":"The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.","requirements":"Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect.","min":1,"max":"1","base":{"path":"Patient.communication.language","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages|4.0.1"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"},"mapping":[{"identity":"v2","map":"PID-15, LAN-2"},{"identity":"rim","map":"player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code"},{"identity":"cda","map":".languageCode"}]},{"id":"Patient.communication.preferred","path":"Patient.communication.preferred","short":"Language preference indicator","definition":"Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).","comment":"This language is specifically identified for communicating healthcare information.","requirements":"People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method.","min":0,"max":"1","base":{"path":"Patient.communication.preferred","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"PID-15"},{"identity":"rim","map":"preferenceInd"},{"identity":"cda","map":".preferenceInd"}]},{"id":"Patient.generalPractitioner","path":"Patient.generalPractitioner","short":"Patient's nominated primary care provider","definition":"Patient's nominated care provider.","comment":"This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disability setting, or even organization that will provide people to perform the care provider roles. It is not to be used to record Care Teams, these should be in a CareTeam resource that may be linked to the CarePlan or EpisodeOfCare resources.\nMultiple GPs may be recorded against the patient for various reasons, such as a student that has his home GP listed along with the GP at university during the school semesters, or a \"fly-in/fly-out\" worker that has the onsite GP also included with his home GP to remain aware of medical issues.\n\nJurisdictions may decide that they can profile this down to 1 if desired, or 1 per type.","alias":["careProvider"],"min":0,"max":"*","base":{"path":"Patient.generalPractitioner","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Organization|4.0.1","http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"PD1-4"},{"identity":"rim","map":"subjectOf.CareEvent.performer.AssignedEntity"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.managingOrganization","path":"Patient.managingOrganization","short":"Organization that is the custodian of the patient record","definition":"Organization that is the custodian of the patient record.","comment":"There is only one managing organization for a specific patient record. Other organizations will have their own Patient record, and may use the Link property to join the records together (or a Person resource which can include confidence ratings for the association).","requirements":"Need to know who recognizes this patient record, manages and updates it.","min":0,"max":"1","base":{"path":"Patient.managingOrganization","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":"scoper"},{"identity":"cda","map":".providerOrganization"}]},{"id":"Patient.link","path":"Patient.link","short":"Link to another patient resource that concerns the same actual person","definition":"Link to another patient resource that concerns the same actual patient.","comment":"There is no assumption that linked patient records have mutual links.","requirements":"There are multiple use cases: \n\n* Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and \n* Distribution of patient information across multiple servers.","min":0,"max":"*","base":{"path":"Patient.link","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because it might not be the main Patient resource, and the referenced patient should be used instead of this Patient record. This is when the link.type value is 'replaced-by'","isSummary":true,"mapping":[{"identity":"rim","map":"outboundLink"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.link.id","path":"Patient.link.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Patient.link.extension","path":"Patient.link.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Patient.link.modifierExtension","path":"Patient.link.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Patient.link.other","path":"Patient.link.other","short":"The other patient or related person resource that the link refers to","definition":"The other patient resource that the link refers to.","comment":"Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual.","min":1,"max":"1","base":{"path":"Patient.link.other","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy","valueBoolean":false}],"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"PID-3, MRG-1"},{"identity":"rim","map":"id"},{"identity":"cda","map":"n/a"}]},{"id":"Patient.link.type","path":"Patient.link.type","short":"replaced-by | replaces | refer | seealso","definition":"The type of link between this patient resource and another patient resource.","min":1,"max":"1","base":{"path":"Patient.link.type","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"LinkType"}],"strength":"required","description":"The type of link between this patient resource and another patient resource.","valueSet":"http://hl7.org/fhir/ValueSet/link-type|4.0.1"},"mapping":[{"identity":"rim","map":"typeCode"},{"identity":"cda","map":"n/a"}]}]},"differential":{"element":[{"id":"Patient","path":"Patient"},{"id":"Patient.id","path":"Patient.id","min":1},{"id":"Patient.extension","path":"Patient.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"ordered":false,"rules":"open"},"min":1},{"id":"Patient.extension:nationality","path":"Patient.extension","sliceName":"nationality","short":"Nationality.","definition":"Patient's nationality according to ID document","min":0,"max":"*","type":[{"code":"Extension","profile":["http://hl7.org/fhir/StructureDefinition/patient-nationality|5.2.0"]}]},{"id":"Patient.extension:inkhundla","path":"Patient.extension","sliceName":"inkhundla","min":0,"max":"1","type":[{"code":"Extension","profile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzInkhundlaExtension|0.1.0"]}],"mustSupport":true},{"id":"Patient.extension:chiefdom","path":"Patient.extension","sliceName":"chiefdom","min":0,"max":"1","type":[{"code":"Extension","profile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzChiefdomExtension|0.1.0"]}],"mustSupport":true},{"id":"Patient.extension:registrationDate","path":"Patient.extension","sliceName":"registrationDate","short":"Date the patient was registered","min":1,"max":"1","type":[{"code":"Extension","profile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzRegistrationDate|0.1.0"]}]},{"id":"Patient.identifier","path":"Patient.identifier","short":"Patient's Identification Number","min":1},{"id":"Patient.identifier.type","path":"Patient.identifier.type","short":"Type of patient identifier","min":1,"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/PersonIdentifiersVS|0.1.0"}},{"id":"Patient.identifier.value","path":"Patient.identifier.value","short":"Patient identier value","min":1},{"id":"Patient.name","path":"Patient.name","short":"Patient's name","definition":"Verified Patient's name","min":1,"max":"1","mustSupport":true},{"id":"Patient.name.family","path":"Patient.name.family","definition":"Patient's family name","min":1},{"id":"Patient.name.given","path":"Patient.name.given","short":"Patient's given name","definition":"Patient's given name","min":1},{"id":"Patient.gender","path":"Patient.gender","short":"Sex at birth: male | female | other | unknown","definition":"Identifier to determine the genetic, endocrine and morphological characteristics of the body at birth.","min":1},{"id":"Patient.birthDate","path":"Patient.birthDate","short":"Date of birth: YYYY-MM-DD","min":1,"mustSupport":true},{"id":"Patient.birthDate.extension","path":"Patient.birthDate.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"ordered":false,"rules":"open"},"short":"Patient's birth time."},{"id":"Patient.birthDate.extension:birthTime","path":"Patient.birthDate.extension","sliceName":"birthTime","min":0,"max":"1","type":[{"code":"Extension","profile":["http://hl7.org/fhir/StructureDefinition/patient-birthTime|5.2.0"]}]},{"id":"Patient.address","path":"Patient.address","mustSupport":true},{"id":"Patient.address.city","path":"Patient.address.city","mustSupport":true},{"id":"Patient.address.country","path":"Patient.address.country","mustSupport":true}]}},"SzLabSpecimen":{"resourceType":"StructureDefinition","id":"SzLabSpecimen","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabSpecimen","version":"0.1.0","name":"EswatiniSpecimenProfile","title":"Eswatini Specimen Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"The Eswatini Specimen Profile is based on the FHIR Specimen resource. This profile sets minimum\nexpectation for Specimen resource to record information about substances associated with a patient or laboratory request being tested.\nThis profile specifies which core elements shall be present and how these elements are used.","fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"}],"kind":"resource","abstract":false,"type":"Specimen","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Specimen","path":"Specimen","short":"Eswatini Health Information Exchange Specimen Profile","definition":"A sample to be used for analysis.","min":0,"max":"*","base":{"path":"Specimen","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"rim","map":"Role[classCode=SPEC]"}]},{"id":"Specimen.id","path":"Specimen.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Specimen.meta","path":"Specimen.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true},{"id":"Specimen.implicitRules","path":"Specimen.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Specimen.language","path":"Specimen.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages|4.0.1"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Specimen.text","path":"Specimen.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Specimen.contained","path":"Specimen.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Specimen.extension","path":"Specimen.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Specimen.modifierExtension","path":"Specimen.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Specimen.identifier","path":"Specimen.identifier","short":"External Identifier","definition":"Id for specimen.","min":0,"max":"*","base":{"path":"Specimen.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"SPM-2"},{"identity":"rim","map":".id"}]},{"id":"Specimen.accessionIdentifier","path":"Specimen.accessionIdentifier","short":"Identifier assigned by the lab","definition":"The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures.","min":0,"max":"1","base":{"path":"Specimen.accessionIdentifier","min":0,"max":"1"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"SPM-30 (v2.7+)"},{"identity":"rim","map":".participation[typeCode=SBJ].act[classCode=ACSN, moodCode=EVN].id"}]},{"id":"Specimen.status","path":"Specimen.status","short":"available | unavailable | unsatisfactory | entered-in-error","definition":"The availability of the specimen.","comment":"This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.","min":0,"max":"1","base":{"path":"Specimen.status","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"SpecimenStatus"}],"strength":"required","description":"Codes providing the status/availability of a specimen.","valueSet":"http://hl7.org/fhir/ValueSet/specimen-status|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.status"},{"identity":"v2","map":"SPM-20"},{"identity":"rim","map":"status"}]},{"id":"Specimen.type","path":"Specimen.type","short":"Type of specimen being collected","definition":"The kind of material that forms the specimen.","comment":"The type can change the way that a specimen is handled and drives what kind of analyses can properly be performed on the specimen. It is frequently used in diagnostic work flow decision making systems.","min":1,"max":"1","base":{"path":"Specimen.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":true,"binding":{"strength":"preferred","valueSet":"http://terminology.hl7.org/CodeSystem/v2-0487|3.0.0"},"mapping":[{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"v2","map":"SPM-4 and possibly SPM-5"},{"identity":"rim","map":".code"}]},{"id":"Specimen.subject","path":"Specimen.subject","short":"Patient associated with the specimen being collected","definition":"Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance or a device.","requirements":"Must know the subject context.","min":0,"max":"1","base":{"path":"Specimen.subject","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient|0.1.0"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"rim","map":".scoper or .scoper.playsRole"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Specimen.receivedTime","path":"Specimen.receivedTime","short":"The time when specimen was received for processing","definition":"Time when specimen was received for processing or testing.","min":0,"max":"1","base":{"path":"Specimen.receivedTime","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.done[x]"},{"identity":"v2","map":"SPM-18"},{"identity":"rim","map":".participation[typeCode=SBJ].act[code=SPCREC, moodCode=EVN].effectiveTime"}]},{"id":"Specimen.parent","path":"Specimen.parent","short":"Specimen from which this specimen originated","definition":"Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.","comment":"The parent specimen could be the source from which the current specimen is derived by some processing step (e.g. an aliquot or isolate or extracted nucleic acids from clinical samples) or one of many specimens that were combined to create a pooled sample.","min":0,"max":"*","base":{"path":"Specimen.parent","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".scoper (if parent) .player.scopesRole[classCode=SPEC].player (if child)"}]},{"id":"Specimen.request","path":"Specimen.request","short":"Why the specimen was collected","definition":"Details concerning a service request that required a specimen to be collected.","comment":"The request may be explicit or implied such with a ServiceRequest that requires a blood draw.","min":0,"max":"*","base":{"path":"Specimen.request","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"v2","map":"ORC? OBR-2/3?"},{"identity":"rim","map":"outboundRelationship[typeCode=FLFS].target"}]},{"id":"Specimen.collection","path":"Specimen.collection","short":"Specimen collection information","definition":"Date and Time of specimen collection and the person who collected the specimen","min":1,"max":"1","base":{"path":"Specimen.collection","min":0,"max":"1"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"SPM-14"},{"identity":"rim","map":".participation[typeCode=SBJ].act[classCode=SPECCOLLECT, moodCode=EVN]"}]},{"id":"Specimen.collection.id","path":"Specimen.collection.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Specimen.collection.extension","path":"Specimen.collection.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Specimen.collection.modifierExtension","path":"Specimen.collection.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Specimen.collection.collector","path":"Specimen.collection.collector","short":"Specimen collector","definition":"Person who collected the specimen.","min":1,"max":"1","base":{"path":"Specimen.collection.collector","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner|0.1.0"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.actor"},{"identity":"v2","map":"PRT"},{"identity":"rim","map":".participation[typeCode=PFM].role"}]},{"id":"Specimen.collection.collected[x]","path":"Specimen.collection.collected[x]","short":"Specimen collection date","definition":"Time when specimen was collected from subject - the physiologically relevant time.","min":1,"max":"1","base":{"path":"Specimen.collection.collected[x]","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.init"},{"identity":"v2","map":"SPM-17"},{"identity":"rim","map":".effectiveTime"}]},{"id":"Specimen.collection.duration","path":"Specimen.collection.duration","short":"How long it took to collect specimen","definition":"The span of time over which the collection of a specimen occurred.","min":0,"max":"1","base":{"path":"Specimen.collection.duration","min":0,"max":"1"},"type":[{"code":"Duration"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.init"}]},{"id":"Specimen.collection.quantity","path":"Specimen.collection.quantity","short":"The quantity of specimen collected","definition":"The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.","min":0,"max":"1","base":{"path":"Specimen.collection.quantity","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"SPM-12"},{"identity":"rim","map":".participation[typeCode=SBJ].role[classCode=SPEC].player.quantity"}]},{"id":"Specimen.collection.method","path":"Specimen.collection.method","short":"Technique used to perform collection","definition":"A coded value specifying the technique that is used to perform the procedure.","min":0,"max":"1","base":{"path":"Specimen.collection.method","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"SpecimenCollectionMethod"}],"strength":"example","description":"The technique that is used to perform the procedure.","valueSet":"http://hl7.org/fhir/ValueSet/specimen-collection-method|4.0.1"},"mapping":[{"identity":"v2","map":"SPM-7"},{"identity":"rim","map":".methodCode"}]},{"id":"Specimen.collection.bodySite","path":"Specimen.collection.bodySite","short":"Anatomical collection site","definition":"Anatomical location from which the specimen was collected (if subject is a patient). This is the target site. This element is not used for environmental specimens.","comment":"If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately) then use the standard extension [bodySite](http://hl7.org/fhir/R4/extension-bodysite.html).","min":0,"max":"1","base":{"path":"Specimen.collection.bodySite","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"BodySite"}],"strength":"example","description":"Codes describing anatomical locations. May include laterality.","valueSet":"http://hl7.org/fhir/ValueSet/body-site|4.0.1"},"mapping":[{"identity":"v2","map":"SPM-8 and SPM-9"},{"identity":"rim","map":".targetSiteCode"}]},{"id":"Specimen.collection.fastingStatus[x]","path":"Specimen.collection.fastingStatus[x]","short":"Whether or how long patient abstained from food and/or drink","definition":"Abstinence or reduction from some or all food, drink, or both, for a period of time prior to sample collection.","comment":"Representing fasting status using this element is preferred to representing it with an observation using a 'pre-coordinated code' such as LOINC 2005-7 (Calcium [Moles/​time] in 2 hour Urine --12 hours fasting), or using a component observation ` such as `Observation.component code` = LOINC 49541-6 (Fasting status - Reported).","requirements":"Many diagnostic tests require fasting to facilitate accurate interpretation.","min":0,"max":"1","base":{"path":"Specimen.collection.fastingStatus[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"},{"code":"Duration"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"FastingStatus"}],"strength":"extensible","description":"Codes describing the fasting status of the patient.","valueSet":"http://terminology.hl7.org/ValueSet/v2-0916|3.0.0"},"mapping":[{"identity":"v2","map":"OBR-"}]},{"id":"Specimen.processing","path":"Specimen.processing","short":"Processing and processing step details","definition":"Details concerning processing and processing steps for the specimen.","min":0,"max":"*","base":{"path":"Specimen.processing","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".participation[typeCode=SBJ].act[code=SPCTRT, moodCode=EVN]"}]},{"id":"Specimen.processing.id","path":"Specimen.processing.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Specimen.processing.extension","path":"Specimen.processing.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Specimen.processing.modifierExtension","path":"Specimen.processing.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Specimen.processing.description","path":"Specimen.processing.description","short":"Textual description of procedure","definition":"Textual description of procedure.","min":0,"max":"1","base":{"path":"Specimen.processing.description","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".text"}]},{"id":"Specimen.processing.procedure","path":"Specimen.processing.procedure","short":"Indicates the treatment step applied to the specimen","definition":"A coded value specifying the procedure used to process the specimen.","min":0,"max":"1","base":{"path":"Specimen.processing.procedure","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"SpecimenProcessingProcedure"}],"strength":"example","description":"Type indicating the technique used to process the specimen.","valueSet":"http://hl7.org/fhir/ValueSet/specimen-processing-procedure|4.0.1"},"mapping":[{"identity":"rim","map":".code"}]},{"id":"Specimen.processing.additive","path":"Specimen.processing.additive","short":"Material used in the processing step","definition":"Material used in the processing step.","min":0,"max":"*","base":{"path":"Specimen.processing.additive","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Substance|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"SPM-6"},{"identity":"rim","map":".participation[typeCode=CSM].role[classCode=ADTV].code"}]},{"id":"Specimen.processing.time[x]","path":"Specimen.processing.time[x]","short":"Date and time of specimen processing","definition":"A record of the time or period when the specimen processing occurred. For example the time of sample fixation or the period of time the sample was in formalin.","min":0,"max":"1","base":{"path":"Specimen.processing.time[x]","min":0,"max":"1"},"type":[{"code":"dateTime"},{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".effectiveTime"}]},{"id":"Specimen.container","path":"Specimen.container","short":"Direct container of specimen (tube/slide, etc.)","definition":"The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.","min":0,"max":"*","base":{"path":"Specimen.container","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".player.scopingRole[classCode=CONT].scoper"}]},{"id":"Specimen.container.id","path":"Specimen.container.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Specimen.container.extension","path":"Specimen.container.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Specimen.container.modifierExtension","path":"Specimen.container.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Specimen.container.identifier","path":"Specimen.container.identifier","short":"Id for the container","definition":"Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances.","min":0,"max":"*","base":{"path":"Specimen.container.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"SAC-3"},{"identity":"rim","map":".id"}]},{"id":"Specimen.container.description","path":"Specimen.container.description","short":"Textual description of the container","definition":"Textual description of the container.","min":0,"max":"1","base":{"path":"Specimen.container.description","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".desc"}]},{"id":"Specimen.container.type","path":"Specimen.container.type","short":"Kind of container directly associated with specimen","definition":"The type of container associated with the specimen (e.g. slide, aliquot, etc.).","min":0,"max":"1","base":{"path":"Specimen.container.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"SpecimenContainerType"}],"strength":"example","description":"Type of specimen container.","valueSet":"http://hl7.org/fhir/ValueSet/specimen-container-type|4.0.1"},"mapping":[{"identity":"v2","map":"SPM-27"},{"identity":"rim","map":".code"}]},{"id":"Specimen.container.capacity","path":"Specimen.container.capacity","short":"Container volume or size","definition":"The capacity (volume or other measure) the container may contain.","min":0,"max":"1","base":{"path":"Specimen.container.capacity","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"one of: SAC 16, SAC17 and SAC 20, or SAC 21 and SAC 20"},{"identity":"rim","map":".quantity"}]},{"id":"Specimen.container.specimenQuantity","path":"Specimen.container.specimenQuantity","short":"Quantity of specimen within container","definition":"The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type.","min":0,"max":"1","base":{"path":"Specimen.container.specimenQuantity","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"SAC-23 (value) SAC-24 (units"},{"identity":"rim","map":".playedRole[classCode=CONT].quantity"}]},{"id":"Specimen.container.additive[x]","path":"Specimen.container.additive[x]","short":"Additive associated with container","definition":"Introduced substance to preserve, maintain or enhance the specimen. Examples: Formalin, Citrate, EDTA.","min":0,"max":"1","base":{"path":"Specimen.container.additive[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"},{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Substance|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"SpecimenContainerAdditive"}],"strength":"example","description":"Substance added to specimen container.","valueSet":"http://terminology.hl7.org/ValueSet/v2-0371|3.0.0"},"mapping":[{"identity":"v2","map":"SAC-27"},{"identity":"rim","map":".scopesRole[classCode=ADTV].player"}]},{"id":"Specimen.condition","path":"Specimen.condition","short":"State of the specimen","definition":"A mode or state of being that describes the nature of the specimen.","comment":"Specimen condition is an observation made about the specimen. It's a point-in-time assessment. It can be used to assess its quality or appropriateness for a specific test.","requirements":"The specimen condition can be used to assess its quality or appropriateness for a specific test.","min":0,"max":"*","base":{"path":"Specimen.condition","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"SpecimenCondition"}],"strength":"extensible","description":"Codes describing the state of the specimen.","valueSet":"http://terminology.hl7.org/ValueSet/v2-0493|3.0.0"},"mapping":[{"identity":"v2","map":"SPM-24"}]},{"id":"Specimen.note","path":"Specimen.note","short":"Comments","definition":"To communicate any details or issues about the specimen or during the specimen collection. (for example: broken vial, sent with patient, frozen).","min":0,"max":"*","base":{"path":"Specimen.note","min":0,"max":"*"},"type":[{"code":"Annotation"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX"},{"identity":"rim","map":".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"}]}]},"differential":{"element":[{"id":"Specimen","path":"Specimen","short":"Eswatini Health Information Exchange Specimen Profile"},{"id":"Specimen.id","path":"Specimen.id","min":1},{"id":"Specimen.type","path":"Specimen.type","short":"Type of specimen being collected","min":1,"mustSupport":true,"binding":{"strength":"preferred","valueSet":"http://terminology.hl7.org/CodeSystem/v2-0487|3.0.0"}},{"id":"Specimen.subject","path":"Specimen.subject","short":"Patient associated with the specimen being collected","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient|0.1.0"]}]},{"id":"Specimen.collection","path":"Specimen.collection","short":"Specimen collection information","definition":"Date and Time of specimen collection and the person who collected the specimen","min":1},{"id":"Specimen.collection.collector","path":"Specimen.collection.collector","short":"Specimen collector","min":1,"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner|0.1.0"]}],"mustSupport":true},{"id":"Specimen.collection.collected[x]","path":"Specimen.collection.collected[x]","short":"Specimen collection date","min":1,"type":[{"code":"dateTime"}],"mustSupport":true}]}},"SzMedication":{"resourceType":"StructureDefinition","id":"SzMedication","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzMedication","version":"0.1.0","name":"EswatiniMedication","title":"Eswatini Medication Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Definition of Eswatinit Medication Profile","fhirVersion":"4.0.1","mapping":[{"identity":"script10.6","uri":"http://ncpdp.org/SCRIPT10_6","name":"Mapping to NCPDP SCRIPT 10.6"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"}],"kind":"resource","abstract":false,"type":"Medication","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Medication","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Medication","path":"Medication","short":"Definition of a Medication","definition":"This resource is primarily used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use.","min":0,"max":"*","base":{"path":"Medication","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"script10.6","map":"NewRx/MedicationPrescribed\r-or-\rRxFill/MedicationDispensed\r-or-\rRxHistoryResponse/MedicationDispensed\r-or-\rRxHistoryResponse/MedicationPrescribed"},{"identity":"rim","map":"ManufacturedProduct[classCode=ADMM]"}]},{"id":"Medication.id","path":"Medication.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Medication.meta","path":"Medication.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"Medication.implicitRules","path":"Medication.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Medication.language","path":"Medication.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Medication.text","path":"Medication.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Medication.contained","path":"Medication.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Medication.extension","path":"Medication.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Medication.modifierExtension","path":"Medication.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Medication.identifier","path":"Medication.identifier","short":"Business identifier for this medication","definition":"Business identifier for this medication.","comment":"The serial number could be included as an identifier.","min":0,"max":"*","base":{"path":"Medication.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.identifier"},{"identity":"rim","map":".id"}]},{"id":"Medication.code","path":"Medication.code","short":"ELMIS Product Code","definition":"ELMIS product code used to identify the medication","comment":"Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) will have the coding.userSelected set to true. As described in the coding datatype: \"A coding may be marked as a \"userSelected\" if a user selected the particular coded value in a user interface (e.g. the user selects an item in a pick-list). If a user selected coding exists, it is the preferred choice for performing translations etc. Other codes can only be literal translations to alternative code systems, or codes at a lower level of granularity (e.g. a generic code for a vendor-specific primary one).","min":1,"max":"1","base":{"path":"Medication.code","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzProductCodeVS"},"mapping":[{"identity":"script10.6","map":"coding.code = //element(*,MedicationType)/DrugCoded/ProductCode\r\rcoding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier\r\rcoding.display = //element(*,MedicationType)/DrugDescription"},{"identity":"w5","map":"FiveWs.class"},{"identity":"v2","map":"RXO-1.1-Requested Give Code.code / RXE-2.1-Give Code.code / RXD-2.1-Dispense/Give Code.code / RXG-4.1-Give Code.code /RXA-5.1-Administered Code.code / RXC-2.1 Component Code"},{"identity":"rim","map":".code"}]},{"id":"Medication.status","path":"Medication.status","short":"active | inactive | entered-in-error","definition":"A code to indicate if the medication is in active use.","comment":"This status is intended to identify if the medication in a local system is in active use within a drug database or inventory. For example, a pharmacy system may create a new drug file record for a compounded product \"ABC Hospital Special Cream\" with an active status. At some point in the future, it may be determined that the drug record was created with an error and the status is changed to \"entered in error\". This status is not intended to specify if a medication is part of a particular formulary. It is possible that the drug record may be referenced by multiple formularies or catalogues and each of those entries would have a separate status.","min":0,"max":"1","base":{"path":"Medication.status","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element changes the interpretation of all descriptive attributes.","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationStatus"}],"strength":"required","description":"A coded concept defining if the medication is in active use.","valueSet":"http://hl7.org/fhir/ValueSet/medication-status|4.0.1"},"mapping":[{"identity":"rim","map":".statusCode"}]},{"id":"Medication.manufacturer","path":"Medication.manufacturer","short":"Manufacturer of the item","definition":"Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.","min":0,"max":"1","base":{"path":"Medication.manufacturer","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"script10.6","map":"no mapping"},{"identity":"w5","map":"FiveWs.actor"},{"identity":"v2","map":"RXD-20-Substance Manufacturer Name / RXG-21-Substance Manufacturer Name / RXA-17-Substance Manufacturer Name"},{"identity":"rim","map":".player.scopingRole[typeCode=MANU].scoper"}]},{"id":"Medication.form","path":"Medication.form","short":"powder | tablets | capsule +","definition":"Describes the form of the item. Powder; tablets; capsule.","comment":"When Medication is referenced from MedicationRequest, this is the ordered form. When Medication is referenced within MedicationDispense, this is the dispensed form. When Medication is referenced within MedicationAdministration, this is administered form.","min":0,"max":"1","base":{"path":"Medication.form","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationForm"}],"strength":"example","description":"A coded concept defining the form of a medication.","valueSet":"http://hl7.org/fhir/ValueSet/medication-form-codes|4.0.1"},"mapping":[{"identity":"script10.6","map":"coding.code = //element(*,DrugCodedType)/FormCode\r\rcoding.system = //element(*,DrugCodedType)/FormSourceCode"},{"identity":"v2","map":"RXO-5-Requested Dosage Form / RXE-6-Give Dosage Form / RXD-6-Actual Dosage Form / RXG-8-Give Dosage Form / RXA-8-Administered Dosage Form"},{"identity":"rim","map":".formCode"}]},{"id":"Medication.amount","path":"Medication.amount","short":"Amount of drug in package","definition":"Specific amount of the drug in the packaged product. For example, when specifying a product that has the same strength (For example, Insulin glargine 100 unit per mL solution for injection), this attribute provides additional clarification of the package amount (For example, 3 mL, 10mL, etc.).","min":0,"max":"1","base":{"path":"Medication.amount","min":0,"max":"1"},"type":[{"code":"Ratio"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":".quantity"}]},{"id":"Medication.ingredient","path":"Medication.ingredient","short":"Active or inactive ingredient","definition":"Identifies a particular constituent of interest in the product.","comment":"The ingredients need not be a complete list. If an ingredient is not specified, this does not indicate whether an ingredient is present or absent. If an ingredient is specified it does not mean that all ingredients are specified. It is possible to specify both inactive and active ingredients.","min":0,"max":"*","base":{"path":"Medication.ingredient","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".scopesRole[typeCode=INGR]"}]},{"id":"Medication.ingredient.id","path":"Medication.ingredient.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Medication.ingredient.extension","path":"Medication.ingredient.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Medication.ingredient.modifierExtension","path":"Medication.ingredient.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Medication.ingredient.item[x]","path":"Medication.ingredient.item[x]","short":"The actual ingredient or content","definition":"The actual ingredient - either a substance (simple ingredient) or another medication of a medication.","requirements":"The ingredient may reference a substance (for example, amoxicillin) or another medication (for example in the case of a compounded product, Glaxal Base).","min":1,"max":"1","base":{"path":"Medication.ingredient.item[x]","min":1,"max":"1"},"type":[{"code":"CodeableConcept"},{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Substance|4.0.1","http://hl7.org/fhir/StructureDefinition/Medication|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"script10.6","map":"coding.code = //element(*,MedicationType)/DrugCoded/ProductCode\r\rcoding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier\r\rcoding.display = //element(*,MedicationType)/DrugDescription"},{"identity":"v2","map":"RXC-2-Component Code if medication: RXO-1-Requested Give Code / RXE-2-Give Code / RXD-2-Dispense/Give Code / RXG-4-Give Code / RXA-5-Administered Code"},{"identity":"rim","map":".player"}]},{"id":"Medication.ingredient.isActive","path":"Medication.ingredient.isActive","short":"Active ingredient indicator","definition":"Indication of whether this ingredient affects the therapeutic action of the drug.","requirements":"True indicates that the ingredient affects the therapeutic action of the drug (i.e. active). \rFalse indicates that the ingredient does not affect the therapeutic action of the drug (i.e. inactive).","min":0,"max":"1","base":{"path":"Medication.ingredient.isActive","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"NA"}]},{"id":"Medication.ingredient.strength","path":"Medication.ingredient.strength","short":"Quantity of ingredient present","definition":"Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet. This is expressed as a ratio where the numerator is 250mg and the denominator is 1 tablet.","min":0,"max":"1","base":{"path":"Medication.ingredient.strength","min":0,"max":"1"},"type":[{"code":"Ratio"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"script10.6","map":"//element(*,DrugCodedType)/Strength"},{"identity":"v2","map":"RXC-3-Component Amount & RXC-4-Component Units if medication: RXO-2-Requested Give Amount - Minimum & RXO-4-Requested Give Units / RXO-3-Requested Give Amount - Maximum & RXO-4-Requested Give Units / RXO-11-Requested Dispense Amount & RXO-12-Requested Dispense Units / RXE-3-Give Amount - Minimum & RXE-5-Give Units / RXE-4-Give Amount - Maximum & RXE-5-Give Units / RXE-10-Dispense Amount & RXE-10-Dispense Units"},{"identity":"rim","map":".quantity"}]},{"id":"Medication.batch","path":"Medication.batch","short":"Details about packaged medications","definition":"Information that only applies to packages (not products).","min":0,"max":"1","base":{"path":"Medication.batch","min":0,"max":"1"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"script10.6","map":"no mapping"},{"identity":"rim","map":".player[classCode=CONT]"}]},{"id":"Medication.batch.id","path":"Medication.batch.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Medication.batch.extension","path":"Medication.batch.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Medication.batch.modifierExtension","path":"Medication.batch.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Medication.batch.lotNumber","path":"Medication.batch.lotNumber","short":"Identifier assigned to batch","definition":"The assigned lot number of a batch of the specified product.","min":0,"max":"1","base":{"path":"Medication.batch.lotNumber","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"script10.6","map":"no mapping"},{"identity":"v2","map":"RXA-15 Substance Lot Number / RXG-19 Substance Lot Number"},{"identity":"rim","map":".id"}]},{"id":"Medication.batch.expirationDate","path":"Medication.batch.expirationDate","short":"When batch will expire","definition":"When this specific batch of product will expire.","min":0,"max":"1","base":{"path":"Medication.batch.expirationDate","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"script10.6","map":"no mapping"},{"identity":"v2","map":"RXA-16 Substance Expiration Date / RXG-20 Substance Expiration Date"},{"identity":"rim","map":"participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].expirationTime"}]}]},"differential":{"element":[{"id":"Medication","path":"Medication"},{"id":"Medication.id","path":"Medication.id","min":1},{"id":"Medication.code","path":"Medication.code","short":"ELMIS Product Code","definition":"ELMIS product code used to identify the medication","min":1,"mustSupport":true,"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzProductCodeVS"}}]}},"SzMedicationRequest":{"resourceType":"StructureDefinition","id":"SzMedicationRequest","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzMedicationRequest","version":"0.1.0","name":"EswatiniMedicationRequest","title":"Eswatini Medication Request Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Definition of Eswatinit Medication Request Profile","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"script10.6","uri":"http://ncpdp.org/SCRIPT10_6","name":"Mapping to NCPDP SCRIPT 10.6"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"}],"kind":"resource","abstract":false,"type":"MedicationRequest","baseDefinition":"http://hl7.org/fhir/StructureDefinition/MedicationRequest","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"MedicationRequest","path":"MedicationRequest","short":"Ordering of medication for patient or group","definition":"An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.","alias":["Prescription","Order"],"min":0,"max":"*","base":{"path":"MedicationRequest","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Request"},{"identity":"script10.6","map":"Message/Body/NewRx"},{"identity":"rim","map":"CombinedMedicationRequest"}]},{"id":"MedicationRequest.id","path":"MedicationRequest.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"MedicationRequest.meta","path":"MedicationRequest.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"MedicationRequest.implicitRules","path":"MedicationRequest.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"MedicationRequest.language","path":"MedicationRequest.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"MedicationRequest.text","path":"MedicationRequest.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"MedicationRequest.contained","path":"MedicationRequest.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationRequest.extension","path":"MedicationRequest.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationRequest.modifierExtension","path":"MedicationRequest.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationRequest.identifier","path":"MedicationRequest.identifier","short":"External ids for this request","definition":"Identifiers associated with this medication request that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.","comment":"This is a business identifier, not a resource identifier.","min":0,"max":"*","base":{"path":"MedicationRequest.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.identifier"},{"identity":"script10.6","map":"Message/Header/PrescriberOrderNumber"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"ORC-2-Placer Order Number / ORC-3-Filler Order Number"},{"identity":"rim","map":".id"}]},{"id":"MedicationRequest.status","path":"MedicationRequest.status","short":"active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown","definition":"A code specifying the current state of the order. Generally, this will be active or completed state.","comment":"This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.","min":1,"max":"1","base":{"path":"MedicationRequest.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationRequestStatus"}],"strength":"required","description":"A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.","valueSet":"http://hl7.org/fhir/ValueSet/medicationrequest-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.status"},{"identity":"script10.6","map":"no mapping"},{"identity":"w5","map":"FiveWs.status"},{"identity":"rim","map":".statusCode"}]},{"id":"MedicationRequest.statusReason","path":"MedicationRequest.statusReason","short":"Reason for current status","definition":"Captures the reason for the current state of the MedicationRequest.","comment":"This is generally only used for \"exception\" statuses such as \"suspended\" or \"cancelled\". The reason why the MedicationRequest was created at all is captured in reasonCode, not here.","min":0,"max":"1","base":{"path":"MedicationRequest.statusReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationRequestStatusReason"}],"strength":"example","description":"Identifies the reasons for a given status.","valueSet":"http://hl7.org/fhir/ValueSet/medicationrequest-status-reason|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.statusReason"},{"identity":"rim","map":".inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde"}]},{"id":"MedicationRequest.intent","path":"MedicationRequest.intent","short":"proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option","definition":"Whether the request is a proposal, plan, or an original order.","comment":"It is expected that the type of requester will be restricted for different stages of a MedicationRequest. For example, Proposals can be created by a patient, relatedPerson, Practitioner or Device. Plans can be created by Practitioners, Patients, RelatedPersons and Devices. Original orders can be created by a Practitioner only.\r\rAn instance-order is an instantiation of a request or order and may be used to populate Medication Administration Record.\r\rThis element is labeled as a modifier because the intent alters when and how the resource is actually applicable.","min":1,"max":"1","base":{"path":"MedicationRequest.intent","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationRequestIntent"}],"strength":"required","description":"The kind of medication order.","valueSet":"http://hl7.org/fhir/ValueSet/medicationrequest-intent|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.intent"},{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)"}]},{"id":"MedicationRequest.category","path":"MedicationRequest.category","short":"Type of medication usage","definition":"Indicates the type of medication request (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).","comment":"The category can be used to include where the medication is expected to be consumed or other types of requests.","min":0,"max":"*","base":{"path":"MedicationRequest.category","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationRequestCategory"}],"strength":"example","description":"A coded concept identifying the category of medication request. For example, where the medication is to be consumed or administered, or the type of medication treatment.","valueSet":"http://hl7.org/fhir/ValueSet/medicationrequest-category|4.0.1"},"mapping":[{"identity":"script10.6","map":"Message/Body/NewRx/MedicationPrescribed/Directions\r\ror \r\rMessage/Body/NewRx/MedicationPrescribed/StructuredSIG"},{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication usage\"].value"}]},{"id":"MedicationRequest.priority","path":"MedicationRequest.priority","short":"routine | urgent | asap | stat","definition":"Indicates how quickly the Medication Request should be addressed with respect to other requests.","min":0,"max":"1","base":{"path":"MedicationRequest.priority","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationRequestPriority"}],"strength":"required","description":"Identifies the level of importance to be assigned to actioning the request.","valueSet":"http://hl7.org/fhir/ValueSet/request-priority|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.priority"},{"identity":"w5","map":"FiveWs.grade"},{"identity":"rim","map":".priorityCode"}]},{"id":"MedicationRequest.doNotPerform","path":"MedicationRequest.doNotPerform","short":"True if request is prohibiting action","definition":"If true indicates that the provider is asking for the medication request not to occur.","comment":"If do not perform is not specified, the request is a positive request e.g. \"do perform\".","min":0,"max":"1","base":{"path":"MedicationRequest.doNotPerform","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because this element negates the request to occur (ie, this is a request for the medication not to be ordered or prescribed, etc)","isSummary":true,"mapping":[{"identity":"rim","map":"SubstanceAdministration.actionNegationInd"}]},{"id":"MedicationRequest.reported[x]","path":"MedicationRequest.reported[x]","short":"Reported rather than primary record","definition":"Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.","min":0,"max":"1","base":{"path":"MedicationRequest.reported[x]","min":0,"max":"1"},"type":[{"code":"boolean"},{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1","http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":".participation[typeCode=INF].role"}]},{"id":"MedicationRequest.medication[x]","path":"MedicationRequest.medication[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"closed"},"short":"Medication to be taken","definition":"Identifies the medication being requested. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.","comment":"If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the Medication resource is recommended. For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource.","min":1,"max":"1","base":{"path":"MedicationRequest.medication[x]","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationCode"}],"strength":"example","description":"A coded concept identifying substance or product that can be ordered.","valueSet":"http://hl7.org/fhir/ValueSet/medication-codes|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.code"},{"identity":"script10.6","map":"Message/Body/NewRx/MedicationPrescribed\r\rMedication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode\r\rMedication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier\r\rMedication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription"},{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"v2","map":"RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code"},{"identity":"rim","map":"consumable.administrableMedication"}]},{"id":"MedicationRequest.medication[x]:medicationCodeableConcept","path":"MedicationRequest.medication[x]","sliceName":"medicationCodeableConcept","short":"Medication to be taken","definition":"Identifies the medication being requested. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.","comment":"If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the Medication resource is recommended. For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource.","min":1,"max":"1","base":{"path":"MedicationRequest.medication[x]","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzProductCodeVS"},"mapping":[{"identity":"workflow","map":"Request.code"},{"identity":"script10.6","map":"Message/Body/NewRx/MedicationPrescribed\r\rMedication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode\r\rMedication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier\r\rMedication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription"},{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"v2","map":"RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code"},{"identity":"rim","map":"consumable.administrableMedication"}]},{"id":"MedicationRequest.subject","path":"MedicationRequest.subject","short":"Who or group medication request is for","definition":"A link to a resource representing the person or set of individuals to whom the medication will be given.","comment":"The subject on a medication request is mandatory. For the secondary use case where the actual subject is not provided, there still must be an anonymized subject specified.","min":1,"max":"1","base":{"path":"MedicationRequest.subject","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.subject"},{"identity":"script10.6","map":"Message/Body/NewRx/Patient\r\r(need detail to link to specific patient … Patient.Identification in SCRIPT)"},{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"PID-3-Patient ID List"},{"identity":"rim","map":".participation[typeCode=AUT].role"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"MedicationRequest.encounter","path":"MedicationRequest.encounter","short":"Encounter created as part of encounter/admission/stay","definition":"The Encounter during which this [x] was created or to which the creation of this record is tightly associated.","comment":"This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.\" If there is a need to link to episodes of care they will be handled with an extension.","min":0,"max":"1","base":{"path":"MedicationRequest.encounter","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.context"},{"identity":"script10.6","map":"no mapping"},{"identity":"w5","map":"FiveWs.context"},{"identity":"v2","map":"PV1-19-Visit Number"},{"identity":"rim","map":".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=\"type of encounter or episode\"]"}]},{"id":"MedicationRequest.supportingInformation","path":"MedicationRequest.supportingInformation","short":"Information to support ordering of the medication","definition":"Include additional information (for example, patient height and weight) that supports the ordering of the medication.","min":0,"max":"*","base":{"path":"MedicationRequest.supportingInformation","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.supportingInfo"},{"identity":"w5","map":"FiveWs.context"},{"identity":"rim","map":".outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]"}]},{"id":"MedicationRequest.authoredOn","path":"MedicationRequest.authoredOn","short":"Medication Request Date","definition":"Date when the medication was requested","min":1,"max":"1","base":{"path":"MedicationRequest.authoredOn","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.authoredOn"},{"identity":"script10.6","map":"Message/Body/NewRx/MedicationPrescribed/WrittenDate"},{"identity":"w5","map":"FiveWs.recorded"},{"identity":"v2","map":"RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction"},{"identity":"rim","map":"author.time"}]},{"id":"MedicationRequest.requester","path":"MedicationRequest.requester","short":"Who/What requested the Request","definition":"The individual, organization, or device that initiated the request and has responsibility for its activation.","min":0,"max":"1","base":{"path":"MedicationRequest.requester","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.requester"},{"identity":"w5","map":"FiveWs.author"},{"identity":"rim","map":".participation[typeCode=AUT].role"}]},{"id":"MedicationRequest.performer","path":"MedicationRequest.performer","short":"Intended performer of administration","definition":"The specified desired performer of the medication treatment (e.g. the performer of the medication administration).","min":0,"max":"1","base":{"path":"MedicationRequest.performer","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1","http://hl7.org/fhir/StructureDefinition/Organization|4.0.1","http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/Device|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1","http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.performer"},{"identity":"w5","map":"FiveWs.actor"},{"identity":"rim","map":".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]"}]},{"id":"MedicationRequest.performerType","path":"MedicationRequest.performerType","short":"Desired kind of performer of the medication administration","definition":"Indicates the type of performer of the administration of the medication.","comment":"If specified without indicating a performer, this indicates that the performer must be of the specified type. If specified with a performer then it indicates the requirements of the performer if the designated performer is not available.","min":0,"max":"1","base":{"path":"MedicationRequest.performerType","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationRequestPerformerType"}],"strength":"example","description":"Identifies the type of individual that is desired to administer the medication.","valueSet":"http://hl7.org/fhir/ValueSet/performer-role|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.performerType"},{"identity":"rim","map":".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code"}]},{"id":"MedicationRequest.recorder","path":"MedicationRequest.recorder","short":"Person who entered the request","definition":"The person who entered the order on behalf of another individual for example in the case of a verbal or a telephone order.","min":0,"max":"1","base":{"path":"MedicationRequest.recorder","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"w5","map":"FiveWs.who"},{"identity":"rim","map":".participation[typeCode=TRANS].role[classCode=ASSIGNED].code (HealthcareProviderType)"}]},{"id":"MedicationRequest.reasonCode","path":"MedicationRequest.reasonCode","short":"Reason or indication for ordering or not ordering the medication","definition":"The reason or the indication for ordering or not ordering the medication.","comment":"This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonReference.","min":0,"max":"*","base":{"path":"MedicationRequest.reasonCode","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationRequestReason"}],"strength":"example","description":"A coded concept indicating why the medication was ordered.","valueSet":"http://hl7.org/fhir/ValueSet/condition-code|4.0.1"},"mapping":[{"identity":"workflow","map":"Request.reasonCode"},{"identity":"script10.6","map":"Message/Body/NewRx/MedicationPrescribed/Diagnosis/Primary/Value"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"v2","map":"ORC-16-Order Control Code Reason /RXE-27-Give Indication/RXO-20-Indication / RXD-21-Indication / RXG-22-Indication / RXA-19-Indication"},{"identity":"rim","map":"reason.observation.reasonCode"}]},{"id":"MedicationRequest.reasonReference","path":"MedicationRequest.reasonReference","short":"Condition or observation that supports why the prescription is being written","definition":"Condition or observation that supports why the medication was ordered.","comment":"This is a reference to a condition or observation that is the reason for the medication order. If only a code exists, use reasonCode.","min":0,"max":"*","base":{"path":"MedicationRequest.reasonReference","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Condition|4.0.1","http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.reasonReference"},{"identity":"script10.6","map":"no mapping"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"rim","map":"reason.observation[code=ASSERTION].value"}]},{"id":"MedicationRequest.instantiatesCanonical","path":"MedicationRequest.instantiatesCanonical","short":"Instantiates FHIR protocol or definition","definition":"The URL pointing to a protocol, guideline, orderset, or other definition that is adhered to in whole or in part by this MedicationRequest.","min":0,"max":"*","base":{"path":"MedicationRequest.instantiatesCanonical","min":0,"max":"*"},"type":[{"code":"canonical"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.instantiates"},{"identity":"rim","map":".outboundRelationship[typeCode=DEFN].target"}]},{"id":"MedicationRequest.instantiatesUri","path":"MedicationRequest.instantiatesUri","short":"Instantiates external protocol or definition","definition":"The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this MedicationRequest.","min":0,"max":"*","base":{"path":"MedicationRequest.instantiatesUri","min":0,"max":"*"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":".outboundRelationship[typeCode=DEFN].target"}]},{"id":"MedicationRequest.basedOn","path":"MedicationRequest.basedOn","short":"What request fulfills","definition":"A plan or request that is fulfilled in whole or in part by this medication request.","min":0,"max":"*","base":{"path":"MedicationRequest.basedOn","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.basedOn"},{"identity":"rim","map":".outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]"}]},{"id":"MedicationRequest.groupIdentifier","path":"MedicationRequest.groupIdentifier","short":"Composite request this is part of","definition":"A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition or prescription.","requirements":"Requests are linked either by a \"basedOn\" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.","min":0,"max":"1","base":{"path":"MedicationRequest.groupIdentifier","min":0,"max":"1"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Request.groupIdentifier"},{"identity":"rim","map":".outboundRelationship(typeCode=COMP].target[classCode=SBADM, moodCode=INT].id"}]},{"id":"MedicationRequest.courseOfTherapyType","path":"MedicationRequest.courseOfTherapyType","short":"Overall pattern of medication administration","definition":"The description of the overall patte3rn of the administration of the medication to the patient.","comment":"This attribute should not be confused with the protocol of the medication.","min":0,"max":"1","base":{"path":"MedicationRequest.courseOfTherapyType","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationRequestCourseOfTherapy"}],"strength":"example","description":"Identifies the overall pattern of medication administratio.","valueSet":"http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy|4.0.1"},"mapping":[{"identity":"rim","map":"Act.code where classCode = LIST and moodCode = EVN"}]},{"id":"MedicationRequest.insurance","path":"MedicationRequest.insurance","short":"Associated insurance coverage","definition":"Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.","min":0,"max":"*","base":{"path":"MedicationRequest.insurance","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Coverage|4.0.1","http://hl7.org/fhir/StructureDefinition/ClaimResponse|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.insurance"},{"identity":"rim","map":".outboundRelationship[typeCode=COVBY].target"}]},{"id":"MedicationRequest.note","path":"MedicationRequest.note","short":"Information about the prescription","definition":"Extra information about the prescription that could not be conveyed by the other attributes.","min":0,"max":"*","base":{"path":"MedicationRequest.note","min":0,"max":"*"},"type":[{"code":"Annotation"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.note"},{"identity":"script10.6","map":"Message/Body/NewRx/MedicationPrescribed/Note"},{"identity":"rim","map":".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=\"annotation\"].value"}]},{"id":"MedicationRequest.dosageInstruction","path":"MedicationRequest.dosageInstruction","short":"Dosage Instruction","definition":"How the medication should be taken e.g 1 tablet 3 times a day before food.","comment":"There are examples where a medication request may include the option of an oral dose or an Intravenous or Intramuscular dose. For example, \"Ondansetron 8mg orally or IV twice a day as needed for nausea\" or \"Compazine® (prochlorperazine) 5-10mg PO or 25mg PR bid prn nausea or vomiting\". In these cases, two medication requests would be created that could be grouped together. The decision on which dose and route of administration to use is based on the patient's condition at the time the dose is needed.","min":1,"max":"*","base":{"path":"MedicationRequest.dosageInstruction","min":0,"max":"*"},"type":[{"code":"Dosage"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.occurrence[x]"},{"identity":"rim","map":"see dosageInstruction mapping"}]},{"id":"MedicationRequest.dosageInstruction.id","path":"MedicationRequest.dosageInstruction.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationRequest.dosageInstruction.extension","path":"MedicationRequest.dosageInstruction.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationRequest.dosageInstruction.modifierExtension","path":"MedicationRequest.dosageInstruction.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationRequest.dosageInstruction.sequence","path":"MedicationRequest.dosageInstruction.sequence","short":"The order of the dosage instructions","definition":"Indicates the order in which the dosage instructions should be applied or interpreted.","requirements":"If the sequence number of multiple Dosages is the same, then it is implied that the instructions are to be treated as concurrent. If the sequence number is different, then the Dosages are intended to be sequential.","min":0,"max":"1","base":{"path":"Dosage.sequence","min":0,"max":"1"},"type":[{"code":"integer"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"TQ1-1"},{"identity":"rim","map":".text"}]},{"id":"MedicationRequest.dosageInstruction.text","path":"MedicationRequest.dosageInstruction.text","short":"Dosage Instruction as Text","definition":"Text ourlining how the medication should be taken","requirements":"Free text dosage instructions can be used for cases where the instructions are too complex to code. The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated. If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing. Additional information about administration or preparation of the medication should be included as text.","min":1,"max":"1","base":{"path":"Dosage.text","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"RXO-6; RXE-21"},{"identity":"rim","map":".text"}]},{"id":"MedicationRequest.dosageInstruction.additionalInstruction","path":"MedicationRequest.dosageInstruction.additionalInstruction","short":"Supplemental instruction or warnings to the patient - e.g. \"with meals\", \"may cause drowsiness\"","definition":"Supplemental instructions to the patient on how to take the medication (e.g. \"with meals\" or\"take half to one hour before food\") or warnings for the patient about the medication (e.g. \"may cause drowsiness\" or \"avoid exposure of skin to direct sunlight or sunlamps\").","comment":"Information about administration or preparation of the medication (e.g. \"infuse as rapidly as possibly via intraperitoneal port\" or \"immediately following drug x\") should be populated in dosage.text.","requirements":"Additional instruction is intended to be coded, but where no code exists, the element could include text. For example, \"Swallow with plenty of water\" which might or might not be coded.","min":0,"max":"*","base":{"path":"Dosage.additionalInstruction","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"AdditionalInstruction"}],"strength":"example","description":"A coded concept identifying additional instructions such as \"take with water\" or \"avoid operating heavy machinery\".","valueSet":"http://hl7.org/fhir/ValueSet/additional-instruction-codes|4.0.1"},"mapping":[{"identity":"v2","map":"RXO-7"},{"identity":"rim","map":".text"}]},{"id":"MedicationRequest.dosageInstruction.patientInstruction","path":"MedicationRequest.dosageInstruction.patientInstruction","short":"Patient or consumer oriented instructions","definition":"Instructions in terms that are understood by the patient or consumer.","min":0,"max":"1","base":{"path":"Dosage.patientInstruction","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"RXO-7"},{"identity":"rim","map":".text"}]},{"id":"MedicationRequest.dosageInstruction.timing","path":"MedicationRequest.dosageInstruction.timing","short":"When medication should be administered","definition":"When medication should be administered.","comment":"This attribute might not always be populated while the Dosage.text is expected to be populated. If both are populated, then the Dosage.text should reflect the content of the Dosage.timing.","requirements":"The timing schedule for giving the medication to the patient. This data type allows many different expressions. For example: \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\". Sometimes, a rate can imply duration when expressed as total volume / duration (e.g. 500mL/2 hours implies a duration of 2 hours). However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.","min":0,"max":"1","base":{"path":"Dosage.timing","min":0,"max":"1"},"type":[{"code":"Timing"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":".effectiveTime"}]},{"id":"MedicationRequest.dosageInstruction.asNeeded[x]","path":"MedicationRequest.dosageInstruction.asNeeded[x]","short":"Take \"as needed\" (for x)","definition":"Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).","comment":"Can express \"as needed\" without a reason by setting the Boolean = True. In this case the CodeableConcept is not populated. Or you can express \"as needed\" with a reason by including the CodeableConcept. In this case the Boolean is assumed to be True. If you set the Boolean to False, then the dose is given according to the schedule and is not \"prn\" or \"as needed\".","min":0,"max":"1","base":{"path":"Dosage.asNeeded[x]","min":0,"max":"1"},"type":[{"code":"boolean"},{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationAsNeededReason"}],"strength":"example","description":"A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose. For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc.","valueSet":"http://hl7.org/fhir/ValueSet/medication-as-needed-reason|4.0.1"},"mapping":[{"identity":"v2","map":"TQ1-9"},{"identity":"rim","map":".outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code=\"as needed\"].value=boolean or codable concept"}]},{"id":"MedicationRequest.dosageInstruction.site","path":"MedicationRequest.dosageInstruction.site","short":"Body site to administer to","definition":"Body site to administer to.","comment":"If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](http://hl7.org/fhir/R4/extension-bodysite.html). May be a summary code, or a reference to a very precise definition of the location, or both.","requirements":"A coded specification of the anatomic site where the medication first enters the body.","min":0,"max":"1","base":{"path":"Dosage.site","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationAdministrationSite"}],"strength":"example","description":"A coded concept describing the site location the medicine enters into or onto the body.","valueSet":"http://hl7.org/fhir/ValueSet/approach-site-codes|4.0.1"},"mapping":[{"identity":"v2","map":"RXR-2"},{"identity":"rim","map":".approachSiteCode"}]},{"id":"MedicationRequest.dosageInstruction.route","path":"MedicationRequest.dosageInstruction.route","short":"How drug should enter body","definition":"How drug should enter body.","requirements":"A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body.","min":0,"max":"1","base":{"path":"Dosage.route","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"RouteOfAdministration"}],"strength":"example","description":"A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.","valueSet":"http://hl7.org/fhir/ValueSet/route-codes|4.0.1"},"mapping":[{"identity":"v2","map":"RXR-1"},{"identity":"rim","map":".routeCode"}]},{"id":"MedicationRequest.dosageInstruction.method","path":"MedicationRequest.dosageInstruction.method","short":"Technique for administering medication","definition":"Technique for administering medication.","comment":"Terminologies used often pre-coordinate this term with the route and or form of administration.","requirements":"A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. For examples, Slow Push; Deep IV.","min":0,"max":"1","base":{"path":"Dosage.method","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationAdministrationMethod"}],"strength":"example","description":"A coded concept describing the technique by which the medicine is administered.","valueSet":"http://hl7.org/fhir/ValueSet/administration-method-codes|4.0.1"},"mapping":[{"identity":"v2","map":"RXR-4"},{"identity":"rim","map":".doseQuantity"}]},{"id":"MedicationRequest.dosageInstruction.doseAndRate","path":"MedicationRequest.dosageInstruction.doseAndRate","short":"Amount of medication administered","definition":"The amount of medication administered.","min":0,"max":"*","base":{"path":"Dosage.doseAndRate","min":0,"max":"*"},"type":[{"code":"Element"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"TQ1-2"}]},{"id":"MedicationRequest.dosageInstruction.doseAndRate.id","path":"MedicationRequest.dosageInstruction.doseAndRate.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationRequest.dosageInstruction.doseAndRate.extension","path":"MedicationRequest.dosageInstruction.doseAndRate.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationRequest.dosageInstruction.doseAndRate.type","path":"MedicationRequest.dosageInstruction.doseAndRate.type","short":"The kind of dose or rate specified","definition":"The kind of dose or rate specified, for example, ordered or calculated.","requirements":"If the type is not populated, assume to be \"ordered\".","min":0,"max":"1","base":{"path":"Dosage.doseAndRate.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"DoseAndRateType"}],"strength":"example","description":"The kind of dose or rate specified.","valueSet":"http://hl7.org/fhir/ValueSet/dose-rate-type|4.0.1"},"mapping":[{"identity":"v2","map":"RXO-21; RXE-23"}]},{"id":"MedicationRequest.dosageInstruction.doseAndRate.dose[x]","path":"MedicationRequest.dosageInstruction.doseAndRate.dose[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"closed"},"short":"Amount of medication per dose","definition":"Amount of medication per dose.","comment":"Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours.","requirements":"The amount of therapeutic or other substance given at one administration event.","min":1,"max":"1","base":{"path":"Dosage.doseAndRate.dose[x]","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"RXO-2, RXE-3"},{"identity":"rim","map":".doseQuantity"}]},{"id":"MedicationRequest.dosageInstruction.doseAndRate.dose[x]:doseQuantity","path":"MedicationRequest.dosageInstruction.doseAndRate.dose[x]","sliceName":"doseQuantity","short":"Quantity","definition":"Amount of medication per dose.","comment":"Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours.","requirements":"The amount of therapeutic or other substance given at one administration event.","min":1,"max":"1","base":{"path":"Dosage.doseAndRate.dose[x]","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"RXO-2, RXE-3"},{"identity":"rim","map":".doseQuantity"}]},{"id":"MedicationRequest.dosageInstruction.doseAndRate.rate[x]","path":"MedicationRequest.dosageInstruction.doseAndRate.rate[x]","short":"Amount of medication per unit of time","definition":"Amount of medication per unit of time.","comment":"It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate.\r\rIt is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour.","requirements":"Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours. Sometimes, a rate can imply duration when expressed as total volume / duration (e.g. 500mL/2 hours implies a duration of 2 hours). However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.","min":0,"max":"1","base":{"path":"Dosage.doseAndRate.rate[x]","min":0,"max":"1"},"type":[{"code":"Ratio"},{"code":"Range"},{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"RXE22, RXE23, RXE-24"},{"identity":"rim","map":".rateQuantity"}]},{"id":"MedicationRequest.dosageInstruction.maxDosePerPeriod","path":"MedicationRequest.dosageInstruction.maxDosePerPeriod","short":"Upper limit on medication per unit of time","definition":"Upper limit on medication per unit of time.","comment":"This is intended for use as an adjunct to the dosage when there is an upper cap. For example \"2 tablets every 4 hours to a maximum of 8/day\".","requirements":"The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. For example, 1000mg in 24 hours.","min":0,"max":"1","base":{"path":"Dosage.maxDosePerPeriod","min":0,"max":"1"},"type":[{"code":"Ratio"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"RXO-23, RXE-19"},{"identity":"rim","map":".maxDoseQuantity"}]},{"id":"MedicationRequest.dosageInstruction.maxDosePerAdministration","path":"MedicationRequest.dosageInstruction.maxDosePerAdministration","short":"Upper limit on medication per administration","definition":"Upper limit on medication per administration.","comment":"This is intended for use as an adjunct to the dosage when there is an upper cap. For example, a body surface area related dose with a maximum amount, such as 1.5 mg/m2 (maximum 2 mg) IV over 5 – 10 minutes would have doseQuantity of 1.5 mg/m2 and maxDosePerAdministration of 2 mg.","requirements":"The maximum total quantity of a therapeutic substance that may be administered to a subject per administration.","min":0,"max":"1","base":{"path":"Dosage.maxDosePerAdministration","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":"not supported"}]},{"id":"MedicationRequest.dosageInstruction.maxDosePerLifetime","path":"MedicationRequest.dosageInstruction.maxDosePerLifetime","short":"Upper limit on medication per lifetime of the patient","definition":"Upper limit on medication per lifetime of the patient.","requirements":"The maximum total quantity of a therapeutic substance that may be administered per lifetime of the subject.","min":0,"max":"1","base":{"path":"Dosage.maxDosePerLifetime","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":"not supported"}]},{"id":"MedicationRequest.dispenseRequest","path":"MedicationRequest.dispenseRequest","short":"Medication supply authorization","definition":"Indicates the specific details for the dispense or medication supply part of a medication request (also known as a Medication Prescription or Medication Order). Note that this information is not always sent with the order. There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department.","min":0,"max":"1","base":{"path":"MedicationRequest.dispenseRequest","min":0,"max":"1"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"script10.6","map":"Message/Body/NewRx/MedicationPrescribed/ExpirationDate"},{"identity":"rim","map":"component.supplyEvent"}]},{"id":"MedicationRequest.dispenseRequest.id","path":"MedicationRequest.dispenseRequest.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationRequest.dispenseRequest.extension","path":"MedicationRequest.dispenseRequest.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationRequest.dispenseRequest.modifierExtension","path":"MedicationRequest.dispenseRequest.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationRequest.dispenseRequest.initialFill","path":"MedicationRequest.dispenseRequest.initialFill","short":"First fill details","definition":"Indicates the quantity or duration for the first dispense of the medication.","comment":"If populating this element, either the quantity or the duration must be included.","min":0,"max":"1","base":{"path":"MedicationRequest.dispenseRequest.initialFill","min":0,"max":"1"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"SubstanceAdministration -> ActRelationship[sequenceNumber = '1'] -> Supply"}]},{"id":"MedicationRequest.dispenseRequest.initialFill.id","path":"MedicationRequest.dispenseRequest.initialFill.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationRequest.dispenseRequest.initialFill.extension","path":"MedicationRequest.dispenseRequest.initialFill.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationRequest.dispenseRequest.initialFill.modifierExtension","path":"MedicationRequest.dispenseRequest.initialFill.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationRequest.dispenseRequest.initialFill.quantity","path":"MedicationRequest.dispenseRequest.initialFill.quantity","short":"First fill quantity","definition":"The amount or quantity to provide as part of the first dispense.","min":0,"max":"1","base":{"path":"MedicationRequest.dispenseRequest.initialFill.quantity","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Supply.quantity[moodCode=RQO]"}]},{"id":"MedicationRequest.dispenseRequest.initialFill.duration","path":"MedicationRequest.dispenseRequest.initialFill.duration","short":"First fill duration","definition":"The length of time that the first dispense is expected to last.","min":0,"max":"1","base":{"path":"MedicationRequest.dispenseRequest.initialFill.duration","min":0,"max":"1"},"type":[{"code":"Duration"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Supply.effectivetime[moodCode=RQO]"}]},{"id":"MedicationRequest.dispenseRequest.dispenseInterval","path":"MedicationRequest.dispenseRequest.dispenseInterval","short":"Minimum period of time between dispenses","definition":"The minimum period of time that must occur between dispenses of the medication.","min":0,"max":"1","base":{"path":"MedicationRequest.dispenseRequest.dispenseInterval","min":0,"max":"1"},"type":[{"code":"Duration"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Supply.effectivetime[moodCode=RQO]"}]},{"id":"MedicationRequest.dispenseRequest.validityPeriod","path":"MedicationRequest.dispenseRequest.validityPeriod","short":"Time period supply is authorized for","definition":"This indicates the validity period of a prescription (stale dating the Prescription).","comment":"It reflects the prescribers' perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations.","requirements":"Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.","min":0,"max":"1","base":{"path":"MedicationRequest.dispenseRequest.validityPeriod","min":0,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"script10.6","map":"Message/Body/NewRx/MedicationPrescribed/Refills"},{"identity":"rim","map":"effectiveTime"}]},{"id":"MedicationRequest.dispenseRequest.numberOfRepeatsAllowed","path":"MedicationRequest.dispenseRequest.numberOfRepeatsAllowed","short":"Number of refills authorized","definition":"An integer indicating the number of times, in addition to the original dispense, (aka refills or repeats) that the patient can receive the prescribed medication. Usage Notes: This integer does not include the original order dispense. This means that if an order indicates dispense 30 tablets plus \"3 repeats\", then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets. A prescriber may explicitly say that zero refills are permitted after the initial dispense.","comment":"If displaying \"number of authorized fills\", add 1 to this number.","min":0,"max":"1","base":{"path":"MedicationRequest.dispenseRequest.numberOfRepeatsAllowed","min":0,"max":"1"},"type":[{"code":"unsignedInt"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"script10.6","map":"Message/Body/NewRx/MedicationPrescribed/Quantity"},{"identity":"v2","map":"RXE-12-Number of Refills"},{"identity":"rim","map":"repeatNumber"}]},{"id":"MedicationRequest.dispenseRequest.quantity","path":"MedicationRequest.dispenseRequest.quantity","short":"Amount of medication to supply per dispense","definition":"The amount that is to be dispensed for one fill.","min":0,"max":"1","base":{"path":"MedicationRequest.dispenseRequest.quantity","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"script10.6","map":"Message/Body/NewRx/MedicationPrescribed/DaysSupply"},{"identity":"v2","map":"RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system"},{"identity":"rim","map":"quantity"}]},{"id":"MedicationRequest.dispenseRequest.expectedSupplyDuration","path":"MedicationRequest.dispenseRequest.expectedSupplyDuration","short":"Number of days supply per dispense","definition":"Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last.","comment":"In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage). When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors.","min":0,"max":"1","base":{"path":"MedicationRequest.dispenseRequest.expectedSupplyDuration","min":0,"max":"1"},"type":[{"code":"Duration"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"script10.6","map":"Message/Body/NewRx/MedicationPrescribed/Substitutions"},{"identity":"rim","map":"expectedUseTime"}]},{"id":"MedicationRequest.dispenseRequest.performer","path":"MedicationRequest.dispenseRequest.performer","short":"Intended dispenser","definition":"Indicates the intended dispensing Organization specified by the prescriber.","min":0,"max":"1","base":{"path":"MedicationRequest.dispenseRequest.performer","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"w5","map":"FiveWs.who"},{"identity":"rim","map":".outboundRelationship[typeCode=COMP].target[classCode=SPLY, moodCode=RQO] .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]"}]},{"id":"MedicationRequest.substitution","path":"MedicationRequest.substitution","short":"Any restrictions on medication substitution","definition":"Indicates whether or not substitution can or should be part of the dispense. In some cases, substitution must happen, in other cases substitution must not happen. This block explains the prescriber's intent. If nothing is specified substitution may be done.","min":0,"max":"1","base":{"path":"MedicationRequest.substitution","min":0,"max":"1"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"script10.6","map":"specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions"},{"identity":"rim","map":"subjectOf.substitutionPersmission"}]},{"id":"MedicationRequest.substitution.id","path":"MedicationRequest.substitution.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationRequest.substitution.extension","path":"MedicationRequest.substitution.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationRequest.substitution.modifierExtension","path":"MedicationRequest.substitution.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationRequest.substitution.allowed[x]","path":"MedicationRequest.substitution.allowed[x]","short":"Whether substitution is allowed or not","definition":"True if the prescriber allows a different drug to be dispensed from what was prescribed.","comment":"This element is labeled as a modifier because whether substitution is allow or not, it cannot be ignored.","min":1,"max":"1","base":{"path":"MedicationRequest.substitution.allowed[x]","min":1,"max":"1"},"type":[{"code":"boolean"},{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationRequestSubstitution"}],"strength":"example","description":"Identifies the type of substitution allowed.","valueSet":"http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdminSubstitutionCode"},"mapping":[{"identity":"script10.6","map":"specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions"},{"identity":"v2","map":"RXO-9-Allow Substitutions / RXE-9-Substitution Status"},{"identity":"rim","map":"code"}]},{"id":"MedicationRequest.substitution.reason","path":"MedicationRequest.substitution.reason","short":"Why should (not) substitution be made","definition":"Indicates the reason for the substitution, or why substitution must or must not be performed.","min":0,"max":"1","base":{"path":"MedicationRequest.substitution.reason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationIntendedSubstitutionReason"}],"strength":"example","description":"A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.","valueSet":"http://terminology.hl7.org/ValueSet/v3-SubstanceAdminSubstitutionReason"},"mapping":[{"identity":"script10.6","map":"not mapped"},{"identity":"v2","map":"RXE-9 Substition status"},{"identity":"rim","map":"reasonCode"}]},{"id":"MedicationRequest.priorPrescription","path":"MedicationRequest.priorPrescription","short":"An order/prescription that is being replaced","definition":"A link to a resource representing an earlier order related order or prescription.","min":0,"max":"1","base":{"path":"MedicationRequest.priorPrescription","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.replaces"},{"identity":"script10.6","map":"not mapped"},{"identity":"rim","map":".outboundRelationship[typeCode=?RPLC or ?SUCC]/target[classCode=SBADM,moodCode=RQO]"}]},{"id":"MedicationRequest.detectedIssue","path":"MedicationRequest.detectedIssue","short":"Clinical Issue with action","definition":"Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, duplicate therapy, dosage alert etc.","comment":"This element can include a detected issue that has been identified either by a decision support system or by a clinician and may include information on the steps that were taken to address the issue.","alias":["Contraindication","Drug Utilization Review (DUR)","Alert"],"min":0,"max":"*","base":{"path":"MedicationRequest.detectedIssue","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/DetectedIssue|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value"}]},{"id":"MedicationRequest.eventHistory","path":"MedicationRequest.eventHistory","short":"A list of events of interest in the lifecycle","definition":"Links to Provenance records for past versions of this resource or fulfilling request or event resources that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the resource.","comment":"This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).","min":0,"max":"*","base":{"path":"MedicationRequest.eventHistory","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Provenance|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Request.relevantHistory"},{"identity":"rim","map":".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]"}]}]},"differential":{"element":[{"id":"MedicationRequest","path":"MedicationRequest"},{"id":"MedicationRequest.id","path":"MedicationRequest.id","min":1},{"id":"MedicationRequest.medication[x]","path":"MedicationRequest.medication[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"open"}},{"id":"MedicationRequest.medication[x]:medicationCodeableConcept","path":"MedicationRequest.medication[x]","sliceName":"medicationCodeableConcept","min":1,"max":"1","type":[{"code":"CodeableConcept"}],"mustSupport":true,"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzProductCodeVS"}},{"id":"MedicationRequest.subject","path":"MedicationRequest.subject","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}]},{"id":"MedicationRequest.encounter","path":"MedicationRequest.encounter","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}]},{"id":"MedicationRequest.authoredOn","path":"MedicationRequest.authoredOn","short":"Medication Request Date","definition":"Date when the medication was requested","min":1},{"id":"MedicationRequest.requester","path":"MedicationRequest.requester","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner"]}]},{"id":"MedicationRequest.dosageInstruction","path":"MedicationRequest.dosageInstruction","short":"Dosage Instruction","definition":"How the medication should be taken e.g 1 tablet 3 times a day before food.","min":1,"mustSupport":true},{"id":"MedicationRequest.dosageInstruction.text","path":"MedicationRequest.dosageInstruction.text","short":"Dosage Instruction as Text","definition":"Text ourlining how the medication should be taken","min":1},{"id":"MedicationRequest.dosageInstruction.doseAndRate.dose[x]","path":"MedicationRequest.dosageInstruction.doseAndRate.dose[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"open"},"min":1},{"id":"MedicationRequest.dosageInstruction.doseAndRate.dose[x]:doseQuantity","path":"MedicationRequest.dosageInstruction.doseAndRate.dose[x]","sliceName":"doseQuantity","short":"Quantity","min":1,"max":"1","type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]}],"mustSupport":true}]}},"SzInkhundlaExtension":{"resourceType":"StructureDefinition","id":"SzInkhundlaExtension","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzInkhundlaExtension","version":"0.1.0","name":"SzInkhundlaExtension","title":"Extention: Eswatini Inkhundla","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Extention for Eswatini Tinkhundla","fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Extension","path":"Extension","short":"Extention: Eswatini Inkhundla","definition":"Extention for Eswatini Tinkhundla","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzInkhundlaExtension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":0,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTinkhundlaVS|0.1.0"},"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension","short":"Extention: Eswatini Inkhundla","definition":"Extention for Eswatini Tinkhundla"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzInkhundlaExtension"},{"id":"Extension.value[x]","path":"Extension.value[x]","type":[{"code":"CodeableConcept"}],"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTinkhundlaVS|0.1.0"}}]}},"SzOrganization":{"resourceType":"StructureDefinition","id":"SzOrganization","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzOrganization","version":"0.1.0","name":"EswatiniOrganization","title":"Eswatini Organization Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Organization profile","fhirVersion":"4.0.1","mapping":[{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"servd","uri":"http://www.omg.org/spec/ServD/1.0/","name":"ServD"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"}],"kind":"resource","abstract":false,"type":"Organization","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Organization|4.0.1","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Organization","path":"Organization","short":"A grouping of people or organizations with a common purpose","definition":"A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc.","min":0,"max":"*","base":{"path":"Organization","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"org-1","severity":"error","human":"The organization SHALL at least have a name or an identifier, and possibly more than one","expression":"(identifier.count() + name.count()) > 0","xpath":"count(f:identifier | f:name) > 0","source":"http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"v2","map":"(also see master files messages)"},{"identity":"rim","map":"Organization(classCode=ORG, determinerCode=INST)"},{"identity":"servd","map":"Organization"}]},{"id":"Organization.id","path":"Organization.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Organization.meta","path":"Organization.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true},{"id":"Organization.implicitRules","path":"Organization.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Organization.language","path":"Organization.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages|4.0.1"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Organization.text","path":"Organization.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Organization.contained","path":"Organization.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Organization.extension","path":"Organization.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Organization.modifierExtension","path":"Organization.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Organization.identifier","path":"Organization.identifier","short":"Identifies this organization across multiple systems","definition":"Identifier for the organization that is used to identify the organization across multiple disparate systems.","requirements":"Organizations are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the organization.","min":0,"max":"*","base":{"path":"Organization.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"condition":["org-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"XON.10 / XON.3"},{"identity":"rim","map":".scopes[Role](classCode=IDENT)"},{"identity":"servd","map":"./Identifiers"}]},{"id":"Organization.active","path":"Organization.active","short":"Whether the organization's record is still in active use","definition":"Whether the organization's record is still in active use.","comment":"This active flag is not intended to be used to mark an organization as temporarily closed or under construction. Instead the Location(s) within the Organization should have the suspended status. If further details of the reason for the suspension are required, then an extension on this element should be used.\n\nThis element is labeled as a modifier because it may be used to mark that the resource was created in error.","requirements":"Need a flag to indicate a record is no longer to be used and should generally be hidden for the user in the UI.","min":0,"max":"1","base":{"path":"Organization.active","min":0,"max":"1"},"type":[{"code":"boolean"}],"meaningWhenMissing":"This resource is generally assumed to be active if no value is provided for the active element","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid","isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.status"},{"identity":"v2","map":"No equivalent in HL7 v2"},{"identity":"rim","map":".status"},{"identity":"servd","map":"./Status (however this concept in ServD more covers why the organization is active or not, could be delisted, deregistered, not operational yet) this could alternatively be derived from ./StartDate and ./EndDate and given a context date."}]},{"id":"Organization.type","path":"Organization.type","short":"Organization Type","definition":"Specifies the type of organization: Healthcare Provider | Community Group | etc","comment":"Organizations can be corporations, wards, sections, clinical teams, government departments, etc. Note that code is generally a classifier of the type of organization; in many applications, codes are used to identity a particular organization (say, ward) as opposed to another of the same type - these are identifiers, not codes\n\nWhen considering if multiple types are appropriate, you should evaluate if child organizations would be a more appropriate use of the concept, as different types likely are in different sub-areas of the organization. This is most likely to be used where type values have orthogonal values, such as a religious, academic and medical center.\n\nWe expect that some jurisdictions will profile this optionality to be a single cardinality.","requirements":"Need to be able to track the kind of organization that this is - different organization types have different uses.","min":1,"max":"1","base":{"path":"Organization.type","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"OrganizationType"}],"strength":"example","description":"Used to categorize the organization.","valueSet":"http://hl7.org/fhir/ValueSet/organization-type|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"v2","map":"No equivalent in v2"},{"identity":"rim","map":".code"},{"identity":"servd","map":"n/a"}]},{"id":"Organization.name","path":"Organization.name","short":"Organization' name","definition":"The name of the organization","comment":"If the name of an organization changes, consider putting the old name in the alias column so that it can still be located through searches.","requirements":"Need to use the name as the label of the organization.","min":1,"max":"1","base":{"path":"Organization.name","min":0,"max":"1"},"type":[{"code":"string"}],"condition":["org-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"XON.1"},{"identity":"rim","map":".name"},{"identity":"servd","map":".PreferredName/Name"}]},{"id":"Organization.alias","path":"Organization.alias","short":"A list of alternate names that the organization is known as, or was known as in the past","definition":"A list of alternate names that the organization is known as, or was known as in the past.","comment":"There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the organization.","requirements":"Over time locations and organizations go through many changes and can be known by different names.\n\nFor searching knowing previous names that the organization was known by can be very useful.","min":0,"max":"*","base":{"path":"Organization.alias","min":0,"max":"*"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".name"}]},{"id":"Organization.telecom","path":"Organization.telecom","short":"A contact detail for the organization","definition":"A contact detail for the organization.","comment":"The use code 'home' is not to be used. Note that these contacts are not the contact details of people who are employed by or represent the organization, but official contacts for the organization itself.","requirements":"Human contact for the organization.","min":0,"max":"*","base":{"path":"Organization.telecom","min":0,"max":"*"},"type":[{"code":"ContactPoint"}],"condition":["org-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"org-3","severity":"error","human":"The telecom of an organization can never be of use 'home'","expression":"where(use = 'home').empty()","xpath":"count(f:use[@value='home']) = 0","source":"http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"ORC-22?"},{"identity":"rim","map":".telecom"},{"identity":"servd","map":"./ContactPoints"}]},{"id":"Organization.address","path":"Organization.address","short":"An address for the organization","definition":"An address for the organization.","comment":"Organization may have multiple addresses with different uses or applicable periods. The use code 'home' is not to be used.","requirements":"May need to keep track of the organization's addresses for contacting, billing or reporting requirements.","min":0,"max":"*","base":{"path":"Organization.address","min":0,"max":"*"},"type":[{"code":"Address"}],"condition":["org-2"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"org-2","severity":"error","human":"An address of an organization can never be of use 'home'","expression":"where(use = 'home').empty()","xpath":"count(f:use[@value='home']) = 0","source":"http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"ORC-23?"},{"identity":"rim","map":".address"},{"identity":"servd","map":"./PrimaryAddress and ./OtherAddresses"}]},{"id":"Organization.partOf","path":"Organization.partOf","short":"The organization of which this organization forms a part","definition":"The organization of which this organization forms a part.","requirements":"Need to be able to track the hierarchy of organizations within an organization.","min":0,"max":"1","base":{"path":"Organization.partOf","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy","valueBoolean":true}],"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"No equivalent in HL7 v2"},{"identity":"rim","map":".playedBy[classCode=Part].scoper"},{"identity":"servd","map":"n/a"}]},{"id":"Organization.contact","path":"Organization.contact","short":"Contact for the organization for a certain purpose","definition":"Contact for the organization for a certain purpose.","comment":"Where multiple contacts for the same purpose are provided there is a standard extension that can be used to determine which one is the preferred contact to use.","requirements":"Need to keep track of assigned contact points within bigger organization.","min":0,"max":"*","base":{"path":"Organization.contact","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".contactParty"}]},{"id":"Organization.contact.id","path":"Organization.contact.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Organization.contact.extension","path":"Organization.contact.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Organization.contact.modifierExtension","path":"Organization.contact.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Organization.contact.purpose","path":"Organization.contact.purpose","short":"The type of contact","definition":"Indicates a purpose for which the contact can be reached.","requirements":"Need to distinguish between multiple contact persons.","min":0,"max":"1","base":{"path":"Organization.contact.purpose","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ContactPartyType"}],"strength":"extensible","description":"The purpose for which you would contact a contact party.","valueSet":"http://hl7.org/fhir/ValueSet/contactentity-type|4.0.1"},"mapping":[{"identity":"rim","map":"./type"}]},{"id":"Organization.contact.name","path":"Organization.contact.name","short":"A name associated with the contact","definition":"A name associated with the contact.","requirements":"Need to be able to track the person by name.","min":0,"max":"1","base":{"path":"Organization.contact.name","min":0,"max":"1"},"type":[{"code":"HumanName"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"PID-5, PID-9"},{"identity":"rim","map":"./name"}]},{"id":"Organization.contact.telecom","path":"Organization.contact.telecom","short":"Contact details (telephone, email, etc.) for a contact","definition":"A contact detail (e.g. a telephone number or an email address) by which the party may be contacted.","requirements":"People have (primary) ways to contact them in some way such as phone, email.","min":0,"max":"*","base":{"path":"Organization.contact.telecom","min":0,"max":"*"},"type":[{"code":"ContactPoint"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"PID-13, PID-14"},{"identity":"rim","map":"./telecom"}]},{"id":"Organization.contact.address","path":"Organization.contact.address","short":"Visiting or postal addresses for the contact","definition":"Visiting or postal addresses for the contact.","requirements":"May need to keep track of a contact party's address for contacting, billing or reporting requirements.","min":0,"max":"1","base":{"path":"Organization.contact.address","min":0,"max":"1"},"type":[{"code":"Address"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"PID-11"},{"identity":"rim","map":"./addr"}]},{"id":"Organization.endpoint","path":"Organization.endpoint","short":"Technical endpoints providing access to services operated for the organization","definition":"Technical endpoints providing access to services operated for the organization.","requirements":"Organizations have multiple systems that provide various services and need to be able to define the technical connection details for how to connect to them, and for what purpose.","min":0,"max":"*","base":{"path":"Organization.endpoint","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Endpoint|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]}]},"differential":{"element":[{"id":"Organization","path":"Organization"},{"id":"Organization.id","path":"Organization.id","min":1},{"id":"Organization.type","path":"Organization.type","short":"Organization Type","definition":"Specifies the type of organization: Healthcare Provider | Community Group | etc","min":1,"max":"1"},{"id":"Organization.name","path":"Organization.name","short":"Organization' name","definition":"The name of the organization","min":1}]}},"SzLabResult":{"resourceType":"StructureDefinition","id":"SzLabResult","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabResult","version":"0.1.0","name":"SzLabResult","title":"Eswatini Lab Result Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Eswatini Lab Result Profile","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"sct-concept","uri":"http://snomed.info/conceptdomain","name":"SNOMED CT Concept Domain Binding"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"sct-attr","uri":"http://snomed.org/attributebinding","name":"SNOMED CT Attribute Binding"}],"kind":"resource","abstract":false,"type":"Observation","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Observation","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Observation","path":"Observation","short":"Measurements and simple assertions","definition":"Measurements and simple assertions made about a patient, device or other subject.","comment":"Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc. Other resources are used to provide context for observations such as laboratory reports, etc.","alias":["Vital Signs","Measurement","Results","Tests"],"min":0,"max":"*","base":{"path":"Observation","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"obs-6","severity":"error","human":"dataAbsentReason SHALL only be present if Observation.value[x] is not present","expression":"dataAbsentReason.empty() or value.empty()","xpath":"not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))","source":"http://hl7.org/fhir/StructureDefinition/Observation"},{"key":"obs-7","severity":"error","human":"If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present","expression":"value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()","xpath":"not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))","source":"http://hl7.org/fhir/StructureDefinition/Observation"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Event"},{"identity":"sct-concept","map":"< 363787002 |Observable entity|"},{"identity":"v2","map":"OBX"},{"identity":"rim","map":"Observation[classCode=OBS, moodCode=EVN]"}]},{"id":"Observation.id","path":"Observation.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Observation.meta","path":"Observation.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"Observation.implicitRules","path":"Observation.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Observation.language","path":"Observation.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Observation.text","path":"Observation.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Observation.contained","path":"Observation.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.extension","path":"Observation.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"ordered":false,"rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Observation.extension:authorizer","path":"Observation.extension","sliceName":"authorizer","short":"Lab results authorizer","definition":"Lab technician who authorized the lab results","min":0,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAuthorizerExtension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Observation.extension:testingLaboratory","path":"Observation.extension","sliceName":"testingLaboratory","short":"Testing laboratory","definition":"Laboratory who performed the test","min":0,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzTestingLabExtension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Observation.modifierExtension","path":"Observation.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.identifier","path":"Observation.identifier","short":"Business Identifier for observation","definition":"A unique identifier assigned to this observation.","requirements":"Allows observations to be distinguished and referenced.","min":0,"max":"*","base":{"path":"Observation.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."},{"identity":"rim","map":"id"}]},{"id":"Observation.basedOn","path":"Observation.basedOn","short":"Fulfills plan, proposal or order","definition":"A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.","requirements":"Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.","alias":["Fulfills"],"min":0,"max":"*","base":{"path":"Observation.basedOn","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1","http://hl7.org/fhir/StructureDefinition/DeviceRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/NutritionOrder|4.0.1","http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.basedOn"},{"identity":"v2","map":"ORC"},{"identity":"rim","map":".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"}]},{"id":"Observation.partOf","path":"Observation.partOf","short":"Part of referenced event","definition":"A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.","comment":"To link an Observation to an Encounter use `encounter`. See the [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below for guidance on referencing another Observation.","alias":["Container"],"min":0,"max":"*","base":{"path":"Observation.partOf","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationDispense|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1","http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1","http://hl7.org/fhir/StructureDefinition/Immunization|4.0.1","http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.partOf"},{"identity":"v2","map":"Varies by domain"},{"identity":"rim","map":".outboundRelationship[typeCode=FLFS].target"}]},{"id":"Observation.status","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint","valueString":"default: final"}],"path":"Observation.status","short":"registered | preliminary | final | amended +","definition":"The status of the result value.","comment":"This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.","requirements":"Need to track the status of individual results. Some results are finalized before the whole report is finalized.","min":1,"max":"1","base":{"path":"Observation.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationStatus"}],"strength":"required","description":"Codes providing the status of an observation.","valueSet":"http://hl7.org/fhir/ValueSet/observation-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.status"},{"identity":"w5","map":"FiveWs.status"},{"identity":"sct-concept","map":"< 445584004 |Report by finality status|"},{"identity":"v2","map":"OBX-11"},{"identity":"rim","map":"status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""}]},{"id":"Observation.category","path":"Observation.category","short":"Classification of type of observation","definition":"A code that classifies the general type of observation being made.","comment":"In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.","requirements":"Used for filtering what observations are retrieved and displayed.","min":1,"max":"1","base":{"path":"Observation.category","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCategory"}],"strength":"preferred","description":"Codes for high level observation categories.","valueSet":"http://hl7.org/fhir/ValueSet/observation-category|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"}]},{"id":"Observation.code","path":"Observation.code","short":"Local test parameter code","definition":"Describes what was observed. Sometimes this is called the observation \"name\".","comment":"*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.","requirements":"Knowing what kind of observation is being made is essential to understanding the observation.","alias":["Name"],"min":1,"max":"1","base":{"path":"Observation.code","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestParameterCodeVS"},"mapping":[{"identity":"workflow","map":"Event.code"},{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"sct-concept","map":"< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"code"},{"identity":"sct-attr","map":"116680003 |Is a|"}]},{"id":"Observation.subject","path":"Observation.subject","short":"Patient profile","definition":"The patient this observation is about","comment":"One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.","requirements":"Observations have no value if you don't know who or what they're about.","min":0,"max":"1","base":{"path":"Observation.subject","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.subject"},{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"PID-3"},{"identity":"rim","map":"participation[typeCode=RTGT]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Observation.focus","path":"Observation.focus","short":"What the observation is about, when it is not about the subject of record","definition":"The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.","comment":"Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/R4/extension-observation-focuscode.html).","min":0,"max":"*","base":{"path":"Observation.focus","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"participation[typeCode=SBJ]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Observation.encounter","path":"Observation.encounter","short":"Encounter","definition":"The encounter/visit this observation was made","comment":"This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).","requirements":"For some observations it may be important to know the link between an observation and a particular encounter.","alias":["Context"],"min":0,"max":"1","base":{"path":"Observation.encounter","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.context"},{"identity":"w5","map":"FiveWs.context"},{"identity":"v2","map":"PV1"},{"identity":"rim","map":"inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"}]},{"id":"Observation.effective[x]","path":"Observation.effective[x]","short":"Clinically relevant time/time-period for observation","definition":"The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.","comment":"At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/R4/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.","requirements":"Knowing when an observation was deemed true is important to its relevance as well as determining trends.","alias":["Occurrence"],"min":0,"max":"1","base":{"path":"Observation.effective[x]","min":0,"max":"1"},"type":[{"code":"dateTime"},{"code":"Period"},{"code":"Timing"},{"code":"instant"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.occurrence[x]"},{"identity":"w5","map":"FiveWs.done[x]"},{"identity":"v2","map":"OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"},{"identity":"rim","map":"effectiveTime"}]},{"id":"Observation.issued","path":"Observation.issued","short":"Date/Time this version was made available","definition":"The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.","comment":"For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/R4/resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.","min":0,"max":"1","base":{"path":"Observation.issued","min":0,"max":"1"},"type":[{"code":"instant"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.recorded"},{"identity":"v2","map":"OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"},{"identity":"rim","map":"participation[typeCode=AUT].time"}]},{"id":"Observation.performer","path":"Observation.performer","short":"Who is responsible for the observation","definition":"Lab Technician who performed the test","requirements":"May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.","min":0,"max":"*","base":{"path":"Observation.performer","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.performer.actor"},{"identity":"w5","map":"FiveWs.actor"},{"identity":"v2","map":"OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"},{"identity":"rim","map":"participation[typeCode=PRF]"}]},{"id":"Observation.value[x]","path":"Observation.value[x]","short":"Actual result","definition":"The information determined as a result of making the observation, if the information has a simple value.","comment":"An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.","min":1,"max":"1","base":{"path":"Observation.value[x]","min":0,"max":"1"},"type":[{"code":"Quantity"},{"code":"CodeableConcept"},{"code":"string"},{"code":"boolean"},{"code":"integer"},{"code":"Range"},{"code":"Ratio"},{"code":"SampledData"},{"code":"time"},{"code":"dateTime"},{"code":"Period"}],"condition":["obs-7"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"< 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.dataAbsentReason","path":"Observation.dataAbsentReason","short":"Why the result is missing","definition":"Provides a reason why the expected value in the element Observation.value[x] is missing.","comment":"Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.","requirements":"For many results it is necessary to handle exceptional values in measurements.","min":0,"max":"1","base":{"path":"Observation.dataAbsentReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["obs-6"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationValueAbsentReason"}],"strength":"extensible","description":"Codes specifying why the result (`Observation.value[x]`) is missing.","valueSet":"http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1"},"mapping":[{"identity":"v2","map":"N/A"},{"identity":"rim","map":"value.nullFlavor"}]},{"id":"Observation.interpretation","path":"Observation.interpretation","short":"High, low, normal, etc.","definition":"A categorical assessment of an observation value. For example, high, low, normal.","comment":"Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.","requirements":"For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.","alias":["Abnormal Flag"],"min":0,"max":"*","base":{"path":"Observation.interpretation","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationInterpretation"}],"strength":"extensible","description":"Codes identifying interpretations of observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values|"},{"identity":"v2","map":"OBX-8"},{"identity":"rim","map":"interpretationCode"},{"identity":"sct-attr","map":"363713009 |Has interpretation|"}]},{"id":"Observation.note","path":"Observation.note","short":"Comments about the observation","definition":"Comments about the observation or the results.","comment":"May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.","requirements":"Need to be able to provide free text additional information.","min":0,"max":"*","base":{"path":"Observation.note","min":0,"max":"*"},"type":[{"code":"Annotation"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"},{"identity":"rim","map":"subjectOf.observationEvent[code=\"annotation\"].value"}]},{"id":"Observation.bodySite","path":"Observation.bodySite","short":"Observed body part","definition":"Indicates the site on the subject's body where the observation was made (i.e. the target site).","comment":"Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/R4/extension-bodysite.html).","min":0,"max":"1","base":{"path":"Observation.bodySite","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"BodySite"}],"strength":"example","description":"Codes describing anatomical locations. May include laterality.","valueSet":"http://hl7.org/fhir/ValueSet/body-site|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 123037004 |Body structure|"},{"identity":"v2","map":"OBX-20"},{"identity":"rim","map":"targetSiteCode"},{"identity":"sct-attr","map":"718497002 |Inherent location|"}]},{"id":"Observation.method","path":"Observation.method","short":"How it was done","definition":"Indicates the mechanism used to perform the observation.","comment":"Only used if not implicit in code for Observation.code.","requirements":"In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.","min":0,"max":"1","base":{"path":"Observation.method","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationMethod"}],"strength":"example","description":"Methods for simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-methods|4.0.1"},"mapping":[{"identity":"v2","map":"OBX-17"},{"identity":"rim","map":"methodCode"}]},{"id":"Observation.specimen","path":"Observation.specimen","short":"Specimen used for this observation","definition":"The specimen that was used when this observation was made.","comment":"Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).","min":0,"max":"1","base":{"path":"Observation.specimen","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabSpecimen"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"sct-concept","map":"< 123038009 |Specimen|"},{"identity":"v2","map":"SPM segment"},{"identity":"rim","map":"participation[typeCode=SPC].specimen"},{"identity":"sct-attr","map":"704319004 |Inherent in|"}]},{"id":"Observation.device","path":"Observation.device","short":"(Measurement) Device","definition":"The device used to generate the observation data.","comment":"Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.","min":0,"max":"1","base":{"path":"Observation.device","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Device|4.0.1","http://hl7.org/fhir/StructureDefinition/DeviceMetric|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"sct-concept","map":"< 49062001 |Device|"},{"identity":"v2","map":"OBX-17 / PRT -10"},{"identity":"rim","map":"participation[typeCode=DEV]"},{"identity":"sct-attr","map":"424226004 |Using device|"}]},{"id":"Observation.referenceRange","path":"Observation.referenceRange","short":"Provides guide for interpretation","definition":"Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.","comment":"Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.","requirements":"Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.","min":0,"max":"*","base":{"path":"Observation.referenceRange","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"obs-3","severity":"error","human":"Must have at least a low or a high or text","expression":"low.exists() or high.exists() or text.exists()","xpath":"(exists(f:low) or exists(f:high)or exists(f:text))","source":"http://hl7.org/fhir/StructureDefinition/Observation"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX.7"},{"identity":"rim","map":"outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"}]},{"id":"Observation.referenceRange.id","path":"Observation.referenceRange.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.referenceRange.extension","path":"Observation.referenceRange.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.referenceRange.modifierExtension","path":"Observation.referenceRange.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.referenceRange.low","path":"Observation.referenceRange.low","short":"Low Range, if relevant","definition":"The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).","min":0,"max":"1","base":{"path":"Observation.referenceRange.low","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"condition":["obs-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:IVL_PQ.low"}]},{"id":"Observation.referenceRange.high","path":"Observation.referenceRange.high","short":"High Range, if relevant","definition":"The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).","min":0,"max":"1","base":{"path":"Observation.referenceRange.high","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"condition":["obs-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:IVL_PQ.high"}]},{"id":"Observation.referenceRange.type","path":"Observation.referenceRange.type","short":"Reference range qualifier","definition":"Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.","comment":"This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.","requirements":"Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.","min":0,"max":"1","base":{"path":"Observation.referenceRange.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationRangeMeaning"}],"strength":"preferred","description":"Code for the meaning of a reference range.","valueSet":"http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"},{"identity":"v2","map":"OBX-10"},{"identity":"rim","map":"interpretationCode"}]},{"id":"Observation.referenceRange.appliesTo","path":"Observation.referenceRange.appliesTo","short":"Reference range population","definition":"Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.","comment":"This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.","requirements":"Need to be able to identify the target population for proper interpretation.","min":0,"max":"*","base":{"path":"Observation.referenceRange.appliesTo","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationRangeType"}],"strength":"example","description":"Codes identifying the population the reference range applies to.","valueSet":"http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"},{"identity":"v2","map":"OBX-10"},{"identity":"rim","map":"interpretationCode"}]},{"id":"Observation.referenceRange.age","path":"Observation.referenceRange.age","short":"Applicable age range, if relevant","definition":"The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.","requirements":"Some analytes vary greatly over age.","min":0,"max":"1","base":{"path":"Observation.referenceRange.age","min":0,"max":"1"},"type":[{"code":"Range"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"}]},{"id":"Observation.referenceRange.text","path":"Observation.referenceRange.text","short":"Text based reference range in an observation","definition":"Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".","min":0,"max":"1","base":{"path":"Observation.referenceRange.text","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:ST"}]},{"id":"Observation.hasMember","path":"Observation.hasMember","short":"Related resource that belongs to the Observation group","definition":"This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.","comment":"When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/R4/questionnaireresponse.html) into a final score and represent the score as an Observation.","min":0,"max":"*","base":{"path":"Observation.hasMember","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1","http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"Relationships established by OBX-4 usage"},{"identity":"rim","map":"outBoundRelationship"}]},{"id":"Observation.derivedFrom","path":"Observation.derivedFrom","short":"Related measurements the observation is made from","definition":"The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.","comment":"All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below.","min":0,"max":"*","base":{"path":"Observation.derivedFrom","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1","http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1","http://hl7.org/fhir/StructureDefinition/Media|4.0.1","http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1","http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"Relationships established by OBX-4 usage"},{"identity":"rim","map":".targetObservation"}]},{"id":"Observation.component","path":"Observation.component","short":"Component results","definition":"Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.","comment":"For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.","min":0,"max":"*","base":{"path":"Observation.component","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"containment by OBX-4?"},{"identity":"rim","map":"outBoundRelationship[typeCode=COMP]"}]},{"id":"Observation.component.id","path":"Observation.component.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component.extension","path":"Observation.component.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component.modifierExtension","path":"Observation.component.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.component.code","path":"Observation.component.code","short":"Type of component observation (code / type)","definition":"Describes what was observed. Sometimes this is called the observation \"code\".","comment":"*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.","requirements":"Knowing what kind of observation is being made is essential to understanding the observation.","min":1,"max":"1","base":{"path":"Observation.component.code","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCode"}],"strength":"example","description":"Codes identifying names of simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-codes|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"sct-concept","map":"< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"code"}]},{"id":"Observation.component.value[x]","path":"Observation.component.value[x]","short":"Actual component result","definition":"The information determined as a result of making the observation, if the information has a simple value.","comment":"Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.","min":0,"max":"1","base":{"path":"Observation.component.value[x]","min":0,"max":"1"},"type":[{"code":"Quantity"},{"code":"CodeableConcept"},{"code":"string"},{"code":"boolean"},{"code":"integer"},{"code":"Range"},{"code":"Ratio"},{"code":"SampledData"},{"code":"time"},{"code":"dateTime"},{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"363714003 |Interprets| < 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.component.dataAbsentReason","path":"Observation.component.dataAbsentReason","short":"Why the component result is missing","definition":"Provides a reason why the expected value in the element Observation.component.value[x] is missing.","comment":"\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.","requirements":"For many results it is necessary to handle exceptional values in measurements.","min":0,"max":"1","base":{"path":"Observation.component.dataAbsentReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["obs-6"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationValueAbsentReason"}],"strength":"extensible","description":"Codes specifying why the result (`Observation.value[x]`) is missing.","valueSet":"http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1"},"mapping":[{"identity":"v2","map":"N/A"},{"identity":"rim","map":"value.nullFlavor"}]},{"id":"Observation.component.interpretation","path":"Observation.component.interpretation","short":"High, low, normal, etc.","definition":"A categorical assessment of an observation value. For example, high, low, normal.","comment":"Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.","requirements":"For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.","alias":["Abnormal Flag"],"min":0,"max":"*","base":{"path":"Observation.component.interpretation","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationInterpretation"}],"strength":"extensible","description":"Codes identifying interpretations of observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values|"},{"identity":"v2","map":"OBX-8"},{"identity":"rim","map":"interpretationCode"},{"identity":"sct-attr","map":"363713009 |Has interpretation|"}]},{"id":"Observation.component.referenceRange","path":"Observation.component.referenceRange","short":"Provides guide for interpretation of component result","definition":"Guidance on how to interpret the value by comparison to a normal or recommended range.","comment":"Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.","requirements":"Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.","min":0,"max":"*","base":{"path":"Observation.component.referenceRange","min":0,"max":"*"},"contentReference":"http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX.7"},{"identity":"rim","map":"outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"}]}]},"differential":{"element":[{"id":"Observation","path":"Observation"},{"id":"Observation.id","path":"Observation.id","min":1},{"id":"Observation.extension","path":"Observation.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"ordered":false,"rules":"open"}},{"id":"Observation.extension:authorizer","path":"Observation.extension","sliceName":"authorizer","short":"Lab results authorizer","definition":"Lab technician who authorized the lab results","min":0,"max":"1","type":[{"code":"Extension","profile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzAuthorizerExtension"]}]},{"id":"Observation.extension:testingLaboratory","path":"Observation.extension","sliceName":"testingLaboratory","short":"Testing laboratory","definition":"Laboratory who performed the test","min":0,"max":"1","type":[{"code":"Extension","profile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzTestingLabExtension"]}]},{"id":"Observation.category","path":"Observation.category","min":1,"max":"1"},{"id":"Observation.code","path":"Observation.code","short":"Local test parameter code","mustSupport":true,"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestParameterCodeVS"}},{"id":"Observation.subject","path":"Observation.subject","short":"Patient profile","definition":"The patient this observation is about","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}]},{"id":"Observation.encounter","path":"Observation.encounter","short":"Encounter","definition":"The encounter/visit this observation was made","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}]},{"id":"Observation.performer","path":"Observation.performer","definition":"Lab Technician who performed the test","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner"]}]},{"id":"Observation.value[x]","path":"Observation.value[x]","min":1,"mustSupport":true},{"id":"Observation.specimen","path":"Observation.specimen","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLabSpecimen"]}]}]}},"SzVitalSigns":{"resourceType":"StructureDefinition","id":"SzVitalSigns","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzVitalSigns","version":"0.1.0","name":"EswatiniVitalSigns","title":"Eswatini Vital Signs Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"This profile is based on the base FHIR Vital Signs Profile and defines additional constraints on the Observation resource to represent\nvital signs observations specifically for Eswatini.","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"sct-concept","uri":"http://snomed.info/conceptdomain","name":"SNOMED CT Concept Domain Binding"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"sct-attr","uri":"http://snomed.org/attributebinding","name":"SNOMED CT Attribute Binding"}],"kind":"resource","abstract":false,"type":"Observation","baseDefinition":"http://hl7.org/fhir/StructureDefinition/vitalsigns","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Observation","path":"Observation","short":"Eswatini Health Information Exchange Vital Signs","definition":"The FHIR Vitals Signs profile sets minimum expectations for the Observation Resource to record, search and fetch the vital signs associated with a patient.","comment":"Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc. Other resources are used to provide context for observations such as laboratory reports, etc.","alias":["Vital Signs","Measurement","Results","Tests"],"min":0,"max":"*","base":{"path":"Observation","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"obs-6","severity":"error","human":"dataAbsentReason SHALL only be present if Observation.value[x] is not present","expression":"dataAbsentReason.empty() or value.empty()","xpath":"not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))","source":"http://hl7.org/fhir/StructureDefinition/Observation"},{"key":"obs-7","severity":"error","human":"If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present","expression":"value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()","xpath":"not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))","source":"http://hl7.org/fhir/StructureDefinition/Observation"},{"key":"vs-2","severity":"error","human":"If there is no component or hasMember element then either a value[x] or a data absent reason must be present.","expression":"(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())","xpath":"f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason","source":"http://hl7.org/fhir/StructureDefinition/vitalsigns"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Event"},{"identity":"sct-concept","map":"< 363787002 |Observable entity|"},{"identity":"v2","map":"OBX"},{"identity":"rim","map":"Observation[classCode=OBS, moodCode=EVN]"}]},{"id":"Observation.id","path":"Observation.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Observation.meta","path":"Observation.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"Observation.implicitRules","path":"Observation.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Observation.language","path":"Observation.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Observation.text","path":"Observation.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Observation.contained","path":"Observation.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.extension","path":"Observation.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.modifierExtension","path":"Observation.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.identifier","path":"Observation.identifier","short":"Business Identifier for observation","definition":"A unique identifier assigned to this observation.","requirements":"Allows observations to be distinguished and referenced.","min":0,"max":"*","base":{"path":"Observation.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."},{"identity":"rim","map":"id"}]},{"id":"Observation.basedOn","path":"Observation.basedOn","short":"Fulfills plan, proposal or order","definition":"A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.","requirements":"Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.","alias":["Fulfills"],"min":0,"max":"*","base":{"path":"Observation.basedOn","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1","http://hl7.org/fhir/StructureDefinition/DeviceRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/NutritionOrder|4.0.1","http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.basedOn"},{"identity":"v2","map":"ORC"},{"identity":"rim","map":".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"}]},{"id":"Observation.partOf","path":"Observation.partOf","short":"Part of referenced event","definition":"A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.","comment":"To link an Observation to an Encounter use `encounter`. See the [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below for guidance on referencing another Observation.","alias":["Container"],"min":0,"max":"*","base":{"path":"Observation.partOf","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationDispense|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1","http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1","http://hl7.org/fhir/StructureDefinition/Immunization|4.0.1","http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.partOf"},{"identity":"v2","map":"Varies by domain"},{"identity":"rim","map":".outboundRelationship[typeCode=FLFS].target"}]},{"id":"Observation.status","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint","valueString":"default: final"}],"path":"Observation.status","short":"registered | preliminary | final | amended +","definition":"The status of the result value.","comment":"This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.","requirements":"Need to track the status of individual results. Some results are finalized before the whole report is finalized.","min":1,"max":"1","base":{"path":"Observation.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":true,"isModifierReason":"This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Status"}],"strength":"required","valueSet":"http://hl7.org/fhir/ValueSet/observation-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.status"},{"identity":"w5","map":"FiveWs.status"},{"identity":"sct-concept","map":"< 445584004 |Report by finality status|"},{"identity":"v2","map":"OBX-11"},{"identity":"rim","map":"status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""}]},{"id":"Observation.category","path":"Observation.category","slicing":{"discriminator":[{"type":"value","path":"coding.code"},{"type":"value","path":"coding.system"}],"ordered":false,"rules":"open"},"short":"Classification of type of observation","definition":"A code that classifies the general type of observation being made.","comment":"In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.","requirements":"Used for filtering what observations are retrieved and displayed.","min":1,"max":"*","base":{"path":"Observation.category","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCategory"}],"strength":"preferred","description":"Codes for high level observation categories.","valueSet":"http://hl7.org/fhir/ValueSet/observation-category|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"}]},{"id":"Observation.category:VSCat","path":"Observation.category","sliceName":"VSCat","short":"Classification of type of observation","definition":"A code that classifies the general type of observation being made.","comment":"In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.","requirements":"Used for filtering what observations are retrieved and displayed.","min":1,"max":"1","base":{"path":"Observation.category","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCategory"}],"strength":"preferred","description":"Codes for high level observation categories.","valueSet":"http://hl7.org/fhir/ValueSet/observation-category|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"}]},{"id":"Observation.category:VSCat.id","path":"Observation.category.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.category:VSCat.extension","path":"Observation.category.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.category:VSCat.coding","path":"Observation.category.coding","short":"Code defined by a terminology system","definition":"A reference to a code defined by a terminology system.","comment":"Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.","requirements":"Allows for alternative encodings within a code system, and translations to other code systems.","min":1,"max":"*","base":{"path":"CodeableConcept.coding","min":0,"max":"*"},"type":[{"code":"Coding"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.1-8, C*E.10-22"},{"identity":"rim","map":"union(., ./translation)"},{"identity":"orim","map":"fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"}]},{"id":"Observation.category:VSCat.coding.id","path":"Observation.category.coding.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.category:VSCat.coding.extension","path":"Observation.category.coding.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.category:VSCat.coding.system","path":"Observation.category.coding.system","short":"Identity of the terminology system","definition":"The identification of the code system that defines the meaning of the symbol in the code.","comment":"The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.","requirements":"Need to be unambiguous about the source of the definition of the symbol.","min":1,"max":"1","base":{"path":"Coding.system","min":0,"max":"1"},"type":[{"code":"uri"}],"fixedUri":"http://terminology.hl7.org/CodeSystem/observation-category","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.3"},{"identity":"rim","map":"./codeSystem"},{"identity":"orim","map":"fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"}]},{"id":"Observation.category:VSCat.coding.version","path":"Observation.category.coding.version","short":"Version of the system - if relevant","definition":"The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.","comment":"Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.","min":0,"max":"1","base":{"path":"Coding.version","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.7"},{"identity":"rim","map":"./codeSystemVersion"},{"identity":"orim","map":"fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"}]},{"id":"Observation.category:VSCat.coding.code","path":"Observation.category.coding.code","short":"Symbol in syntax defined by the system","definition":"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).","requirements":"Need to refer to a particular code in the system.","min":1,"max":"1","base":{"path":"Coding.code","min":0,"max":"1"},"type":[{"code":"code"}],"fixedCode":"vital-signs","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.1"},{"identity":"rim","map":"./code"},{"identity":"orim","map":"fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"}]},{"id":"Observation.category:VSCat.coding.display","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable","valueBoolean":true}],"path":"Observation.category.coding.display","short":"Representation defined by the system","definition":"A representation of the meaning of the code in the system, following the rules of the system.","requirements":"Need to be able to carry a human-readable meaning of the code for readers that do not know the system.","min":0,"max":"1","base":{"path":"Coding.display","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.2 - but note this is not well followed"},{"identity":"rim","map":"CV.displayName"},{"identity":"orim","map":"fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"}]},{"id":"Observation.category:VSCat.coding.userSelected","path":"Observation.category.coding.userSelected","short":"If this coding was chosen directly by the user","definition":"Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).","comment":"Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.","requirements":"This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.","min":0,"max":"1","base":{"path":"Coding.userSelected","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"Sometimes implied by being first"},{"identity":"rim","map":"CD.codingRationale"},{"identity":"orim","map":"fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"}]},{"id":"Observation.category:VSCat.text","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable","valueBoolean":true}],"path":"Observation.category.text","short":"Plain text representation of the concept","definition":"A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.","comment":"Very often the text is the same as a displayName of one of the codings.","requirements":"The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.","min":0,"max":"1","base":{"path":"CodeableConcept.text","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"C*E.9. But note many systems use C*E.2 for this"},{"identity":"rim","map":"./originalText[mediaType/code=\"text/plain\"]/data"},{"identity":"orim","map":"fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"}]},{"id":"Observation.code","path":"Observation.code","short":"Specific vital sign being observed","definition":"Coded Responses from C-CDA Vital Sign Results.","comment":"*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.","requirements":"5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).","alias":["Name"],"min":1,"max":"1","base":{"path":"Observation.code","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"binding":{"strength":"required","valueSet":"http://hl7.org/fhir/ValueSet/observation-vitalsignresult"},"mapping":[{"identity":"workflow","map":"Event.code"},{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"sct-concept","map":"< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"code"},{"identity":"sct-attr","map":"116680003 |Is a|"}]},{"id":"Observation.subject","path":"Observation.subject","short":"Patient related to the vitals being recorded","definition":"The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.","comment":"One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.","requirements":"Observations have no value if you don't know who or what they're about.","min":1,"max":"1","base":{"path":"Observation.subject","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.subject"},{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"PID-3"},{"identity":"rim","map":"participation[typeCode=RTGT]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Observation.focus","path":"Observation.focus","short":"What the observation is about, when it is not about the subject of record","definition":"The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.","comment":"Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/extension-observation-focuscode.html).","min":0,"max":"*","base":{"path":"Observation.focus","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"participation[typeCode=SBJ]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Observation.encounter","path":"Observation.encounter","short":"Visit related to the vitals being recorded","definition":"The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.","comment":"This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).","requirements":"For some observations it may be important to know the link between an observation and a particular encounter.","alias":["Context"],"min":0,"max":"1","base":{"path":"Observation.encounter","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.context"},{"identity":"w5","map":"FiveWs.context"},{"identity":"v2","map":"PV1"},{"identity":"rim","map":"inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"}]},{"id":"Observation.effective[x]","path":"Observation.effective[x]","short":"Often just a dateTime for Vital Signs","definition":"Often just a dateTime for Vital Signs.","comment":"At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.","requirements":"Knowing when an observation was deemed true is important to its relevance as well as determining trends.","alias":["Occurrence"],"min":1,"max":"1","base":{"path":"Observation.effective[x]","min":0,"max":"1"},"type":[{"code":"dateTime"},{"code":"Period"}],"condition":["vs-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"vs-1","severity":"error","human":"if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day","expression":"$this is dateTime implies $this.toString().length() >= 10","xpath":"f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]","source":"http://hl7.org/fhir/StructureDefinition/vitalsigns"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.occurrence[x]"},{"identity":"w5","map":"FiveWs.done[x]"},{"identity":"v2","map":"OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"},{"identity":"rim","map":"effectiveTime"}]},{"id":"Observation.issued","path":"Observation.issued","short":"Date/Time this version was made available","definition":"The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.","comment":"For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.","min":0,"max":"1","base":{"path":"Observation.issued","min":0,"max":"1"},"type":[{"code":"instant"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.recorded"},{"identity":"v2","map":"OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"},{"identity":"rim","map":"participation[typeCode=AUT].time"}]},{"id":"Observation.performer","path":"Observation.performer","short":"Who is responsible for the observation","definition":"Who was responsible for asserting the observed value as \"true\".","requirements":"May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.","min":0,"max":"*","base":{"path":"Observation.performer","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1","http://hl7.org/fhir/StructureDefinition/Organization|4.0.1","http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1","http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.performer.actor"},{"identity":"w5","map":"FiveWs.actor"},{"identity":"v2","map":"OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"},{"identity":"rim","map":"participation[typeCode=PRF]"}]},{"id":"Observation.value[x]","path":"Observation.value[x]","short":"Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.","definition":"Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.","comment":"An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.","requirements":"9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).","min":0,"max":"1","base":{"path":"Observation.value[x]","min":0,"max":"1"},"type":[{"code":"Quantity"}],"condition":["obs-7","vs-2"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"< 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.value[x].id","path":"Observation.value[x].id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.value[x].extension","path":"Observation.value[x].extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.value[x].value","path":"Observation.value[x].value","short":"Numerical value (with implicit precision)","definition":"The value of the measured amount. The value includes an implicit precision in the presentation of the value.","comment":"The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).","requirements":"Precision is handled implicitly in almost all cases of measurement.","min":1,"max":"1","base":{"path":"Quantity.value","min":0,"max":"1"},"type":[{"code":"decimal"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"SN.2 / CQ - N/A"},{"identity":"rim","map":"PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"}]},{"id":"Observation.value[x].comparator","path":"Observation.value[x].comparator","short":"< | <= | >= | > - how to understand the value","definition":"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.","requirements":"Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.","min":0,"max":"1","base":{"path":"Quantity.comparator","min":0,"max":"1"},"type":[{"code":"code"}],"meaningWhenMissing":"If there is no comparator, then there is no modification of the value","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"QuantityComparator"}],"strength":"required","description":"How the Quantity should be understood and represented.","valueSet":"http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"},"mapping":[{"identity":"v2","map":"SN.1 / CQ.1"},{"identity":"rim","map":"IVL properties"}]},{"id":"Observation.value[x].unit","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable","valueBoolean":true}],"path":"Observation.value[x].unit","short":"Unit representation","definition":"A human-readable form of the unit.","requirements":"There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.","min":1,"max":"1","base":{"path":"Quantity.unit","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"(see OBX.6 etc.) / CQ.2"},{"identity":"rim","map":"PQ.unit"}]},{"id":"Observation.value[x].system","path":"Observation.value[x].system","short":"System that defines coded unit form","definition":"The identification of the system that provides the coded form of the unit.","requirements":"Need to know the system that defines the coded form of the unit.","min":0,"max":"1","base":{"path":"Quantity.system","min":0,"max":"1"},"type":[{"code":"uri"}],"condition":["qty-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"(see OBX.6 etc.) / CQ.2"},{"identity":"rim","map":"CO.codeSystem, PQ.translation.codeSystem"}]},{"id":"Observation.value[x].code","path":"Observation.value[x].code","short":"Coded form of the unit","definition":"A computer processable form of the unit in some unit representation system.","comment":"The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.","requirements":"Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.","min":0,"max":"1","base":{"path":"Quantity.code","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"(see OBX.6 etc.) / CQ.2"},{"identity":"rim","map":"PQ.code, MO.currency, PQ.translation.code"}]},{"id":"Observation.dataAbsentReason","path":"Observation.dataAbsentReason","short":"Why the result is missing","definition":"Provides a reason why the expected value in the element Observation.value[x] is missing.","comment":"Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.","requirements":"For many results it is necessary to handle exceptional values in measurements.","min":0,"max":"1","base":{"path":"Observation.dataAbsentReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["obs-6","vs-2"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationValueAbsentReason"}],"strength":"extensible","description":"Codes specifying why the result (`Observation.value[x]`) is missing.","valueSet":"http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1"},"mapping":[{"identity":"v2","map":"N/A"},{"identity":"rim","map":"value.nullFlavor"}]},{"id":"Observation.interpretation","path":"Observation.interpretation","short":"High, low, normal, etc.","definition":"A categorical assessment of an observation value. For example, high, low, normal.","comment":"Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.","requirements":"For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.","alias":["Abnormal Flag"],"min":0,"max":"*","base":{"path":"Observation.interpretation","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationInterpretation"}],"strength":"extensible","description":"Codes identifying interpretations of observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values|"},{"identity":"v2","map":"OBX-8"},{"identity":"rim","map":"interpretationCode"},{"identity":"sct-attr","map":"363713009 |Has interpretation|"}]},{"id":"Observation.note","path":"Observation.note","short":"Comments about the observation","definition":"Comments about the observation or the results.","comment":"May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.","requirements":"Need to be able to provide free text additional information.","min":0,"max":"*","base":{"path":"Observation.note","min":0,"max":"*"},"type":[{"code":"Annotation"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"},{"identity":"rim","map":"subjectOf.observationEvent[code=\"annotation\"].value"}]},{"id":"Observation.bodySite","path":"Observation.bodySite","short":"Observed body part","definition":"Indicates the site on the subject's body where the observation was made (i.e. the target site).","comment":"Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/extension-bodysite.html).","min":0,"max":"1","base":{"path":"Observation.bodySite","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"BodySite"}],"strength":"example","description":"Codes describing anatomical locations. May include laterality.","valueSet":"http://hl7.org/fhir/ValueSet/body-site|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 123037004 |Body structure|"},{"identity":"v2","map":"OBX-20"},{"identity":"rim","map":"targetSiteCode"},{"identity":"sct-attr","map":"718497002 |Inherent location|"}]},{"id":"Observation.method","path":"Observation.method","short":"How it was done","definition":"Indicates the mechanism used to perform the observation.","comment":"Only used if not implicit in code for Observation.code.","requirements":"In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.","min":0,"max":"1","base":{"path":"Observation.method","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationMethod"}],"strength":"example","description":"Methods for simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-methods|4.0.1"},"mapping":[{"identity":"v2","map":"OBX-17"},{"identity":"rim","map":"methodCode"}]},{"id":"Observation.specimen","path":"Observation.specimen","short":"Specimen used for this observation","definition":"The specimen that was used when this observation was made.","comment":"Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).","min":0,"max":"1","base":{"path":"Observation.specimen","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"sct-concept","map":"< 123038009 |Specimen|"},{"identity":"v2","map":"SPM segment"},{"identity":"rim","map":"participation[typeCode=SPC].specimen"},{"identity":"sct-attr","map":"704319004 |Inherent in|"}]},{"id":"Observation.device","path":"Observation.device","short":"(Measurement) Device","definition":"The device used to generate the observation data.","comment":"Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.","min":0,"max":"1","base":{"path":"Observation.device","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Device|4.0.1","http://hl7.org/fhir/StructureDefinition/DeviceMetric|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"sct-concept","map":"< 49062001 |Device|"},{"identity":"v2","map":"OBX-17 / PRT -10"},{"identity":"rim","map":"participation[typeCode=DEV]"},{"identity":"sct-attr","map":"424226004 |Using device|"}]},{"id":"Observation.referenceRange","path":"Observation.referenceRange","short":"Provides guide for interpretation","definition":"Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.","comment":"Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.","requirements":"Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.","min":0,"max":"*","base":{"path":"Observation.referenceRange","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"obs-3","severity":"error","human":"Must have at least a low or a high or text","expression":"low.exists() or high.exists() or text.exists()","xpath":"(exists(f:low) or exists(f:high)or exists(f:text))","source":"http://hl7.org/fhir/StructureDefinition/vitalsigns"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX.7"},{"identity":"rim","map":"outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"}]},{"id":"Observation.referenceRange.id","path":"Observation.referenceRange.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.referenceRange.extension","path":"Observation.referenceRange.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.referenceRange.modifierExtension","path":"Observation.referenceRange.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.referenceRange.low","path":"Observation.referenceRange.low","short":"Low Range, if relevant","definition":"The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).","min":0,"max":"1","base":{"path":"Observation.referenceRange.low","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"condition":["obs-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:IVL_PQ.low"}]},{"id":"Observation.referenceRange.high","path":"Observation.referenceRange.high","short":"High Range, if relevant","definition":"The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).","min":0,"max":"1","base":{"path":"Observation.referenceRange.high","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"condition":["obs-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:IVL_PQ.high"}]},{"id":"Observation.referenceRange.type","path":"Observation.referenceRange.type","short":"Reference range qualifier","definition":"Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.","comment":"This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.","requirements":"Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.","min":0,"max":"1","base":{"path":"Observation.referenceRange.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationRangeMeaning"}],"strength":"preferred","description":"Code for the meaning of a reference range.","valueSet":"http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"},{"identity":"v2","map":"OBX-10"},{"identity":"rim","map":"interpretationCode"}]},{"id":"Observation.referenceRange.appliesTo","path":"Observation.referenceRange.appliesTo","short":"Reference range population","definition":"Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.","comment":"This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.","requirements":"Need to be able to identify the target population for proper interpretation.","min":0,"max":"*","base":{"path":"Observation.referenceRange.appliesTo","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationRangeType"}],"strength":"example","description":"Codes identifying the population the reference range applies to.","valueSet":"http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"},{"identity":"v2","map":"OBX-10"},{"identity":"rim","map":"interpretationCode"}]},{"id":"Observation.referenceRange.age","path":"Observation.referenceRange.age","short":"Applicable age range, if relevant","definition":"The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.","requirements":"Some analytes vary greatly over age.","min":0,"max":"1","base":{"path":"Observation.referenceRange.age","min":0,"max":"1"},"type":[{"code":"Range"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"}]},{"id":"Observation.referenceRange.text","path":"Observation.referenceRange.text","short":"Text based reference range in an observation","definition":"Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".","min":0,"max":"1","base":{"path":"Observation.referenceRange.text","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:ST"}]},{"id":"Observation.hasMember","path":"Observation.hasMember","short":"Used when reporting vital signs panel components","definition":"Used when reporting vital signs panel components.","comment":"When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/questionnaireresponse.html) into a final score and represent the score as an Observation.","min":0,"max":"*","base":{"path":"Observation.hasMember","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1","http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1","http://hl7.org/fhir/StructureDefinition/vitalsigns|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"Relationships established by OBX-4 usage"},{"identity":"rim","map":"outBoundRelationship"}]},{"id":"Observation.derivedFrom","path":"Observation.derivedFrom","short":"Related measurements the observation is made from","definition":"The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.","comment":"All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/observation.html#obsgrouping) below.","min":0,"max":"*","base":{"path":"Observation.derivedFrom","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1","http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1","http://hl7.org/fhir/StructureDefinition/Media|4.0.1","http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1","http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1","http://hl7.org/fhir/StructureDefinition/vitalsigns|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"Relationships established by OBX-4 usage"},{"identity":"rim","map":".targetObservation"}]},{"id":"Observation.component","path":"Observation.component","short":"Used when reporting systolic and diastolic blood pressure.","definition":"Used when reporting systolic and diastolic blood pressure.","comment":"For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/observation.html#notes) below.","requirements":"Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.","min":0,"max":"*","base":{"path":"Observation.component","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"vs-3","severity":"error","human":"If there is no a value a data absent reason must be present","expression":"value.exists() or dataAbsentReason.exists()","xpath":"f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason","source":"http://hl7.org/fhir/StructureDefinition/vitalsigns"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"containment by OBX-4?"},{"identity":"rim","map":"outBoundRelationship[typeCode=COMP]"}]},{"id":"Observation.component.id","path":"Observation.component.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component.extension","path":"Observation.component.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component.modifierExtension","path":"Observation.component.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.component.code","path":"Observation.component.code","short":"Type of component observation (code / type)","definition":"Describes what was observed. Sometimes this is called the observation \"code\".","comment":"*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.","requirements":"Knowing what kind of observation is being made is essential to understanding the observation.","min":1,"max":"1","base":{"path":"Observation.component.code","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"VitalSigns"}],"strength":"extensible","description":"This identifies the vital sign result type.","valueSet":"http://hl7.org/fhir/ValueSet/observation-vitalsignresult|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"sct-concept","map":"< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"code"}]},{"id":"Observation.component.value[x]","path":"Observation.component.value[x]","short":"Vital Sign Value recorded with UCUM","definition":"Vital Sign Value recorded with UCUM.","comment":"Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/observation.html#notes) below.","requirements":"9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).","min":0,"max":"1","base":{"path":"Observation.component.value[x]","min":0,"max":"1"},"type":[{"code":"Quantity"},{"code":"CodeableConcept"},{"code":"string"},{"code":"boolean"},{"code":"integer"},{"code":"Range"},{"code":"Ratio"},{"code":"SampledData"},{"code":"time"},{"code":"dateTime"},{"code":"Period"}],"condition":["vs-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"VitalSignsUnits"}],"strength":"extensible","description":"Common UCUM units for recording Vital Signs.","valueSet":"http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"},"mapping":[{"identity":"sct-concept","map":"363714003 |Interprets| < 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.component.dataAbsentReason","path":"Observation.component.dataAbsentReason","short":"Why the component result is missing","definition":"Provides a reason why the expected value in the element Observation.component.value[x] is missing.","comment":"\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.","requirements":"For many results it is necessary to handle exceptional values in measurements.","min":0,"max":"1","base":{"path":"Observation.component.dataAbsentReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["obs-6","vs-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationValueAbsentReason"}],"strength":"extensible","description":"Codes specifying why the result (`Observation.value[x]`) is missing.","valueSet":"http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1"},"mapping":[{"identity":"v2","map":"N/A"},{"identity":"rim","map":"value.nullFlavor"}]},{"id":"Observation.component.interpretation","path":"Observation.component.interpretation","short":"High, low, normal, etc.","definition":"A categorical assessment of an observation value. For example, high, low, normal.","comment":"Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.","requirements":"For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.","alias":["Abnormal Flag"],"min":0,"max":"*","base":{"path":"Observation.component.interpretation","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationInterpretation"}],"strength":"extensible","description":"Codes identifying interpretations of observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values|"},{"identity":"v2","map":"OBX-8"},{"identity":"rim","map":"interpretationCode"},{"identity":"sct-attr","map":"363713009 |Has interpretation|"}]},{"id":"Observation.component.referenceRange","path":"Observation.component.referenceRange","short":"Provides guide for interpretation of component result","definition":"Guidance on how to interpret the value by comparison to a normal or recommended range.","comment":"Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.","requirements":"Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.","min":0,"max":"*","base":{"path":"Observation.component.referenceRange","min":0,"max":"*"},"contentReference":"http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX.7"},{"identity":"rim","map":"outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"}]}]},"differential":{"element":[{"id":"Observation","path":"Observation","short":"Eswatini Health Information Exchange Vital Signs"},{"id":"Observation.id","path":"Observation.id","min":1},{"id":"Observation.code","path":"Observation.code","short":"Specific vital sign being observed","binding":{"strength":"required","valueSet":"http://hl7.org/fhir/ValueSet/observation-vitalsignresult"}},{"id":"Observation.subject","path":"Observation.subject","short":"Patient related to the vitals being recorded","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}]},{"id":"Observation.encounter","path":"Observation.encounter","short":"Visit related to the vitals being recorded","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}]},{"id":"Observation.value[x]","path":"Observation.value[x]","type":[{"code":"Quantity"}]},{"id":"Observation.value[x].value","path":"Observation.value[x].value","min":1},{"id":"Observation.value[x].unit","path":"Observation.value[x].unit","min":1,"mustSupport":true}]}},"SzChiefdomExtension":{"resourceType":"StructureDefinition","id":"SzChiefdomExtension","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzChiefdomExtension","version":"0.1.0","name":"SzChiefdomExtension","title":"Extention: Eswatini Chiefdom","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Extention for Eswatini Chiefdom","fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Extension","path":"Extension","short":"Extention: Eswatini Chiefdom","definition":"Extention for Eswatini Chiefdom","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzChiefdomExtension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":0,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzChiefdomVS|0.1.0"},"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension","short":"Extention: Eswatini Chiefdom","definition":"Extention for Eswatini Chiefdom"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzChiefdomExtension"},{"id":"Extension.value[x]","path":"Extension.value[x]","type":[{"code":"CodeableConcept"}],"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzChiefdomVS|0.1.0"}}]}},"SzClinicalObservation":{"resourceType":"StructureDefinition","id":"SzClinicalObservation","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzClinicalObservation","version":"0.1.0","name":"EswatiniClinicalObservation","title":"Eswatini Clinical Observation Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"Eswatini Clinical Observation Profile","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"sct-concept","uri":"http://snomed.info/conceptdomain","name":"SNOMED CT Concept Domain Binding"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"sct-attr","uri":"http://snomed.org/attributebinding","name":"SNOMED CT Attribute Binding"}],"kind":"resource","abstract":false,"type":"Observation","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Observation","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Observation","path":"Observation","short":"Measurements and simple assertions","definition":"Measurements and simple assertions made about a patient, device or other subject.","comment":"Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc. Other resources are used to provide context for observations such as laboratory reports, etc.","alias":["Vital Signs","Measurement","Results","Tests"],"min":0,"max":"*","base":{"path":"Observation","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"obs-6","severity":"error","human":"dataAbsentReason SHALL only be present if Observation.value[x] is not present","expression":"dataAbsentReason.empty() or value.empty()","xpath":"not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))","source":"http://hl7.org/fhir/StructureDefinition/Observation"},{"key":"obs-7","severity":"error","human":"If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present","expression":"value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()","xpath":"not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))","source":"http://hl7.org/fhir/StructureDefinition/Observation"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Event"},{"identity":"sct-concept","map":"< 363787002 |Observable entity|"},{"identity":"v2","map":"OBX"},{"identity":"rim","map":"Observation[classCode=OBS, moodCode=EVN]"}]},{"id":"Observation.id","path":"Observation.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Observation.meta","path":"Observation.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"Observation.implicitRules","path":"Observation.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Observation.language","path":"Observation.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Observation.text","path":"Observation.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Observation.contained","path":"Observation.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.extension","path":"Observation.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.modifierExtension","path":"Observation.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.identifier","path":"Observation.identifier","short":"Business Identifier for observation","definition":"A unique identifier assigned to this observation.","requirements":"Allows observations to be distinguished and referenced.","min":0,"max":"*","base":{"path":"Observation.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."},{"identity":"rim","map":"id"}]},{"id":"Observation.basedOn","path":"Observation.basedOn","short":"Fulfills plan, proposal or order","definition":"A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.","requirements":"Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.","alias":["Fulfills"],"min":0,"max":"*","base":{"path":"Observation.basedOn","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1","http://hl7.org/fhir/StructureDefinition/DeviceRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1","http://hl7.org/fhir/StructureDefinition/NutritionOrder|4.0.1","http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.basedOn"},{"identity":"v2","map":"ORC"},{"identity":"rim","map":".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"}]},{"id":"Observation.partOf","path":"Observation.partOf","short":"Part of referenced event","definition":"A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.","comment":"To link an Observation to an Encounter use `encounter`. See the [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below for guidance on referencing another Observation.","alias":["Container"],"min":0,"max":"*","base":{"path":"Observation.partOf","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationDispense|4.0.1","http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1","http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1","http://hl7.org/fhir/StructureDefinition/Immunization|4.0.1","http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.partOf"},{"identity":"v2","map":"Varies by domain"},{"identity":"rim","map":".outboundRelationship[typeCode=FLFS].target"}]},{"id":"Observation.status","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint","valueString":"default: final"}],"path":"Observation.status","short":"registered | preliminary | final | amended +","definition":"The status of the result value.","comment":"This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.","requirements":"Need to track the status of individual results. Some results are finalized before the whole report is finalized.","min":1,"max":"1","base":{"path":"Observation.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationStatus"}],"strength":"required","description":"Codes providing the status of an observation.","valueSet":"http://hl7.org/fhir/ValueSet/observation-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.status"},{"identity":"w5","map":"FiveWs.status"},{"identity":"sct-concept","map":"< 445584004 |Report by finality status|"},{"identity":"v2","map":"OBX-11"},{"identity":"rim","map":"status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""}]},{"id":"Observation.category","path":"Observation.category","short":"Classification of type of observation","definition":"A code that classifies the general type of observation being made.","comment":"In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.","requirements":"Used for filtering what observations are retrieved and displayed.","min":0,"max":"*","base":{"path":"Observation.category","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCategory"}],"strength":"preferred","description":"Codes for high level observation categories.","valueSet":"http://hl7.org/fhir/ValueSet/observation-category|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"}]},{"id":"Observation.code","path":"Observation.code","short":"Observation code","definition":"Code for a particular observation e.g ART Initiation Date","comment":"*All* code-value and, if present, component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.","requirements":"Knowing what kind of observation is being made is essential to understanding the observation.","alias":["Name"],"min":1,"max":"1","base":{"path":"Observation.code","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"mustSupport":true,"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCode"}],"strength":"example","description":"Codes identifying names of simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-codes|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.code"},{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"sct-concept","map":"< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"code"},{"identity":"sct-attr","map":"116680003 |Is a|"}]},{"id":"Observation.subject","path":"Observation.subject","short":"Patient's information","definition":"Patient relevant to the requested lab order","comment":"One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.","requirements":"Observations have no value if you don't know who or what they're about.","min":1,"max":"1","base":{"path":"Observation.subject","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.subject"},{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"PID-3"},{"identity":"rim","map":"participation[typeCode=RTGT]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Observation.focus","path":"Observation.focus","short":"What the observation is about, when it is not about the subject of record","definition":"The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.","comment":"Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](http://hl7.org/fhir/R4/extension-observation-focuscode.html).","min":0,"max":"*","base":{"path":"Observation.focus","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"participation[typeCode=SBJ]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Observation.encounter","path":"Observation.encounter","short":"Encounter information","definition":"Encounter relevant to the requested lab order","comment":"This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).","requirements":"For some observations it may be important to know the link between an observation and a particular encounter.","alias":["Context"],"min":0,"max":"1","base":{"path":"Observation.encounter","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.context"},{"identity":"w5","map":"FiveWs.context"},{"identity":"v2","map":"PV1"},{"identity":"rim","map":"inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"}]},{"id":"Observation.effective[x]","path":"Observation.effective[x]","short":"Clinically relevant time/time-period for observation","definition":"The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.","comment":"At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](http://hl7.org/fhir/R4/datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.","requirements":"Knowing when an observation was deemed true is important to its relevance as well as determining trends.","alias":["Occurrence"],"min":0,"max":"1","base":{"path":"Observation.effective[x]","min":0,"max":"1"},"type":[{"code":"dateTime"},{"code":"Period"},{"code":"Timing"},{"code":"instant"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.occurrence[x]"},{"identity":"w5","map":"FiveWs.done[x]"},{"identity":"v2","map":"OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"},{"identity":"rim","map":"effectiveTime"}]},{"id":"Observation.issued","path":"Observation.issued","short":"Date/Time this version was made available","definition":"The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified.","comment":"For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](http://hl7.org/fhir/R4/resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.","min":0,"max":"1","base":{"path":"Observation.issued","min":0,"max":"1"},"type":[{"code":"instant"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.recorded"},{"identity":"v2","map":"OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"},{"identity":"rim","map":"participation[typeCode=AUT].time"}]},{"id":"Observation.performer","path":"Observation.performer","short":"Who is responsible for the observation","definition":"Who was responsible for asserting the observed value as \"true\".","requirements":"May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.","min":0,"max":"*","base":{"path":"Observation.performer","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1","http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1","http://hl7.org/fhir/StructureDefinition/Organization|4.0.1","http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1","http://hl7.org/fhir/StructureDefinition/Patient|4.0.1","http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.performer.actor"},{"identity":"w5","map":"FiveWs.actor"},{"identity":"v2","map":"OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"},{"identity":"rim","map":"participation[typeCode=PRF]"}]},{"id":"Observation.value[x]","path":"Observation.value[x]","short":"Actual result","definition":"The information determined as a result of making the observation, if the information has a simple value.","comment":"An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.","min":1,"max":"1","base":{"path":"Observation.value[x]","min":0,"max":"1"},"type":[{"code":"Quantity"},{"code":"CodeableConcept"},{"code":"string"},{"code":"boolean"},{"code":"integer"},{"code":"Range"},{"code":"Ratio"},{"code":"SampledData"},{"code":"time"},{"code":"dateTime"},{"code":"Period"}],"condition":["obs-7"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"< 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.dataAbsentReason","path":"Observation.dataAbsentReason","short":"Why the result is missing","definition":"Provides a reason why the expected value in the element Observation.value[x] is missing.","comment":"Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.","requirements":"For many results it is necessary to handle exceptional values in measurements.","min":0,"max":"1","base":{"path":"Observation.dataAbsentReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["obs-6"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationValueAbsentReason"}],"strength":"extensible","description":"Codes specifying why the result (`Observation.value[x]`) is missing.","valueSet":"http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1"},"mapping":[{"identity":"v2","map":"N/A"},{"identity":"rim","map":"value.nullFlavor"}]},{"id":"Observation.interpretation","path":"Observation.interpretation","short":"High, low, normal, etc.","definition":"A categorical assessment of an observation value. For example, high, low, normal.","comment":"Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.","requirements":"For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.","alias":["Abnormal Flag"],"min":0,"max":"*","base":{"path":"Observation.interpretation","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationInterpretation"}],"strength":"extensible","description":"Codes identifying interpretations of observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values|"},{"identity":"v2","map":"OBX-8"},{"identity":"rim","map":"interpretationCode"},{"identity":"sct-attr","map":"363713009 |Has interpretation|"}]},{"id":"Observation.note","path":"Observation.note","short":"Comments about the observation","definition":"Comments about the observation or the results.","comment":"May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.","requirements":"Need to be able to provide free text additional information.","min":0,"max":"*","base":{"path":"Observation.note","min":0,"max":"*"},"type":[{"code":"Annotation"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"},{"identity":"rim","map":"subjectOf.observationEvent[code=\"annotation\"].value"}]},{"id":"Observation.bodySite","path":"Observation.bodySite","short":"Observed body part","definition":"Indicates the site on the subject's body where the observation was made (i.e. the target site).","comment":"Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](http://hl7.org/fhir/R4/extension-bodysite.html).","min":0,"max":"1","base":{"path":"Observation.bodySite","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"BodySite"}],"strength":"example","description":"Codes describing anatomical locations. May include laterality.","valueSet":"http://hl7.org/fhir/ValueSet/body-site|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 123037004 |Body structure|"},{"identity":"v2","map":"OBX-20"},{"identity":"rim","map":"targetSiteCode"},{"identity":"sct-attr","map":"718497002 |Inherent location|"}]},{"id":"Observation.method","path":"Observation.method","short":"How it was done","definition":"Indicates the mechanism used to perform the observation.","comment":"Only used if not implicit in code for Observation.code.","requirements":"In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.","min":0,"max":"1","base":{"path":"Observation.method","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationMethod"}],"strength":"example","description":"Methods for simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-methods|4.0.1"},"mapping":[{"identity":"v2","map":"OBX-17"},{"identity":"rim","map":"methodCode"}]},{"id":"Observation.specimen","path":"Observation.specimen","short":"Specimen used for this observation","definition":"The specimen that was used when this observation was made.","comment":"Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).","min":0,"max":"1","base":{"path":"Observation.specimen","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Specimen|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"sct-concept","map":"< 123038009 |Specimen|"},{"identity":"v2","map":"SPM segment"},{"identity":"rim","map":"participation[typeCode=SPC].specimen"},{"identity":"sct-attr","map":"704319004 |Inherent in|"}]},{"id":"Observation.device","path":"Observation.device","short":"(Measurement) Device","definition":"The device used to generate the observation data.","comment":"Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.","min":0,"max":"1","base":{"path":"Observation.device","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Device|4.0.1","http://hl7.org/fhir/StructureDefinition/DeviceMetric|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"sct-concept","map":"< 49062001 |Device|"},{"identity":"v2","map":"OBX-17 / PRT -10"},{"identity":"rim","map":"participation[typeCode=DEV]"},{"identity":"sct-attr","map":"424226004 |Using device|"}]},{"id":"Observation.referenceRange","path":"Observation.referenceRange","short":"Provides guide for interpretation","definition":"Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.","comment":"Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.","requirements":"Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.","min":0,"max":"*","base":{"path":"Observation.referenceRange","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"obs-3","severity":"error","human":"Must have at least a low or a high or text","expression":"low.exists() or high.exists() or text.exists()","xpath":"(exists(f:low) or exists(f:high)or exists(f:text))","source":"http://hl7.org/fhir/StructureDefinition/Observation"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX.7"},{"identity":"rim","map":"outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"}]},{"id":"Observation.referenceRange.id","path":"Observation.referenceRange.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.referenceRange.extension","path":"Observation.referenceRange.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.referenceRange.modifierExtension","path":"Observation.referenceRange.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.referenceRange.low","path":"Observation.referenceRange.low","short":"Low Range, if relevant","definition":"The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).","min":0,"max":"1","base":{"path":"Observation.referenceRange.low","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"condition":["obs-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:IVL_PQ.low"}]},{"id":"Observation.referenceRange.high","path":"Observation.referenceRange.high","short":"High Range, if relevant","definition":"The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).","min":0,"max":"1","base":{"path":"Observation.referenceRange.high","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1"]}],"condition":["obs-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:IVL_PQ.high"}]},{"id":"Observation.referenceRange.type","path":"Observation.referenceRange.type","short":"Reference range qualifier","definition":"Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.","comment":"This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.","requirements":"Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.","min":0,"max":"1","base":{"path":"Observation.referenceRange.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationRangeMeaning"}],"strength":"preferred","description":"Code for the meaning of a reference range.","valueSet":"http://hl7.org/fhir/ValueSet/referencerange-meaning|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"},{"identity":"v2","map":"OBX-10"},{"identity":"rim","map":"interpretationCode"}]},{"id":"Observation.referenceRange.appliesTo","path":"Observation.referenceRange.appliesTo","short":"Reference range population","definition":"Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.","comment":"This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.","requirements":"Need to be able to identify the target population for proper interpretation.","min":0,"max":"*","base":{"path":"Observation.referenceRange.appliesTo","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationRangeType"}],"strength":"example","description":"Codes identifying the population the reference range applies to.","valueSet":"http://hl7.org/fhir/ValueSet/referencerange-appliesto|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"},{"identity":"v2","map":"OBX-10"},{"identity":"rim","map":"interpretationCode"}]},{"id":"Observation.referenceRange.age","path":"Observation.referenceRange.age","short":"Applicable age range, if relevant","definition":"The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.","requirements":"Some analytes vary greatly over age.","min":0,"max":"1","base":{"path":"Observation.referenceRange.age","min":0,"max":"1"},"type":[{"code":"Range"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"}]},{"id":"Observation.referenceRange.text","path":"Observation.referenceRange.text","short":"Text based reference range in an observation","definition":"Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".","min":0,"max":"1","base":{"path":"Observation.referenceRange.text","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX-7"},{"identity":"rim","map":"value:ST"}]},{"id":"Observation.hasMember","path":"Observation.hasMember","short":"Related resource that belongs to the Observation group","definition":"This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.","comment":"When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](http://hl7.org/fhir/R4/questionnaireresponse.html) into a final score and represent the score as an Observation.","min":0,"max":"*","base":{"path":"Observation.hasMember","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1","http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"Relationships established by OBX-4 usage"},{"identity":"rim","map":"outBoundRelationship"}]},{"id":"Observation.derivedFrom","path":"Observation.derivedFrom","short":"Related measurements the observation is made from","definition":"The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.","comment":"All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](http://hl7.org/fhir/R4/observation.html#obsgrouping) below.","min":0,"max":"*","base":{"path":"Observation.derivedFrom","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1","http://hl7.org/fhir/StructureDefinition/ImagingStudy|4.0.1","http://hl7.org/fhir/StructureDefinition/Media|4.0.1","http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1","http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/MolecularSequence|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"Relationships established by OBX-4 usage"},{"identity":"rim","map":".targetObservation"}]},{"id":"Observation.component","path":"Observation.component","short":"Component results","definition":"Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.","comment":"For a discussion on the ways Observations can be assembled in groups together see [Notes](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.","min":0,"max":"*","base":{"path":"Observation.component","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"containment by OBX-4?"},{"identity":"rim","map":"outBoundRelationship[typeCode=COMP]"}]},{"id":"Observation.component.id","path":"Observation.component.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component.extension","path":"Observation.component.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Observation.component.modifierExtension","path":"Observation.component.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Observation.component.code","path":"Observation.component.code","short":"Type of component observation (code / type)","definition":"Describes what was observed. Sometimes this is called the observation \"code\".","comment":"*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.","requirements":"Knowing what kind of observation is being made is essential to understanding the observation.","min":1,"max":"1","base":{"path":"Observation.component.code","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationCode"}],"strength":"example","description":"Codes identifying names of simple observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-codes|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"sct-concept","map":"< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"},{"identity":"v2","map":"OBX-3"},{"identity":"rim","map":"code"}]},{"id":"Observation.component.value[x]","path":"Observation.component.value[x]","short":"Actual component result","definition":"The information determined as a result of making the observation, if the information has a simple value.","comment":"Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](http://hl7.org/fhir/R4/observation.html#notes) below.","requirements":"An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.","min":0,"max":"1","base":{"path":"Observation.component.value[x]","min":0,"max":"1"},"type":[{"code":"Quantity"},{"code":"CodeableConcept"},{"code":"string"},{"code":"boolean"},{"code":"integer"},{"code":"Range"},{"code":"Ratio"},{"code":"SampledData"},{"code":"time"},{"code":"dateTime"},{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"sct-concept","map":"363714003 |Interprets| < 441742003 |Evaluation finding|"},{"identity":"v2","map":"OBX.2, OBX.5, OBX.6"},{"identity":"rim","map":"value"},{"identity":"sct-attr","map":"363714003 |Interprets|"}]},{"id":"Observation.component.dataAbsentReason","path":"Observation.component.dataAbsentReason","short":"Why the component result is missing","definition":"Provides a reason why the expected value in the element Observation.component.value[x] is missing.","comment":"\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.","requirements":"For many results it is necessary to handle exceptional values in measurements.","min":0,"max":"1","base":{"path":"Observation.component.dataAbsentReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["obs-6"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationValueAbsentReason"}],"strength":"extensible","description":"Codes specifying why the result (`Observation.value[x]`) is missing.","valueSet":"http://hl7.org/fhir/ValueSet/data-absent-reason|4.0.1"},"mapping":[{"identity":"v2","map":"N/A"},{"identity":"rim","map":"value.nullFlavor"}]},{"id":"Observation.component.interpretation","path":"Observation.component.interpretation","short":"High, low, normal, etc.","definition":"A categorical assessment of an observation value. For example, high, low, normal.","comment":"Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.","requirements":"For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.","alias":["Abnormal Flag"],"min":0,"max":"*","base":{"path":"Observation.component.interpretation","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ObservationInterpretation"}],"strength":"extensible","description":"Codes identifying interpretations of observations.","valueSet":"http://hl7.org/fhir/ValueSet/observation-interpretation|4.0.1"},"mapping":[{"identity":"sct-concept","map":"< 260245000 |Findings values|"},{"identity":"v2","map":"OBX-8"},{"identity":"rim","map":"interpretationCode"},{"identity":"sct-attr","map":"363713009 |Has interpretation|"}]},{"id":"Observation.component.referenceRange","path":"Observation.component.referenceRange","short":"Provides guide for interpretation of component result","definition":"Guidance on how to interpret the value by comparison to a normal or recommended range.","comment":"Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.","requirements":"Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.","min":0,"max":"*","base":{"path":"Observation.component.referenceRange","min":0,"max":"*"},"contentReference":"http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"OBX.7"},{"identity":"rim","map":"outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"}]}]},"differential":{"element":[{"id":"Observation","path":"Observation"},{"id":"Observation.id","path":"Observation.id","min":1},{"id":"Observation.code","path":"Observation.code","short":"Observation code","definition":"Code for a particular observation e.g ART Initiation Date","mustSupport":true},{"id":"Observation.subject","path":"Observation.subject","short":"Patient's information","definition":"Patient relevant to the requested lab order","min":1,"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient"]}]},{"id":"Observation.encounter","path":"Observation.encounter","short":"Encounter information","definition":"Encounter relevant to the requested lab order","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter"]}]},{"id":"Observation.value[x]","path":"Observation.value[x]","min":1}]}},"SzEncounter":{"resourceType":"StructureDefinition","id":"SzEncounter","url":"https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzEncounter","version":"0.1.0","name":"EswatiniEncounter","title":"Eswatini Encounter Profile","status":"active","date":"2026-03-26T10:44:11+00:00","publisher":"Ministry of Health Eswatini","contact":[{"name":"Ministry of Health Eswatini","telecom":[{"system":"url","value":"https://hapifhir.eswatinihie.com"},{"system":"email","value":"eswatinihie@moh.gov.sz"}]}],"description":"The Eswatini Encounter Profile inherits from .... This profile sets minimum expectations for the Encounter resource to record basic encounter\ninformation for a patient. It specifies which core elements shall be present and constrains how the elements are used.","fhirVersion":"4.0.1","mapping":[{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"}],"kind":"resource","abstract":false,"type":"Encounter","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1","derivation":"constraint","snapshot":{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version","valueString":"4.0.1"}],"element":[{"id":"Encounter","path":"Encounter","short":"Eswatini Health Information Exchange Encounter","definition":"An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.","alias":["Visit"],"min":0,"max":"*","base":{"path":"Encounter","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"workflow","map":"Event"},{"identity":"rim","map":"Encounter[@moodCode='EVN']"}]},{"id":"Encounter.id","path":"Encounter.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":1,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"Encounter.meta","path":"Encounter.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true},{"id":"Encounter.implicitRules","path":"Encounter.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"Encounter.language","path":"Encounter.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages|4.0.1"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages|4.0.1"}},{"id":"Encounter.text","path":"Encounter.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"Encounter.contained","path":"Encounter.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Encounter.extension","path":"Encounter.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Encounter.modifierExtension","path":"Encounter.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Encounter.identifier","path":"Encounter.identifier","short":"Identifier(s) by which this encounter is known","definition":"Identifier(s) by which this encounter is known.","min":0,"max":"*","base":{"path":"Encounter.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"v2","map":"PV1-19"},{"identity":"rim","map":".id"}]},{"id":"Encounter.status","path":"Encounter.status","short":"planned | arrived | triaged | in-progress | onleave | finished | cancelled +","definition":"planned | arrived | triaged | in-progress | onleave | finished | cancelled +.","comment":"Note that internal business rules will determine the appropriate transitions that may occur between statuses (and also classes).","min":1,"max":"1","base":{"path":"Encounter.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"EncounterStatus"}],"strength":"required","description":"Current state of the encounter.","valueSet":"http://hl7.org/fhir/ValueSet/encounter-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.status"},{"identity":"w5","map":"FiveWs.status"},{"identity":"v2","map":"No clear equivalent in HL7 v2; active/finished could be inferred from PV1-44, PV1-45, PV2-24; inactive could be inferred from PV2-16"},{"identity":"rim","map":".statusCode"}]},{"id":"Encounter.statusHistory","path":"Encounter.statusHistory","short":"List of past encounter statuses","definition":"The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them.","comment":"The current status is always found in the current version of the resource, not the status history.","min":0,"max":"*","base":{"path":"Encounter.statusHistory","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.statusHistory.id","path":"Encounter.statusHistory.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.statusHistory.extension","path":"Encounter.statusHistory.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.statusHistory.modifierExtension","path":"Encounter.statusHistory.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Encounter.statusHistory.status","path":"Encounter.statusHistory.status","short":"planned | arrived | triaged | in-progress | onleave | finished | cancelled +","definition":"planned | arrived | triaged | in-progress | onleave | finished | cancelled +.","min":1,"max":"1","base":{"path":"Encounter.statusHistory.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"EncounterStatus"}],"strength":"required","description":"Current state of the encounter.","valueSet":"http://hl7.org/fhir/ValueSet/encounter-status|4.0.1"},"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.statusHistory.period","path":"Encounter.statusHistory.period","short":"The time that the episode was in the specified status","definition":"The time that the episode was in the specified status.","min":1,"max":"1","base":{"path":"Encounter.statusHistory.period","min":1,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.class","path":"Encounter.class","short":"Department in which the encounter took place","definition":"Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations.","min":1,"max":"1","base":{"path":"Encounter.class","min":1,"max":"1"},"type":[{"code":"Coding"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":true,"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEncounterClassificationVS|0.1.0"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"v2","map":"PV1-2"},{"identity":"rim","map":".inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code"}]},{"id":"Encounter.classHistory","path":"Encounter.classHistory","short":"List of past encounter classes","definition":"The class history permits the tracking of the encounters transitions without needing to go through the resource history. This would be used for a case where an admission starts of as an emergency encounter, then transitions into an inpatient scenario. Doing this and not restarting a new encounter ensures that any lab/diagnostic results can more easily follow the patient and not require re-processing and not get lost or cancelled during a kind of discharge from emergency to inpatient.","min":0,"max":"*","base":{"path":"Encounter.classHistory","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.classHistory.id","path":"Encounter.classHistory.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.classHistory.extension","path":"Encounter.classHistory.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.classHistory.modifierExtension","path":"Encounter.classHistory.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Encounter.classHistory.class","path":"Encounter.classHistory.class","short":"inpatient | outpatient | ambulatory | emergency +","definition":"inpatient | outpatient | ambulatory | emergency +.","min":1,"max":"1","base":{"path":"Encounter.classHistory.class","min":1,"max":"1"},"type":[{"code":"Coding"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"EncounterClass"}],"strength":"extensible","description":"Classification of the encounter.","valueSet":"http://terminology.hl7.org/ValueSet/v3-ActEncounterCode|3.0.0"},"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.classHistory.period","path":"Encounter.classHistory.period","short":"The time that the episode was in the specified class","definition":"The time that the episode was in the specified class.","min":1,"max":"1","base":{"path":"Encounter.classHistory.period","min":1,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.type","path":"Encounter.type","short":"Specific type of encounter","definition":"Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation).","comment":"Since there are many ways to further classify encounters, this element is 0..*.","min":0,"max":"*","base":{"path":"Encounter.type","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"EncounterType"}],"strength":"example","description":"The type of encounter.","valueSet":"http://hl7.org/fhir/ValueSet/encounter-type|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.code"},{"identity":"w5","map":"FiveWs.class"},{"identity":"v2","map":"PV1-4 / PV1-18"},{"identity":"rim","map":".code"}]},{"id":"Encounter.serviceType","path":"Encounter.serviceType","short":"Specific type of service","definition":"Broad categorization of the service that is to be provided (e.g. cardiology).","min":0,"max":"1","base":{"path":"Encounter.serviceType","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"EncounterServiceType"}],"strength":"example","description":"Broad categorization of the service that is to be provided.","valueSet":"http://hl7.org/fhir/ValueSet/service-type|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.code"},{"identity":"v2","map":"PV1-10"},{"identity":"rim","map":"n/a"}]},{"id":"Encounter.priority","path":"Encounter.priority","short":"Indicates the urgency of the encounter","definition":"Indicates the urgency of the encounter.","min":0,"max":"1","base":{"path":"Encounter.priority","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Priority"}],"strength":"example","description":"Indicates the urgency of the encounter.","valueSet":"http://terminology.hl7.org/ValueSet/v3-ActPriority|3.0.0"},"mapping":[{"identity":"w5","map":"FiveWs.grade"},{"identity":"v2","map":"PV2-25"},{"identity":"rim","map":".priorityCode"}]},{"id":"Encounter.subject","path":"Encounter.subject","short":"Patient associated with the encounter","definition":"The patient or group present at the encounter.","comment":"While the encounter is always about the patient, the patient might not actually be known in all contexts of use, and there may be a group of patients that could be anonymous (such as in a group therapy for Alcoholics Anonymous - where the recording of the encounter could be used for billing on the number of people/staff and not important to the context of the specific patients) or alternately in veterinary care a herd of sheep receiving treatment (where the animals are not individually tracked).","alias":["patient"],"min":0,"max":"1","base":{"path":"Encounter.subject","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient|0.1.0"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.subject"},{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"v2","map":"PID-3"},{"identity":"rim","map":".participation[typeCode=SBJ]/role[classCode=PAT]"},{"identity":"w5","map":"FiveWs.subject"}]},{"id":"Encounter.episodeOfCare","path":"Encounter.episodeOfCare","short":"Episode(s) of care that this encounter should be recorded against","definition":"Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem. The association is recorded on the encounter as these are typically created after the episode of care and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).","min":0,"max":"*","base":{"path":"Encounter.episodeOfCare","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/EpisodeOfCare|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.context"},{"identity":"w5","map":"FiveWs.context"},{"identity":"v2","map":"PV1-54, PV1-53"},{"identity":"rim","map":"n/a"}]},{"id":"Encounter.basedOn","path":"Encounter.basedOn","short":"The ServiceRequest that initiated this encounter","definition":"The request this encounter satisfies (e.g. incoming referral or procedure request).","alias":["incomingReferral"],"min":0,"max":"*","base":{"path":"Encounter.basedOn","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.basedOn"},{"identity":"rim","map":".reason.ClinicalDocument"}]},{"id":"Encounter.participant","path":"Encounter.participant","short":"List of participants involved in the encounter","definition":"The list of people responsible for providing the service.","min":1,"max":"1","base":{"path":"Encounter.participant","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.performer"},{"identity":"v2","map":"ROL"},{"identity":"rim","map":".participation[typeCode=PFM]"}]},{"id":"Encounter.participant.id","path":"Encounter.participant.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.participant.extension","path":"Encounter.participant.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.participant.modifierExtension","path":"Encounter.participant.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Encounter.participant.type","path":"Encounter.participant.type","short":"Role of participant in encounter","definition":"Role of participant in encounter.","comment":"The participant type indicates how an individual participates in an encounter. It includes non-practitioner participants, and for practitioners this is to describe the action type in the context of this encounter (e.g. Admitting Dr, Attending Dr, Translator, Consulting Dr). This is different to the practitioner roles which are functional roles, derived from terms of employment, education, licensing, etc.","min":0,"max":"*","base":{"path":"Encounter.participant.type","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ParticipantType"}],"strength":"extensible","description":"Role of participant in encounter.","valueSet":"http://hl7.org/fhir/ValueSet/encounter-participant-type|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.performer.function"},{"identity":"v2","map":"ROL-3 (or maybe PRT-4)"},{"identity":"rim","map":".functionCode"}]},{"id":"Encounter.participant.period","path":"Encounter.participant.period","short":"Period of time during the encounter that the participant participated","definition":"The period of time that the specified participant participated in the encounter. These can overlap or be sub-sets of the overall encounter's period.","min":0,"max":"1","base":{"path":"Encounter.participant.period","min":0,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"ROL-5, ROL-6 (or maybe PRT-5)"},{"identity":"rim","map":".time"}]},{"id":"Encounter.participant.individual","path":"Encounter.participant.individual","short":"Clinicians who participated in the encounter","definition":"Persons involved in the encounter other than the patient.","min":0,"max":"1","base":{"path":"Encounter.participant.individual","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner|0.1.0"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.performer.actor"},{"identity":"w5","map":"FiveWs.who"},{"identity":"v2","map":"ROL-4"},{"identity":"rim","map":".role"}]},{"id":"Encounter.appointment","path":"Encounter.appointment","short":"The appointment that scheduled this encounter","definition":"The appointment that scheduled this encounter.","min":0,"max":"*","base":{"path":"Encounter.appointment","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Appointment|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.basedOn"},{"identity":"v2","map":"SCH-1 / SCH-2"},{"identity":"rim","map":".outboundRelationship[typeCode=FLFS].target[classCode=ENC, moodCode=APT]"}]},{"id":"Encounter.period","path":"Encounter.period","short":"The start and end time of the encounter","definition":"The start and end time of the encounter.","comment":"If not (yet) known, the end of the Period may be omitted.","min":1,"max":"1","base":{"path":"Encounter.period","min":0,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.occurrence[x]"},{"identity":"w5","map":"FiveWs.done[x]"},{"identity":"v2","map":"PV1-44, PV1-45"},{"identity":"rim","map":".effectiveTime (low & high)"}]},{"id":"Encounter.period.id","path":"Encounter.period.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.period.extension","path":"Encounter.period.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.period.start","path":"Encounter.period.start","short":"Start date and time of the encounter","definition":"The start of the period. The boundary is inclusive.","comment":"If the low element is missing, the meaning is that the low boundary is not known.","min":1,"max":"1","base":{"path":"Period.start","min":0,"max":"1"},"type":[{"code":"dateTime"}],"condition":["per-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"DR.1"},{"identity":"rim","map":"./low"}]},{"id":"Encounter.period.end","path":"Encounter.period.end","short":"End time with inclusive boundary, if not ongoing","definition":"The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.","comment":"The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03.","min":0,"max":"1","base":{"path":"Period.end","min":0,"max":"1"},"type":[{"code":"dateTime"}],"meaningWhenMissing":"If the end of the period is missing, it means that the period is ongoing","condition":["per-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"v2","map":"DR.2"},{"identity":"rim","map":"./high"}]},{"id":"Encounter.length","path":"Encounter.length","short":"Quantity of time the encounter lasted (less time absent)","definition":"Quantity of time the encounter lasted. This excludes the time during leaves of absence.","comment":"May differ from the time the Encounter.period lasted because of leave of absence.","min":0,"max":"1","base":{"path":"Encounter.length","min":0,"max":"1"},"type":[{"code":"Duration"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.occurrence[x]"},{"identity":"v2","map":"(PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes"},{"identity":"rim","map":".lengthOfStayQuantity"}]},{"id":"Encounter.reasonCode","path":"Encounter.reasonCode","short":"Coded reason the encounter takes place","definition":"Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.","comment":"For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis).","alias":["Indication","Admission diagnosis"],"min":0,"max":"*","base":{"path":"Encounter.reasonCode","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"EncounterReason"}],"strength":"preferred","description":"Reason why the encounter takes place.","valueSet":"http://hl7.org/fhir/ValueSet/encounter-reason|4.0.1"},"mapping":[{"identity":"workflow","map":"Event.reasonCode"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"v2","map":"EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )"},{"identity":"rim","map":".reasonCode"}]},{"id":"Encounter.reasonReference","path":"Encounter.reasonReference","short":"Reason the encounter takes place (reference)","definition":"Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.","comment":"For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis).","alias":["Indication","Admission diagnosis"],"min":0,"max":"*","base":{"path":"Encounter.reasonReference","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Condition|4.0.1","http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1","http://hl7.org/fhir/StructureDefinition/Observation|4.0.1","http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.reasonCode"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"v2","map":"EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )"},{"identity":"rim","map":".reasonCode"}]},{"id":"Encounter.diagnosis","path":"Encounter.diagnosis","short":"The list of diagnosis relevant to this encounter","definition":"The list of diagnosis relevant to this encounter.","min":0,"max":"*","base":{"path":"Encounter.diagnosis","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":".outboundRelationship[typeCode=RSON]"}]},{"id":"Encounter.diagnosis.id","path":"Encounter.diagnosis.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.diagnosis.extension","path":"Encounter.diagnosis.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.diagnosis.modifierExtension","path":"Encounter.diagnosis.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Encounter.diagnosis.condition","path":"Encounter.diagnosis.condition","short":"The diagnosis or procedure relevant to the encounter","definition":"Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.","comment":"For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis).","alias":["Admission diagnosis","discharge diagnosis","indication"],"min":1,"max":"1","base":{"path":"Encounter.diagnosis.condition","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Condition|4.0.1","http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Event.reasonReference"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"v2","map":"Resources that would commonly referenced at Encounter.indication would be Condition and/or Procedure. These most closely align with DG1/PRB and PR1 respectively."},{"identity":"rim","map":".outboundRelationship[typeCode=RSON].target"}]},{"id":"Encounter.diagnosis.use","path":"Encounter.diagnosis.use","short":"Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …)","definition":"Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …).","min":0,"max":"1","base":{"path":"Encounter.diagnosis.use","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"DiagnosisRole"}],"strength":"preferred","description":"The type of diagnosis this condition represents.","valueSet":"http://hl7.org/fhir/ValueSet/diagnosis-role|4.0.1"},"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.diagnosis.rank","path":"Encounter.diagnosis.rank","short":"Ranking of the diagnosis (for each role type)","definition":"Ranking of the diagnosis (for each role type).","min":0,"max":"1","base":{"path":"Encounter.diagnosis.rank","min":0,"max":"1"},"type":[{"code":"positiveInt"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".outboundRelationship[typeCode=RSON].priority"}]},{"id":"Encounter.account","path":"Encounter.account","short":"The set of accounts that may be used for billing for this Encounter","definition":"The set of accounts that may be used for billing for this Encounter.","comment":"The billing system may choose to allocate billable items associated with the Encounter to different referenced Accounts based on internal business rules.","min":0,"max":"*","base":{"path":"Encounter.account","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Account|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".pertains.A_Account"}]},{"id":"Encounter.hospitalization","path":"Encounter.hospitalization","short":"Details about the admission to a healthcare service","definition":"Details about the admission to a healthcare service.","comment":"An Encounter may cover more than just the inpatient stay. Contexts such as outpatients, community clinics, and aged care facilities are also included.\r\rThe duration recorded in the period of this encounter covers the entire scope of this hospitalization record.","min":0,"max":"1","base":{"path":"Encounter.hospitalization","min":0,"max":"1"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".outboundRelationship[typeCode=COMP].target[classCode=ENC, moodCode=EVN]"}]},{"id":"Encounter.hospitalization.id","path":"Encounter.hospitalization.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.hospitalization.extension","path":"Encounter.hospitalization.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.hospitalization.modifierExtension","path":"Encounter.hospitalization.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Encounter.hospitalization.preAdmissionIdentifier","path":"Encounter.hospitalization.preAdmissionIdentifier","short":"Pre-admission identifier","definition":"Pre-admission identifier.","min":0,"max":"1","base":{"path":"Encounter.hospitalization.preAdmissionIdentifier","min":0,"max":"1"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"PV1-5"},{"identity":"rim","map":".id"}]},{"id":"Encounter.hospitalization.origin","path":"Encounter.hospitalization.origin","short":"The location/organization from which the patient came before admission","definition":"The location/organization from which the patient came before admission.","min":0,"max":"1","base":{"path":"Encounter.hospitalization.origin","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Location|4.0.1","http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".participation[typeCode=ORG].role"}]},{"id":"Encounter.hospitalization.admitSource","path":"Encounter.hospitalization.admitSource","short":"From where patient was admitted (physician referral, transfer)","definition":"From where patient was admitted (physician referral, transfer).","min":0,"max":"1","base":{"path":"Encounter.hospitalization.admitSource","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"AdmitSource"}],"strength":"preferred","description":"From where the patient was admitted.","valueSet":"http://hl7.org/fhir/ValueSet/encounter-admit-source|4.0.1"},"mapping":[{"identity":"v2","map":"PV1-14"},{"identity":"rim","map":".admissionReferralSourceCode"}]},{"id":"Encounter.hospitalization.reAdmission","path":"Encounter.hospitalization.reAdmission","short":"The type of hospital re-admission that has occurred (if any). If the value is absent, then this is not identified as a readmission","definition":"Whether this hospitalization is a readmission and why if known.","min":0,"max":"1","base":{"path":"Encounter.hospitalization.reAdmission","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ReAdmissionType"}],"strength":"example","description":"The reason for re-admission of this hospitalization encounter.","valueSet":"http://terminology.hl7.org/ValueSet/v2-0092|3.0.0"},"mapping":[{"identity":"v2","map":"PV1-13"},{"identity":"rim","map":"n/a"}]},{"id":"Encounter.hospitalization.dietPreference","path":"Encounter.hospitalization.dietPreference","short":"Diet preferences reported by the patient","definition":"Diet preferences reported by the patient.","comment":"For example, a patient may request both a dairy-free and nut-free diet preference (not mutually exclusive).","requirements":"Used to track patient's diet restrictions and/or preference. For a complete description of the nutrition needs of a patient during their stay, one should use the nutritionOrder resource which links to Encounter.","min":0,"max":"*","base":{"path":"Encounter.hospitalization.dietPreference","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"PatientDiet"}],"strength":"example","description":"Medical, cultural or ethical food preferences to help with catering requirements.","valueSet":"http://hl7.org/fhir/ValueSet/encounter-diet|4.0.1"},"mapping":[{"identity":"v2","map":"PV1-38"},{"identity":"rim","map":".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=EVN, code=\"diet\"]"}]},{"id":"Encounter.hospitalization.specialCourtesy","path":"Encounter.hospitalization.specialCourtesy","short":"Special courtesies (VIP, board member)","definition":"Special courtesies (VIP, board member).","min":0,"max":"*","base":{"path":"Encounter.hospitalization.specialCourtesy","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Courtesies"}],"strength":"preferred","description":"Special courtesies.","valueSet":"http://hl7.org/fhir/ValueSet/encounter-special-courtesy|4.0.1"},"mapping":[{"identity":"v2","map":"PV1-16"},{"identity":"rim","map":".specialCourtesiesCode"}]},{"id":"Encounter.hospitalization.specialArrangement","path":"Encounter.hospitalization.specialArrangement","short":"Wheelchair, translator, stretcher, etc.","definition":"Any special requests that have been made for this hospitalization encounter, such as the provision of specific equipment or other things.","min":0,"max":"*","base":{"path":"Encounter.hospitalization.specialArrangement","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Arrangements"}],"strength":"preferred","description":"Special arrangements.","valueSet":"http://hl7.org/fhir/ValueSet/encounter-special-arrangements|4.0.1"},"mapping":[{"identity":"v2","map":"PV1-15 / OBR-30 / OBR-43"},{"identity":"rim","map":".specialArrangementCode"}]},{"id":"Encounter.hospitalization.destination","path":"Encounter.hospitalization.destination","short":"Location/organization to which the patient is discharged","definition":"Location/organization to which the patient is discharged.","min":0,"max":"1","base":{"path":"Encounter.hospitalization.destination","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Location|4.0.1","http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"v2","map":"PV1-37"},{"identity":"rim","map":".participation[typeCode=DST]"}]},{"id":"Encounter.hospitalization.dischargeDisposition","path":"Encounter.hospitalization.dischargeDisposition","short":"Category or kind of location after discharge","definition":"Category or kind of location after discharge.","min":0,"max":"1","base":{"path":"Encounter.hospitalization.dischargeDisposition","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"DischargeDisp"}],"strength":"example","description":"Discharge Disposition.","valueSet":"http://hl7.org/fhir/ValueSet/encounter-discharge-disposition|4.0.1"},"mapping":[{"identity":"v2","map":"PV1-36"},{"identity":"rim","map":".dischargeDispositionCode"}]},{"id":"Encounter.location","path":"Encounter.location","short":"Encounter location","definition":"Location where the encouter took place","comment":"Virtual encounters can be recorded in the Encounter by specifying a location reference to a location of type \"kind\" such as \"client's home\" and an encounter.class = \"virtual\".","min":1,"max":"1","base":{"path":"Encounter.location","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"mustSupport":true,"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".participation[typeCode=LOC]"}]},{"id":"Encounter.location.id","path":"Encounter.location.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.location.extension","path":"Encounter.location.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Encounter.location.modifierExtension","path":"Encounter.location.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Encounter.location.location","path":"Encounter.location.location","short":"Health facility","definition":"Location e.g KSII | Mbabane PHU","min":1,"max":"1","base":{"path":"Encounter.location.location","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation|0.1.0"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.location"},{"identity":"w5","map":"FiveWs.where[x]"},{"identity":"v2","map":"PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43"},{"identity":"rim","map":".role"}]},{"id":"Encounter.location.status","path":"Encounter.location.status","short":"planned | active | reserved | completed","definition":"The status of the participants' presence at the specified location during the period specified. If the participant is no longer at the location, then the period will have an end date/time.","comment":"When the patient is no longer active at a location, then the period end date is entered, and the status may be changed to completed.","min":0,"max":"1","base":{"path":"Encounter.location.status","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"EncounterLocationStatus"}],"strength":"required","description":"The status of the location.","valueSet":"http://hl7.org/fhir/ValueSet/encounter-location-status|4.0.1"},"mapping":[{"identity":"rim","map":".role.statusCode"}]},{"id":"Encounter.location.physicalType","path":"Encounter.location.physicalType","short":"The physical type of the location (usually the level in the location hierachy - bed room ward etc.)","definition":"This will be used to specify the required levels (bed/ward/room/etc.) desired to be recorded to simplify either messaging or query.","comment":"This information is de-normalized from the Location resource to support the easier understanding of the encounter resource and processing in messaging or query.\n\nThere may be many levels in the hierachy, and this may only pic specific levels that are required for a specific usage scenario.","min":0,"max":"1","base":{"path":"Encounter.location.physicalType","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"PhysicalType"}],"strength":"example","description":"Physical form of the location.","valueSet":"http://hl7.org/fhir/ValueSet/location-physical-type|4.0.1"}},{"id":"Encounter.location.period","path":"Encounter.location.period","short":"Time period during which the patient was present at the location","definition":"Time period during which the patient was present at the location.","min":0,"max":"1","base":{"path":"Encounter.location.period","min":0,"max":"1"},"type":[{"code":"Period"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".time"}]},{"id":"Encounter.serviceProvider","path":"Encounter.serviceProvider","short":"The organization (facility) responsible for this encounter","definition":"The organization that is primarily responsible for this Encounter's services. This MAY be the same as the organization on the Patient record, however it could be different, such as if the actor performing the services was from an external organization (which may be billed seperately) for an external consultation. Refer to the example bundle showing an abbreviated set of Encounters for a colonoscopy.","min":0,"max":"1","base":{"path":"Encounter.serviceProvider","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.performer.actor"},{"identity":"v2","map":"PL.6 & PL.1"},{"identity":"rim","map":".particiaption[typeCode=PFM].role"}]},{"id":"Encounter.partOf","path":"Encounter.partOf","short":"Another Encounter this encounter is part of","definition":"Another Encounter of which this encounter is a part of (administratively or in time).","comment":"This is also used for associating a child's encounter back to the mother's encounter.\r\rRefer to the Notes section in the Patient resource for further details.","min":0,"max":"1","base":{"path":"Encounter.partOf","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy","valueBoolean":true}],"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element|4.0.1"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Event.partOf"},{"identity":"rim","map":".inboundRelationship[typeCode=COMP].source[classCode=COMP, moodCode=EVN]"}]}]},"differential":{"element":[{"id":"Encounter","path":"Encounter","short":"Eswatini Health Information Exchange Encounter"},{"id":"Encounter.id","path":"Encounter.id","min":1},{"id":"Encounter.class","path":"Encounter.class","short":"Department in which the encounter took place","mustSupport":true,"binding":{"strength":"required","valueSet":"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEncounterClassificationVS|0.1.0"}},{"id":"Encounter.subject","path":"Encounter.subject","short":"Patient associated with the encounter","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPatient|0.1.0"]}]},{"id":"Encounter.participant","path":"Encounter.participant","min":1,"max":"1","mustSupport":true},{"id":"Encounter.participant.individual","path":"Encounter.participant.individual","short":"Clinicians who participated in the encounter","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzPractitioner|0.1.0"]}]},{"id":"Encounter.period","path":"Encounter.period","min":1},{"id":"Encounter.period.start","path":"Encounter.period.start","short":"Start date and time of the encounter","min":1},{"id":"Encounter.location","path":"Encounter.location","short":"Encounter location","definition":"Location where the encouter took place","min":1,"max":"1","mustSupport":true},{"id":"Encounter.location.location","path":"Encounter.location.location","short":"Health facility","definition":"Location e.g KSII | Mbabane PHU","type":[{"code":"Reference","targetProfile":["https://hapifhir.eswatinihie.com/fhir/StructureDefinition/SzLocation|0.1.0"]}]}]}}} \ No newline at end of file diff --git a/packages/fhir-eswatini/spec/spec.zip b/packages/fhir-eswatini/spec/spec.zip new file mode 100644 index 0000000000..37084be067 Binary files /dev/null and b/packages/fhir-eswatini/spec/spec.zip differ diff --git a/packages/fhir-eswatini/spec/valuesets.json b/packages/fhir-eswatini/spec/valuesets.json new file mode 100644 index 0000000000..d275a00e6d --- /dev/null +++ b/packages/fhir-eswatini/spec/valuesets.json @@ -0,0 +1 @@ +{"https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS":{"extends":[],"values":[{"code":"CD4","display":"CD4 Test"},{"code":"AST","display":"AST (Aspartate Transaminase)"},{"code":"CREA","display":"Creatinine "},{"code":"HB","display":"Haemoglobin"},{"code":"LFT","display":"Liver Function Tests - Profile"},{"code":"HIVVL","display":"HIV Viral Load (Plasma)"},{"code":"ICUP","display":"ICU- Profile"},{"code":"GGT","display":"Gamma-Glutamyl Transferase GGT"},{"code":"KFT","display":"Kidney Function Test - Profile"},{"code":"CARDE","display":"Cardiac Enzymes"},{"code":"ART","display":"ART Baseline - Profile"},{"code":"ELECT","display":"Electrolytes - Profile"},{"code":"GLUCF","display":"Glucose (Fasting)"},{"code":"GLUCR","display":"Glucose (Random)"},{"code":"GTT","display":"Glucose Tolerance Test"},{"code":"CL","display":"S-Chloride"},{"code":"K","display":"S-Potassium"},{"code":"NA","display":"S-Sodium"},{"code":"CO2","display":"S-Carbon Dioxide"},{"code":"UA","display":"Uric Acid"},{"code":"CREAC","display":"Creatinine Clearance"},{"code":"TBIL","display":"Total Bilirubin"},{"code":"BILI","display":"Total and Direct Bilirubin"},{"code":"ALP","display":"Alkaline Phosphatase"},{"code":"ALT","display":"ALT (Alanine Aminotransferase)"},{"code":"ALB","display":"Albumin"},{"code":"TPROT","display":"Total Protein"},{"code":"CK","display":"Creatine Kinase (CK)"},{"code":"CKMB","display":"Creatine Kinase (MB-Frac)"},{"code":"MYOG","display":"Myoglobin"},{"code":"TROPI","display":"S-Troponin I"},{"code":"MAG","display":"S-Magnesium"},{"code":"PO4","display":"Phosphate"},{"code":"CAL","display":"S-Calcium"},{"code":"LDH","display":"Lactate Dehydrogenase (LD)"},{"code":"TRIG","display":"Triglyceride"},{"code":"LDL","display":"LDL - Cholesterol"},{"code":"HDL","display":"HDL - Cholesterol"},{"code":"CHOL","display":"Total Cholesterol"},{"code":"AMY","display":"Serum Amylase"},{"code":"LACT","display":"Lactate"},{"code":"CRP","display":"C-Reactive Protein (CRP)"},{"code":"LIPAS","display":"Lipase (Serum)"},{"code":"HBA1C","display":"Glycated Haemoglobin (HbA1C)"},{"code":"M-TP","display":"Micro Total Protein"},{"code":"FBC","display":"FBC (Full Blood Count)"},{"code":"DIFF","display":"Differential Count"},{"code":"ESR","display":"ESR (Westergren)"},{"code":"RET","display":"Reticulocyte Studies"},{"code":"COOMB","display":"Coombs Test"},{"code":"SICKL","display":"Sickle Cells Screen"},{"code":"MAL","display":"Malaria"},{"code":"MALPC","display":"Malaria: PCR"},{"code":"MALS","display":"Malaria Smear: Parasitemia"},{"code":"PT","display":"Prothrombin Time(INR/PI)"},{"code":"APTT","display":"Partial Thromboplastin Time"},{"code":"PI","display":"Prothrombin Time (INR/PI)"},{"code":"BTIME","display":"Bleeding Time"},{"code":"DDIME","display":"D-Dimer"},{"code":"TFT","display":"Thyroid Function Tests "},{"code":"T3","display":"Free Tri-iodothyronine (FT3)"},{"code":"T4","display":"Free Thyroxine (T4)"},{"code":"TSH","display":"Thyroid Stimulating Hormone"},{"code":"LH","display":"Luteinising Hormone"},{"code":"FSH","display":"Follicle Stimulating Hormone"},{"code":"E2","display":"17 b Oestradial (E2)"},{"code":"PROG","display":"Progesterone"},{"code":"PRL","display":"Prolactin"},{"code":"TESTO","display":"Testosterone"},{"code":"CORT","display":"Cortisol"},{"code":"PTH","display":"Parathyroid Hormone"},{"code":"HCGSU","display":"Qualitative -HCG (Urine)"},{"code":"HCGSB","display":"Qualitative  -HCG"},{"code":"ABORH","display":"ABO + Rh Group"},{"code":"RPR","display":"Syphilis RPR"},{"code":"TPHA","display":"TPHA"},{"code":"PSSA","display":"ANTIBIOTIC SENS: PSA"},{"code":"BHCG","display":"Beta-HCG (Pregnancy Test)"},{"code":"AFP","display":"Alfa Feto Protein"},{"code":"CA153","display":"CA15-3"},{"code":"CA125","display":"CA125"},{"code":"CEA","display":"Carcino-embryonic Antigen"},{"code":"CA199","display":"CA19-9"},{"code":"GRAM","display":"MICROBIOLOGY : GRAM STAIN"},{"code":"MCSF","display":"MICROBIOLOGY : CSF"},{"code":"CSF","display":"CSF Chem Profile"},{"code":"CRINK","display":"India Ink Stain"},{"code":"SEMEN","display":"Semen Analysis"},{"code":"HIVR","display":"HIV Rapid Test"},{"code":"HIVE","display":"HIV ELISA"},{"code":"HIPOC","display":"Point of Care DNA PCR"},{"code":"LCRAG","display":"LFA Cryptococal Antigen"},{"code":"TOXO","display":"Toxoplasmosis Test"},{"code":"HELIP","display":"MICROBIOLOGY : H.pylori"},{"code":"HEAG","display":"Hepatitis A IgG"},{"code":"HBCAB","display":"Hepatitis B Core Antibodies"},{"code":"HEPC","display":"Hepatitis C Antibodies"},{"code":"QCRPR","display":"QC RPR"},{"code":"WIDAL","display":"Widal"},{"code":"RF","display":"Rheumatoid Factor"},{"code":"ASOT","display":"Anti-Streptolysin O Test"},{"code":"XMAT","display":"Cross Match"},{"code":"HLAX","display":"Grouping/Crossmatch"},{"code":"ANISC","display":"Antibody Screening (^Bbloodban"},{"code":"DCT","display":"Direct Coombs Test"},{"code":"ICT","display":"Indirect Coomb's Test"},{"code":"IGGS","display":"IMMUNOGLOBULINS"},{"code":"ZN1","display":"Smear Microscopy 1"},{"code":"CUBFL","display":"Culture : Body Fuilds"},{"code":"HIVGE","display":"HIV GENE XPERT"},{"code":"TROPT","display":"Troponin-T"},{"code":"UCHEM","display":"Biochemistry : Urine (Dipstick)"},{"code":"CRAG","display":"CRAG (CSF)"},{"code":"CRGLF","display":"CRAG (LFA) Blood"},{"code":"TBLAM","display":"TB LAM Ag TEST"},{"code":"17OPH","display":"17 Hydroxyprogesterone"},{"code":"A1ATR","display":"Alpha-1-antitrypsin"},{"code":"ACA","display":"Anti-Centromere Antibodies"},{"code":"ACE","display":"Angiotensin Converting Enzyme"},{"code":"ACERA","display":"Acetylcholine Receptor Ab's"},{"code":"ACLA","display":"Anti-Cardiolipin Antibodies"},{"code":"ACOLA","display":"Anti-Collagen Antibodies"},{"code":"ACTH","display":"Adrenocorticotrophic Hormone"},{"code":"ADENO","display":"ADENO"},{"code":"ADNA","display":"Anti-Double Stranded DNA"},{"code":"ALDOS","display":"Aldosterone"},{"code":"AMITA","display":"Anti-Mitochondrial Antibodies"},{"code":"AMYU","display":"Urine Amylase"},{"code":"ANA","display":"Anti-Nuclear Antibodies"},{"code":"ANCA","display":"Anti-Neutrophil Cytoplasmic Ab"},{"code":"ANDRO","display":"Androstenedione"},{"code":"ANTBG","display":"Blood Group + Rh"},{"code":"ANTE","display":"Antenatal Screening"},{"code":"AUR1","display":"TB Auramine Specimen 1"},{"code":"AUR2","display":"TB Auramine Specimen 2"},{"code":"AUR3","display":"TB Auramine Specimen 3"},{"code":"AUR4","display":"TB Auramine Specimen 4"},{"code":"BFCC","display":"Cell Count : Body Fluid"},{"code":"BG","display":"Blood Group + Rh"},{"code":"BGAS","display":"Blood Gases"},{"code":"BGRP","display":"Blood grouping"},{"code":"BHCG2","display":"HCG TOTAL BETA 2"},{"code":"BM","display":"Bone Marrow Report"},{"code":"BNP","display":"B-Type Natriuretic Peptide"},{"code":"BPARA","display":"Blood Parasite Investigation"},{"code":"BPARM","display":"Blood Parasites"},{"code":"C/UP","display":"Cutup"},{"code":"C1EST","display":"C1 Esterase Inhibitor Assay"},{"code":"CA724","display":"CA 72-4"},{"code":"CAERU","display":"Caeruloplasmin"},{"code":"CALCI","display":"Calcitonin"},{"code":"CALCT","display":"1.25 Dihydroxy Vitamin D"},{"code":"CARB","display":"S-Carbamazepine"},{"code":"CATS","display":"U-Catecholamines"},{"code":"CHLAM","display":"Antibody test for Chlamydia"},{"code":"CMP","display":"Calcium,Magnesium,PO4"},{"code":"CMV","display":"CYTOMEGALOVIRUS"},{"code":"CPEPT","display":"C-Peptide"},{"code":"CPROT","display":"CSF PROTEIN"},{"code":"CRPS","display":"CRP Serology"},{"code":"CSFA","display":"CSF Analysis"},{"code":"CSFAG","display":"BACTERIAL ANTIGEN TESTS"},{"code":"CSFC","display":"Cell Count : CSF"},{"code":"CUCSF","display":"CULTURE : CSF"},{"code":"CULFU","display":"MYCOLOGY"},{"code":"CULMY","display":"Mycology Culture"},{"code":"CULPU","display":"Culture : PUS"},{"code":"CULSP","display":"Culture : Sputum"},{"code":"CUTUP","display":"Histo Cut Up (Dummy)"},{"code":"CYTCO","display":"Gynaecological Detail"},{"code":"DBILI","display":"Conjugated Bilirubin (Direct)"},{"code":"DBSGE","display":"Dry Blood Spot Gene Xpert"},{"code":"DCRT","display":"1:20 Diluted CRT"},{"code":"DIFFM","display":"Differential Count"},{"code":"DIFFF","display":"Diff Micro"},{"code":"DRUGR","display":"Drug Resistance Testing"},{"code":"DRUGS","display":"DRUG SCREEN"},{"code":"E2M","display":"Oestradiol"},{"code":"EQAM1","display":"Microbiology EQA"},{"code":"FDP","display":"Fibrinogen Deg. Products (FDP)"},{"code":"FE","display":"S-Iron"},{"code":"FERR","display":"Ferritin"},{"code":"FERRX","display":"S-Ferritin"},{"code":"FGLU","display":"Fluid-Glucose"},{"code":"FNA","display":"Fine Needle Biopsy"},{"code":"FPROT","display":"F-Total Protein"},{"code":"GLOB","display":"Globulin"},{"code":"GLUC","display":"Glucose"},{"code":"GLUCS","display":"Glucose Strip"},{"code":"GNBST","display":"GNB Sensitivity Testing"},{"code":"GPCST","display":"GPC Sensitivity testing"},{"code":"GROUP","display":"Blood Group Serology"},{"code":"GTT2","display":"GTT - 2 hourly"},{"code":"GTT4","display":"GTT Prolonged"},{"code":"GYN","display":"Gynaecological Cytology"},{"code":"GYNAE","display":"MICROSCOPIC EXAMINATION"},{"code":"HBELE","display":"Haemoglobin Electrophoresis"},{"code":"HBSAB","display":"Hepatitis B Surface Antibody"},{"code":"HBSAG","display":"Hepatitis B Surface Antigen"},{"code":"HELIC","display":"Helicobacter pylori Antibodies"},{"code":"HEPAG","display":"Hepatitis A (IgG)(Immunity)"},{"code":"HEPAM","display":"Hepatitis A IgM"},{"code":"HEPD","display":"HEPATITIS D INVESTIGATION"},{"code":"HEPE","display":"HEPATITIS E INVESTIGATION"},{"code":"HERP","display":"Herpes simplex virus"},{"code":"HGH","display":"Human Growth Hormone"},{"code":"HI2DF","display":"HIV Viral Load (DBS)"},{"code":"HISIN","display":"CLINICAL HISTORY"},{"code":"HISSU","display":"Supplementary Report"},{"code":"HISTO","display":"MACROSCOPIC EXAMINATION"},{"code":"HISTX","display":"Histo Extended text"},{"code":"HIV48","display":"CD4 + CD8*"},{"code":"HIVA","display":"HIV ASANTE"},{"code":"HIVC","display":"HIV Ag/Ab Combo"},{"code":"HIVCW","display":"Child Welfare Number"},{"code":"HIVLD","display":"HIV Viral Load*"},{"code":"HIVPC","display":"HIV DNA PCR"},{"code":"HIVP","display":"HIV RAPID TEST"},{"code":"HIVST","display":"HIV EID Information"},{"code":"HIVWB","display":"HIV DNA PCR : Whole Blood"},{"code":"HSAGR","display":"HepB surface antigen Rapid"},{"code":"HSV","display":"Herpes simplex Virus"},{"code":"HVART","display":"ART Number"},{"code":"HYS","display":"Homocysteine"},{"code":"ICD10","display":"ICD10"},{"code":"IGE","display":"Total IgE"},{"code":"INR","display":"INR"},{"code":"IRONX","display":"S-IRON STUDIES"},{"code":"LALB","display":"ALBUMIN"},{"code":"LCHOL","display":"S-Cholesterol"},{"code":"LCOT","display":"Cotinine ELISA"},{"code":"LCREA","display":"Creatinine"},{"code":"LESR","display":"ESR (Westergren)"},{"code":"LFBC","display":"Full Blood Count"},{"code":"LGGT","display":"Gamma Glutamyl Transferase"},{"code":"LGLPF","display":"P-Glucose (Fasting)"},{"code":"LGLPR","display":"P-Glucose (Random)"},{"code":"LGLUF","display":"S-Glucose (Fasting)"},{"code":"LGLUR","display":"S-Glucose (Random)"},{"code":"LHBA1","display":"HbA1C"},{"code":"LHDL","display":"HDL Cholesterol"},{"code":"LI","display":"S-Lithium"},{"code":"LIPO","display":"Lipogram"},{"code":"LRF","display":"Rheumatoid factor"},{"code":"LUPUS","display":"Lupus anticoagulant"},{"code":"LUR","display":"Urea"},{"code":"MALB","display":"Micro-albumin"},{"code":"MBCAT","display":"Microbiology: Catheter Tip"},{"code":"MBCLT","display":"Microbiology: Catheter Line Ti"},{"code":"MBFAM","display":"MICROBIOLOGY:AMNIOTIC FLUID"},{"code":"MBFAS","display":"MICROBIOLOGY : ASCITIC FLUID"},{"code":"MBFCA","display":"MICROBIOLOGY:PERICARDIAL FLUID"},{"code":"MBFL","display":"Microbiology:Body Fluid"},{"code":"MBFLU","display":"Microbiology:Body Fluid"},{"code":"MBFPE","display":"MICROBIOLOGY:PERITONEAL FLUID"},{"code":"MBFPL","display":"MICROBIOLOGY:PLEURAL FLUID"},{"code":"MBFSY","display":"MICROBIOLOGY:SYNOVIAL FLUID"},{"code":"MBTRA","display":"Microbiology: Tracheal Tip"},{"code":"MBUCT","display":"Microbiology: Urinary Catheter"},{"code":"MBUMC","display":"Microbiology:Umbilical Cathete"},{"code":"MCES","display":"MICROBIOLOGY : CERVICAL SWAB"},{"code":"MEAS","display":"MICROBIOLOGY : EAR SWAB"},{"code":"MENDC","display":"MICROBIOLOGY:ENDOCERVICAL SWAB"},{"code":"MEYE","display":"MICROBIOLOGY : EYE SWAB"},{"code":"MGAS","display":"MICROBIOLOGY : GASTRIC ASP"},{"code":"MICBC","display":"MICROBIOLOGY: BLOOD CULTURE"},{"code":"MICFL","display":"MICROBIOLOGY : FLUID"},{"code":"MICNS","display":"MICROBIOLOGY : NASAL SWAB"},{"code":"MICSA","display":"Microscopy - Sexual Assault"},{"code":"MICTS","display":"MICROBIOLOGY : THROAT SWAB"},{"code":"MICU","display":"MICROBIOLOGY: URINE"},{"code":"MONO","display":"Epstein Barr Ser-Mono Test"},{"code":"MPEN","display":"MICROBIOLOGY : PENILE SWAB"},{"code":"MPT64","display":"MPT64 Rapid"},{"code":"MPUS","display":"MICROBIOLOGY : PUS"},{"code":"MRCSW","display":"MICROBIOLOGY : RECTAL SWAB"},{"code":"MSPUT","display":"MICROBIOLOGY : SPUTUM"},{"code":"MSTRS","display":"MICROBIOLOGY : STOOL CULTURE"},{"code":"MTISS","display":"MICROBIOLOGY : TISSUE"},{"code":"MUMPS","display":"Mumps Serology (ELISA)"},{"code":"MUPS","display":"MICROBIOLOGY : URETHRAL SWAB"},{"code":"MWUS","display":"MICROBILOLOGY: Wound Swab"},{"code":"MYGT","display":"Germ Tube Test"},{"code":"MYMIC","display":"Microscopy for Fungi"},{"code":"MYOB","display":"Myogloblin (Serum)"},{"code":"NGYN","display":"Non-Gynaecological Cytology"},{"code":"MFOB","display":"Faecal Occult Blood"},{"code":"PARA","display":"Parasitology:Urine"},{"code":"PBILI","display":"Neonatal Bilirubin"},{"code":"PBS","display":"Peripheral Blood Smear"},{"code":"PCRAP","display":"Factor V Leiden Mutation"},{"code":"PCTR","display":"Procalcitonin"},{"code":"PHENB","display":"Phenobarbitone"},{"code":"PHENY","display":"S-Phenytoin"},{"code":"PHVS","display":"PARASITOLOGY: VAGINAL SWAB"},{"code":"PLAT","display":"Platelets"},{"code":"PM","display":"Post-Mortem Examination"},{"code":"POLIO","display":"Polio Neutralisation Serology"},{"code":"POSTM","display":"POST MORTEM REPORT"},{"code":"POSTX","display":"Postmorten Supplement"},{"code":"PRD","display":"Pregnandiol"},{"code":"PROT","display":"Total Protein & Albumin"},{"code":"PRT24","display":"Urine Protein (24 hr)"},{"code":"PSA","display":"Prostate Specific Antigen"},{"code":"PTT","display":"Part Thromboplastin Time (PTT)"},{"code":"RA","display":"RA Latex Test"},{"code":"RAPI2","display":"HIV Rapid Repeat"},{"code":"RCCHE","display":"Cholinesterase"},{"code":"RH","display":"RHESUS FACTOR"},{"code":"ROTA","display":"Rotavirus Antigen EIA Test"},{"code":"ROTPC","display":"Rotavirus: PCR"},{"code":"RUB","display":"Rubella Serology"},{"code":"SADA","display":"Adenosine Deaminase"},{"code":"SCREA","display":"Creatinine Clearance"},{"code":"SEICU","display":"SENS ICU"},{"code":"SENFA","display":"ANTIBIOTIC SUSCEPTIBILITY"},{"code":"SENGN","display":"ANTIBIOTIC SENS: GN"},{"code":"SENGP","display":"ANTIBIOTIC SENS: GP"},{"code":"SENSA","display":"ANTIBIOTIC SENS: STOOL"},{"code":"SENST","display":"ANTIBIOTIC SENS: STOOL"},{"code":"SENSU","display":"ANTIBIOTIC SENS: URINE"},{"code":"SHBG","display":"Sex Hormone Binding Globulin"},{"code":"STDM","display":"Direct Microscopy : Stool"},{"code":"STOOL","display":"Stool Microscopy"},{"code":"TBA1","display":"TB Microscopy Auramine 1"},{"code":"TBA2","display":"TB Microscopy Auramine 2"},{"code":"TBA3","display":"TB Microscopy Specimen 3"},{"code":"TBBA","display":"TB Blood Agar (TB Nat Ref)"},{"code":"TBCL","display":"TB Culture"},{"code":"TBCL1","display":"TB Culture 1"},{"code":"TBCL2","display":"TB Culture 2"},{"code":"TBCL3","display":"TB Culture 3"},{"code":"TBCON","display":"TB Control"},{"code":"TBEQA","display":"TB EQA"},{"code":"TBGEN","display":"TB Genexpert"},{"code":"TBHCG","display":"S-HCG Total Beta"},{"code":"TBILI","display":"S-Total Bilirubin"},{"code":"TBINF","display":"TB Diagnosis Information"},{"code":"TBLP1","display":"TB Line Probe SP1"},{"code":"TBLP2","display":"TB Line Probe SP2"},{"code":"TBLP3","display":"TB Line Probe SP3"},{"code":"TBLP","display":"TB First Line -Line Probe Assay"},{"code":"TBLPS","display":"TB Second Line -Line Probe Assay"},{"code":"TBLSF","display":"2nd Line Probe Assay Final"},{"code":"TBPC1","display":"TB PCR Specimen 1"},{"code":"TBPC2","display":"TB PCR Specimen 2"},{"code":"TBPC3","display":"TB PCR Specimen 3"},{"code":"TBRAP","display":"TB Capilia Rapid Test"},{"code":"TBRP1","display":"TB Capilia Rapid ID Test SP1"},{"code":"TBRP2","display":"TB Capilia Rapid ID Test SP2"},{"code":"TBRP3","display":"TB Capilia Rapid ID Test SP3"},{"code":"TBSF1","display":"TB First Line Sens 1"},{"code":"TBSF2","display":"TB First Line Sens 2"},{"code":"TBSF3","display":"TB First Line Sens 3"},{"code":"TBSFF","display":"TB First Line Sens Final"},{"code":"TBSS","display":"TB Second Line DST"},{"code":"TBSS2","display":"TB Seconde Line Sens 2"},{"code":"TBSS3","display":"TB Seconde Line Sens 3"},{"code":"TBSSF","display":"TB Second Line Final"},{"code":"TBZ","display":"TBZN TB National Ref Lab"},{"code":"TBZ1","display":"TB Direct Microscopy Spec. 1"},{"code":"TBZ2","display":"TB Direct Microscopy Spec. 2"},{"code":"TBZ3","display":"TB Direct Microscopy Spec. 3"},{"code":"TBZN","display":"TB Smear Microscopy"},{"code":"TBZN1","display":"TBZN SP1"},{"code":"TBZN2","display":"TBZN SP2"},{"code":"TBZN3","display":"TBZN SP3"},{"code":"THCGB","display":"S-TOTAL HCG Beta"},{"code":"TT3","display":"Total Tri-iodothyronine (TT3)"},{"code":"TTA","display":"Tetanus Serology"},{"code":"LURIC","display":"Uric Acid"},{"code":"UBHCG","display":"Urine Beta-HCG (Preg Test)"},{"code":"UBJP","display":"Urine Bence Jones Protein"},{"code":"UCREA","display":"Creatine Clearance"},{"code":"UCUL","display":"CULTURE : Urine"},{"code":"UE","display":"Urea & electrolytes"},{"code":"UECA","display":"Urea, Electrolytes & Creatinin"},{"code":"UECA+","display":"Urea, Elec, Creat & eGFR"},{"code":"UMAC","display":"MACROSCOPY : Urine"},{"code":"UMIC","display":"MICROSCOPY : Urine"},{"code":"UPREG","display":"Urine Pregnancy Test"},{"code":"UPROT","display":"Total Protein (Urine)"},{"code":"UREA","display":"Urea"},{"code":"VALPR","display":"S-Valproate"},{"code":"VDRL","display":"VDRL"},{"code":"VLPOC","display":"HIV VIRAL LOAD (POC)"},{"code":"VMAC","display":"Vanillylmandelic Acid"},{"code":"VZV","display":"VARICELLA-ZOSTER SEROLOGY"},{"code":"WBCP","display":"White Cell Count + Platelets"},{"code":"WCC","display":"White Cell Count"},{"code":"WF","display":"WEIL FELIX"},{"code":"YELLO","display":"Yellow Fever"},{"code":"ZN","display":"TBZN"},{"code":"ZN2","display":"Smear Microscopy 2"},{"code":"ZN3","display":"TBZN Specimen 3"},{"code":"TBSF","display":"TB First Line DST"},{"code":"QHCG","display":"Quantitative Beta-HCG (Blood)"},{"code":"CVID","display":"PCR SARS-CoV-2"},{"code":"CVRP","display":"COVID-19 Ag Rapid Test"},{"code":"MEASL","display":"Measles"}]},"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestCodeVS":{"extends":["https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestCodeCS"],"values":[]},"https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS":{"extends":[],"values":[{"code":"tbds","display":"TB DS"},{"code":"tbdr","display":"TB DR"},{"code":"anc","display":"ANC"},{"code":"fp","display":"Family Planning"},{"code":"art","display":"ART"},{"code":"prep","display":"PrEP"}]},"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEpisodeOfCareTypeVS":{"extends":["http://terminology.hl7.org/CodeSystem/episodeofcare-type","https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEpisodeOfCareTypeCS"],"values":[]},"https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS":{"extends":[],"values":[{"code":"PI","display":"Personal ID Number"},{"code":"PA","display":"Passport Number"},{"code":"TP","display":"Temporary Permit"},{"code":"FD","display":"Foreign Document"},{"code":"MH","display":"Ministry of Health Workder ID"},{"code":"MR","display":"Medical Record Number"}]},"https://hapifhir.eswatinihie.com/fhir/ValueSet/PersonIdentifiersVS|0.1.0":{"extends":["https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzPersonIdentificationsCS"],"values":[]},"https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS":{"extends":[],"values":[{"code":"100648","display":"Abacavir 300mg Tablets 60 TABS"},{"code":"102273","display":"Isoniazid Tablets 300mg 28 TABS"},{"code":"102268","display":"Ethambutol FILM COATEDTablets 100mg 100 TABS"},{"code":"100686","display":"Isoniazid 100mg Tablets 100 TABS"},{"code":"102276","display":"Levofloxacin Tablets 500mg 100 TABS"},{"code":"100449","display":"Acyclovir Eye Ointment 3% 4.5 G"},{"code":"100304","display":"Adrenaline Injection 1:1000 10 AMPS"},{"code":"100460","display":"Betamethasone Cream 0.1% 15G"},{"code":"100014","display":"Cefaclor Tablets 375mg 10 TABS"},{"code":"102443","display":"Cefazolin 1g; 10 Vial 10 VIAL"},{"code":"100221","display":"Cloxacillin Suspension 125mg/5ml 100 ML"},{"code":"100238","display":"Cold & Flu Syrup 100 ML"},{"code":"100001","display":"Cyclophosphamide Tablets 25mg 100"},{"code":"102492","display":"Paracetamol Tablets 500g (Coloured Green) 100 TABS"},{"code":"102277","display":"Linezolid FILM COATED Tablets 600mg 60 TABS"},{"code":"100689","display":"Saquinavir 200mg Capsules 270 CAPS"},{"code":"100706","display":"Dapsone Tablets 100mg 100"},{"code":"100089","display":"Albendazole Tablets 200mg (Chewable) 1000 TABS"},{"code":"102304","display":"Amikacin 1g 50 VIALS"},{"code":"102272","display":"Ethionamide FILM COATED Capsules 250mg 50 CAPS"},{"code":"100700","display":"Flucytosine 500mg 100 TABS"},{"code":"102327","display":"Levonorgestrel +Ethinyl Estradiol 150mcg+30mcg Tab 3 TABS"},{"code":"102323","display":"Levonorgestrel 30mcg Tablets 84 TABS"},{"code":"100666","display":"Raltegravir 400mg Tablets 60 TABS"},{"code":"102346","display":"Strawberry Scented Male Condoms ( natural latex,53mm) 100"},{"code":"102502","display":"T Section; 1 Each 1 EACH"},{"code":"102348","display":"Water Based Lubricant (SRH) SATCHET"},{"code":"102282","display":"Pyrazinamide Tablets 500mg 1000 TABS"},{"code":"102341","display":"Intra-Uterine Device (Iucd) T380 ( Polymer Film Po 1"},{"code":"102280","display":"Moxifloxacillin FILM COATED Tablets 400mg 100 TABS"},{"code":"100734","display":"Bleomycin Injection 15 Units Vial (With Cold Chain 1 AMP"},{"code":"100651","display":"Atazanavir/Ritonavir 300/100mg Tablets 30"},{"code":"100654","display":"Efavirenz 200mg Scored Tablets 90"},{"code":"100528","display":"Beclomethasone Nasal Spray 27.5mcg/dose (Paeds)Com 1"},{"code":"102266","display":"Delamanid FILM COATED Tablets 50mg 48 TABS"},{"code":"102332","display":"Medroxyprogesterone Acetate 150mg/ml Injection 20 VIALS"},{"code":"102333","display":"Norethisterone Enanthate + Estradiol Valerate In O 100 VIALS"},{"code":"100707","display":"Cotrimoxazole/Isoniazid/Pyridoxine 960/300/25mg 30 TABS"},{"code":"102324","display":"Norgestrel 300mcg/Ethinylestradiol 30mcg Tablets 28 TABS"},{"code":"102263","display":"Clofazimine Tablets 100mg 100 TABS"},{"code":"100009","display":"Amoxycillin Capsules 500mg 500 CAPS"}]},"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzProductCodeVS":{"extends":["https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzProductCodeCS"],"values":[]},"https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS":{"extends":[],"values":[{"code":"-99","display":"Unspecified"},{"code":"2","display":"HHUKWINI"},{"code":"3","display":"LOBAMBA"},{"code":"4","display":"MADLANGEMPISI"},{"code":"5","display":"MAPHALALENI"},{"code":"6","display":"MAYIWANE"},{"code":"7","display":"MBABANE EAST"},{"code":"8","display":"MBABANE WEST"},{"code":"9","display":"MHLANGATANE"},{"code":"10","display":"NDZINGENI"},{"code":"11","display":"NKHABA"},{"code":"12","display":"NTFONJENI"},{"code":"13","display":"PIGGS PEAK"},{"code":"14","display":"SIPHOCOSINI"},{"code":"15","display":"TIMPHISINI"},{"code":"16","display":"DVOKODVWENI"},{"code":"17","display":"GILGALI"},{"code":"18","display":"LOMAHASHA"},{"code":"19","display":"LUBULI"},{"code":"20","display":"LUGONGOLWENI"},{"code":"21","display":"MATSANJENI NORTH"},{"code":"22","display":"MHLUME"},{"code":"23","display":"MPOLONJENI"},{"code":"24","display":"NKILONGO"},{"code":"25","display":"SIPHOFANENI"},{"code":"26","display":"SITHOBELA"},{"code":"27","display":"KUKHANYENI"},{"code":"28","display":"KWALUSENI"},{"code":"29","display":"LAMGABHI"},{"code":"30","display":"LOBAMBA LOMDZALA"},{"code":"31","display":"LUDZELUDZE"},{"code":"32","display":"MAFUTSENI"},{"code":"33","display":"MAHLANGATSHA"},{"code":"34","display":"MANGCONGCO"},{"code":"35","display":"MANZINI NORTH"},{"code":"36","display":"MANZINI SOUTH"},{"code":"37","display":"MHLAMBANYATSI"},{"code":"38","display":"MKHIWENI"},{"code":"39","display":"MTFONGWANENI"},{"code":"40","display":"NGWEMPISI"},{"code":"41","display":"NHLAMBENI"},{"code":"42","display":"NKOMIYAHLABA"},{"code":"43","display":"NTONDOZI"},{"code":"44","display":"PHONDO"},{"code":"45","display":"GEGE"},{"code":"46","display":"HOSEA"},{"code":"47","display":"KUBUTA"},{"code":"48","display":"KUMETHULA"},{"code":"49","display":"MASEYISINI"},{"code":"50","display":"MATSANJENI SOUTH"},{"code":"51","display":"MTSAMBAMA"},{"code":"52","display":"NGUDZENI"},{"code":"53","display":"NKWENE"},{"code":"54","display":"SANDLENI"},{"code":"55","display":"SHISELWENI I"},{"code":"56","display":"SHISELWENI II"},{"code":"57","display":"SIGWE"},{"code":"58","display":"SOMNTONGO"},{"code":"59","display":"ZOMBODZE EMUVA"},{"code":"60","display":"MOTSHANE"}]},"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTinkhundlaVS|0.1.0":{"extends":["https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTinkhundlaCS"],"values":[]},"https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS":{"extends":[],"values":[{"code":"NIT","display":"Nitrate"},{"code":"UG","display":"Glucose"},{"code":"UP","display":"Protein"},{"code":"UPH","display":"pH"},{"code":"UBILI","display":"Bilirubin"},{"code":"UKET","display":"Ketones"},{"code":"ULEST","display":"Leucocyte Esterase"},{"code":"N/A","display":"Urobilirubin"},{"code":"#BAND","display":"Band Cells"},{"code":"#BASO","display":"Basophils"},{"code":"#EOS","display":"Eosinophils"},{"code":"#IG","display":"IG"},{"code":"#LYM","display":"Lymphocytes"},{"code":"#META","display":"Metamyelocytes"},{"code":"#MONO","display":"Monocytes"},{"code":"#MYEL","display":"Myelocytes"},{"code":"#NEUT","display":"Neutrophils"},{"code":"#PROM","display":"Promyelocytes"},{"code":"%BJP","display":"% Bence Jones Protein"},{"code":"%BSAT","display":"Transferrin Saturation"},{"code":"%HBA1","display":"% HBA1C"},{"code":"%SAT","display":"Transferrin Saturation"},{"code":"17AHQ","display":"17 Alpha-hydroxyprogesterone"},{"code":"1ST","display":"First Line"},{"code":"2ND","display":"Second Line"},{"code":"A1ATR","display":"S-ƒ -1-antitrypsin"},{"code":"A1CEL","display":"A1 Cells"},{"code":"A2CEL","display":"A2 Cells"},{"code":"ABAC","display":"Abacavir (ABC)"},{"code":"ABNO","display":"%Abnormal"},{"code":"ABO","display":"Blood Group"},{"code":"ABRH","display":"or Group"},{"code":"ABRH1","display":"Donor Unit 1"},{"code":"ABRH2","display":"Donor Unit 2"},{"code":"ABRH3","display":"Donor Unit 3"},{"code":"ABRH4","display":"Donor Unit 4"},{"code":"ACA","display":"i-Centromere Antibodies"},{"code":"ACAS","display":"Anti-Centromere Antibodies"},{"code":"ACEA","display":"Carcinoembryonic Antigen"},{"code":"ACEAB","display":"Acetylcholine Receptor Ab`s"},{"code":"ACLA","display":"i-Cardiolipin Ab (IgG)"},{"code":"ACLAG","display":"i-Cardiolipin Ab`s IgG"},{"code":"ACLAM","display":"i-Cardiolipin Ab`s IgM"},{"code":"ACOLA","display":"i-Collagen Antibodies"},{"code":"ACTH","display":"eno-corticotrophic Hormone"},{"code":"ACTHI","display":"eno-corticotrophic Hormone"},{"code":"ACTHO","display":"eno-corticotrophic Hormone"},{"code":"ADATE","display":"Autopsy Date"},{"code":"ADENO","display":"Fecal adenovirus"},{"code":"ADNA","display":"i-Double Stranded DNA"},{"code":"ADNAM","display":"Anti-Double Stranded DNA (EIA)"},{"code":"ADNAR","display":"dsDNA Rule"},{"code":"ADNAS","display":"Anti-Double Stranded DNA"},{"code":"AFB","display":"Zeihl-Neelsen"},{"code":"AFP","display":"Alpa Feto Protein"},{"code":"AGHT","display":"Anti-human globulin testing"},{"code":"AHE","display":"ormal Haemoglobin"},{"code":"AHEAL","display":"ANC Health Facility"},{"code":"AHG","display":"i-human globulin"},{"code":"AK","display":"Amikacin"},{"code":"AK1","display":"Amikacin"},{"code":"ALDOQ","display":"Aldosterone"},{"code":"ALDOS","display":"Aldosterone"},{"code":"AMC","display":"Amoxilin/Clavulanic Acid"},{"code":"AMIK","display":"Amikacin"},{"code":"AMITA","display":"i-Mitochondrial Antibodies/A-Mit Ab"},{"code":"AMITT","display":"Titre"},{"code":"AMOX","display":"Amoxicillin"},{"code":"AMOX1","display":"Amoxicillin"},{"code":"AMP","display":"Ampicillin"},{"code":"AMPHE","display":"hetamine"},{"code":"AMPIC","display":"Ampicillin"},{"code":"ANAH","display":"i-Nuclear Ab (Hep-2)"},{"code":"ANCN","display":"ANC Number"},{"code":"ANCP","display":"From ANC (Pink) card"},{"code":"ANDRS","display":"Androstenedione"},{"code":"ANION","display":"Anion Gap"},{"code":"ANTAB","display":"Anti AB"},{"code":"ANTIA","display":"Anti A"},{"code":"ANTIB","display":"Anti B"},{"code":"ANTID","display":"Rhesus D"},{"code":"APCA","display":"i-Parietal Cell Antibodies"},{"code":"APP","display":"Appearance"},{"code":"APPEA","display":"Naked Eye Appearance"},{"code":"APPET","display":"Naked eye appearance"},{"code":"APPF","display":"Fluid"},{"code":"APPS","display":"Supernatant Appearance"},{"code":"APTC","display":"T (Control)"},{"code":"APTT","display":"T (Patient)"},{"code":"ARTN","display":"ART Number"},{"code":"ARTTX","display":"ART Number"},{"code":"ARVID","display":"ARV ID Number"},{"code":"ARVO","display":"Other ARV treatment"},{"code":"ARVO1","display":"Other Drugs (1)"},{"code":"ARVO2","display":"Other Drugs (2)"},{"code":"ARVO3","display":"Other Drugs (3)"},{"code":"ARVS","display":"ARV Programme status"},{"code":"ARVT1","display":"ARV treatment (1)"},{"code":"ARVT2","display":"ARV treatment (2)"},{"code":"ARVT3","display":"ARV treatment (3)"},{"code":"ASKMA","display":"i-skeletal muscle Ab`s"},{"code":"ASL","display":"i-Streptolysin O Latex"},{"code":"ASMA","display":"i-Smooth Muscle Antibodies"},{"code":"ASOT","display":"i-Streptolysin O Titre"},{"code":"ASPR","display":"ASPIRATOR"},{"code":"AST","display":"Antimicrobial Sensitivity Test"},{"code":"AUG","display":"Co-amoxiclav"},{"code":"AUG1","display":"Augmentin"},{"code":"B2GPG","display":"Beta-2 Glycoprotein IgG"},{"code":"B2GPM","display":"Beta-2 Glycoprotein IgM"},{"code":"BACET","display":"S-Acetaminophen"},{"code":"BACT","display":"0rganisms Seen"},{"code":"SALB","display":"Albumin"},{"code":"BAND#","display":"Band Cells"},{"code":"BAND%","display":"Band Cells"},{"code":"BARB","display":"Barbiturate"},{"code":"BARES","display":"Result"},{"code":"BASA#","display":"Basophils"},{"code":"BASA%","display":"Basophils"},{"code":"BASO#","display":"Basoophils"},{"code":"BASO%","display":"Basophils"},{"code":"BAUTO","display":"Auto Control"},{"code":"BBCOM","display":"Comment:"},{"code":"BBTXT","display":"Remarks:"},{"code":"BCEL","display":"B Cells"},{"code":"BCULT","display":"TURE RESULT"},{"code":"BE","display":"Base Excess"},{"code":"BENZO","display":"Benzodiazepine"},{"code":"BENZV","display":"BZD Value"},{"code":"BG","display":"Blood Group"},{"code":"BHCG2","display":"HCG TOTAL BETA (TUMOR MARKER)*"},{"code":"BIOCH","display":"BIO-CHEMISTRY (Dipstick)"},{"code":"BIRON","display":"Iron"},{"code":"BLST#","display":"Blasts"},{"code":"BLST%","display":"Blasts"},{"code":"BMTXT","display":"Remarks"},{"code":"BPH","display":"pH"},{"code":"BPROC","display":"Product"},{"code":"BREAS","display":"Breastfeeding"},{"code":"BROMS","display":"Bromelin Screening"},{"code":"BS1","display":"S1"},{"code":"BS2","display":"S2"},{"code":"BSA","display":"y Surface Area"},{"code":"BSCR1","display":"Bromelin Screen Cell 1"},{"code":"BSCR2","display":"Bromelin Screen Cell 2"},{"code":"BSCR3","display":"Bromelin Screen Cell 3"},{"code":"BTFN","display":"Transferrin"},{"code":"BTIME","display":"Bleeding Time"},{"code":"BTNP","display":"B-Type Natriuretic Peptide"},{"code":"BTYPE","display":"Bottle Type"},{"code":"BUA","display":"Uric Acid"},{"code":"BV","display":"Interpretation"},{"code":"C125B","display":"CA125"},{"code":"C15-3","display":"CA15-3"},{"code":"C1EI","display":"C1 Esterase Inhibitor"},{"code":"C1ESC","display":"C1 Esterase Inhibitor"},{"code":"C1ESI","display":"C1 Esterase Inhibitor"},{"code":"C3","display":"Complement Component C3"},{"code":"C4","display":"Complement Component C4"},{"code":"C6","display":"Complement Component C6"},{"code":"CA199","display":"CA19-9"},{"code":"CA724","display":"CA 72-4"},{"code":"CABCO","display":"Cut-off : Core antibodies"},{"code":"CABFL","display":"atitis B core ab (Total)"},{"code":"CABVA","display":"Value : Core antibodies"},{"code":"CACOR","display":"S-Calcium (Corrected)"},{"code":"CAERU","display":"Caeruloplasmin"},{"code":"CALCL","display":"Calculated Clearance"},{"code":"CALCN","display":"Calcitonin"},{"code":"CALCO","display":"cofluor Stain"},{"code":"CANN","display":"U-Cannabinoids"},{"code":"CANNQ","display":"U-Cannabinoids"},{"code":"CAPIL","display":"ID Rapid Test"},{"code":"CAPP","display":"Specimen Appearance"},{"code":"CARB","display":"S-Carbamazepine"},{"code":"CAREH","display":"Caregiver Details"},{"code":"CASTS","display":"Casts"},{"code":"CATSC","display":"U-Catecholamines"},{"code":"CATSO","display":"dU-Catecholamines"},{"code":"CBAC","display":"Control Bead Abs Cnt"},{"code":"CCL","display":"CSF Chloride"},{"code":"CCLEA","display":"Corrected Clearance"},{"code":"CCNT","display":"CELL COUNT"},{"code":"CCOM","display":"COMMENT"},{"code":"CCON","display":"Conclusion"},{"code":"CCOO","display":"Coomb's control"},{"code":"CCREM","display":"Recommendation"},{"code":"CCULT","display":"CULTURE RESULT"},{"code":"CD3","display":"CD3 Count"},{"code":"CD3L","display":"CD3%"},{"code":"CD4","display":"CD4 Count"},{"code":"CD45","display":"CD45 Count"},{"code":"CD4L","display":"CD4%"},{"code":"CD8","display":"CD 8 Count"},{"code":"CD8L","display":"CD8%"},{"code":"CEFAZ","display":"Cefazolin"},{"code":"CEFO1","display":"Cefotaxime"},{"code":"CEFOT","display":"Cefotaxime/Ceftriazone"},{"code":"CEFOX","display":"Cefoxitin"},{"code":"CEFTA","display":"Ceftazidime"},{"code":"CEPHA","display":"Cephalexin"},{"code":"CEPHR","display":"Cephradine"},{"code":"CERYT","display":"Red Blood Cells"},{"code":"CGLOB","display":"Globulin"},{"code":"CGLU","display":"CSF Glucose"},{"code":"CHEMC","display":"Concentrations"},{"code":"CHEMF","display":"CAL RESULTS"},{"code":"CHEMH","display":"CSF CHEMISTRY"},{"code":"CHEMO","display":"AL URINE OUTPUT"},{"code":"CHEMU","display":"NE RESULTS"},{"code":"CHILD","display":"From Child Health Card"},{"code":"CHIST","display":"CLINICAL HISTORY"},{"code":"CHLDN","display":"Child No"},{"code":"CHLET","display":"Endemic Trachoma"},{"code":"CHLLV","display":"phogranuloma venereum"},{"code":"CHLO1","display":"Chloramphenicol"},{"code":"CHLOG","display":"Oculo genital"},{"code":"CHLOR","display":"Chloramphenicol"},{"code":"CHLPN","display":"Chlamydia pneumoniae"},{"code":"CHLPS","display":"Chlamydia psittaci"},{"code":"CHLTR","display":"Chlamydia trachomatis"},{"code":"CHM","display":"CHm (Mature RBC HB Content)"},{"code":"CHR","display":"CHr (Reticulocyte HB Content)"},{"code":"CIPR1","display":"Ciprofloxacin"},{"code":"CIPRO","display":"Ciprofloxacin"},{"code":"CLAR","display":"Clarity"},{"code":"CLIND","display":"Clindamycin"},{"code":"CLOD","display":"C. difficile Toxin A Test"},{"code":"CLODA","display":"C. difficile Toxin A"},{"code":"CLTR","display":"Pathogen Identified"},{"code":"CLTRE","display":"Culture Results"},{"code":"CLUE","display":"CLUE CELLS"},{"code":"CMGFL","display":"Cytomegalovirus IgG"},{"code":"CMGVA","display":"Value : CMG IgG"},{"code":"CMMFL","display":"Cytomegalovirus IgM"},{"code":"CMMVA","display":"Value : CMG IgM"},{"code":"COCAI","display":"Cocaine"},{"code":"COL","display":"Colour"},{"code":"COLI","display":"Colistin"},{"code":"COLM","display":"TBCOL Other Months"},{"code":"COM","display":"Comment:"},{"code":"COMAL","display":"Alternate Pathway"},{"code":"COMCL","display":"Classical Pathway"},{"code":"CONCE","display":"Antibiotic Concentrations"},{"code":"CONSE","display":"Consent to Contact"},{"code":"COOMB","display":"Indirect Coomb's Test"},{"code":"CORWC","display":"Comment"},{"code":"COTR","display":"Cotrimoxazole"},{"code":"COTR1","display":"Cotrimoxazole"},{"code":"COTRI","display":"Co-trimoxazole"},{"code":"COUN","display":"Count"},{"code":"COXVI","display":"Coxsackie virus IgM"},{"code":"CPEP2","display":"C-Peptide"},{"code":"CPROT","display":"CSF Protein"},{"code":"CRES","display":"Remarks"},{"code":"CRINK","display":"INDIA INK"},{"code":"CRO","display":"Ceftriaxone"},{"code":"CROSM","display":"Crossmatch"},{"code":"CRP","display":"CRP Quantitative"},{"code":"CRPS","display":"CRP Serology"},{"code":"CRPT","display":"CRP Titre"},{"code":"CRYLF","display":"Cryptococcal LFA"},{"code":"CRYP","display":"Cryptococcal Latex"},{"code":"CRYST","display":"Crystals"},{"code":"CRYTI","display":"Cryptococcal Titre"},{"code":"CSOB","display":"Occult Blood"},{"code":"CTIME","display":"Whole blood Clotting Time"},{"code":"CTITR","display":"Titre"},{"code":"CTX","display":"Cefotaxime"},{"code":"CTXT","display":"Remarks"},{"code":"CUTC","display":"Cutup by"},{"code":"CUTP","display":"Pathologist"},{"code":"CUTS","display":"Cutup sites"},{"code":"CWBC","display":"White Blood cells"},{"code":"CWTX","display":"Child Welfare Number"},{"code":"CYADE","display":"Specimen Adequacy"},{"code":"CYADH","display":"Specimen Adequacy"},{"code":"CYBGH","display":"Background"},{"code":"CYBGR","display":"Cytology Background"},{"code":"CYCYT","display":"SCREENER"},{"code":"CYINF","display":"Cytology Infection"},{"code":"CYINH","display":"Interpretation"},{"code":"CYINT","display":"Interpretation"},{"code":"CYNAH","display":"Nature of Specimen"},{"code":"CYNAT","display":"Cellular Changes"},{"code":"CYNFH","display":"Infection"},{"code":"CYNTH","display":"Cellular Changes"},{"code":"CYRCH","display":"Recommendation"},{"code":"CYREC","display":"Cytology Recommendation"},{"code":"CYSS","display":"Cytology Special Stains"},{"code":"CYSTS","display":"Cysts"},{"code":"CYTC","display":"Contraception"},{"code":"CYTCH","display":"CLINICAL HISTORY"},{"code":"CYTLA","display":"Last Pregnancy"},{"code":"CYTLM","display":"LMP"},{"code":"CYTNA","display":"Nature Of Specimen"},{"code":"CYTPA","display":"Parity"},{"code":"CYTPR","display":"Clinical History"},{"code":"CYTTY","display":"Type"},{"code":"CYTXT","display":"Remarks"},{"code":"DATEP","display":"Date reported"},{"code":"DATEQ","display":"Date Required"},{"code":"DATER","display":"Date Claim"},{"code":"DATET","display":"Date Taken"},{"code":"DCC3","display":"C3"},{"code":"DCC3C","display":"C3c"},{"code":"DCC3T","display":"C3d Titre"},{"code":"DCEA","display":"Carcinoembryonic Antigen"},{"code":"DCIGA","display":"IgA"},{"code":"DCIGG","display":"IgG"},{"code":"DCIGM","display":"IgM"},{"code":"DCIGT","display":"IgG Titre"},{"code":"DCOOH","display":"Direct Coomb"},{"code":"DCOOM","display":"Polyspecific"},{"code":"DCOT","display":"Direct Coomb's Test"},{"code":"DCRT","display":"1:20 DILUTED CRT"},{"code":"DDATE","display":"Expiry"},{"code":"DDIME","display":"D-Dimer"},{"code":"DEATH","display":"Date of Death"},{"code":"DHEAS","display":"Dehydroepiandrosterone Sulph"},{"code":"DIAMT","display":"Zone Diametre"},{"code":"DIBN","display":"Dibucaine Number"},{"code":"DID","display":"Donor ID"},{"code":"DIDA","display":"Didanosine (DDI)"},{"code":"DIFCN","display":"DIFFERENTIAL COUNT"},{"code":"DIGO2","display":"S-Digoxin"},{"code":"DIGOX","display":"S-Digoxin"},{"code":"DOA","display":"Date of Admission"},{"code":"DONG","display":"Donor Group"},{"code":"DONN","display":"Donor Number"},{"code":"DOXY","display":"Doxycycline"},{"code":"DOXY1","display":"Doxycycline"},{"code":"DPROT","display":"F-Total Protein"},{"code":"DRSNO","display":"DR Survey Number"},{"code":"DRTH","display":"DRUG RESISTANCE TESTING"},{"code":"DRUGI","display":"Drug Resistance Interpretation"},{"code":"DTIME","display":"Time of Death"},{"code":"DUR","display":"Duration of collection"},{"code":"DUVMA","display":"dU-Vanillylmandelic Acid"},{"code":"E2","display":"Oestradiol"},{"code":"E2C","display":"Oestrodial"},{"code":"EBREA","display":"Child Breastfed"},{"code":"ECOTH","display":"Other"},{"code":"ECOTR","display":"Cotrimoxazole(CTX)for infant"},{"code":"ECURR","display":"Current Regimen"},{"code":"EDNAP","display":"DNA PCR Test"},{"code":"EEC","display":"Enteropathogenic E.coli"},{"code":"EFAVI","display":"Efavirenz (EFV)"},{"code":"EGFRI","display":"MDRD eGFR"},{"code":"EIDCM","display":"Caregiver Name"},{"code":"EIDCN","display":"Caregiver NRC Number"},{"code":"EIDCP","display":"Caregiver Phone Number"},{"code":"EIFS","display":"If stopped why?"},{"code":"EIFY","display":"IF yes which apply"},{"code":"EMTRI","display":"Emtricitabine (FTC)"},{"code":"ENVPB","display":"NVP for full 6w after birth"},{"code":"ENVPS","display":"When did child stop NVP"},{"code":"ENZYM","display":"Enzyme"},{"code":"EOS#","display":"Eosinophils"},{"code":"EOS%","display":"Eosinophils"},{"code":"EOSA#","display":"Eosinophils"},{"code":"EOSA%","display":"Eosinophils"},{"code":"EOTHE","display":"Other"},{"code":"EPI","display":"Epithelial Cells"},{"code":"EPRE","display":"Previous DNA PCR Barcode no"},{"code":"EPRED","display":"Date Previous PCR"},{"code":"EPRER","display":"Pregnancy Regimen"},{"code":"EPRES","display":"Previous PCR Result"},{"code":"EQAC1","display":"EQA Unstained 1"},{"code":"EQAC2","display":"EQA Unstained 2"},{"code":"EQAC3","display":"EQA Unstained 3"},{"code":"EQAC4","display":"EQA Unstained 4"},{"code":"EQAC5","display":"EQA Unstained 5"},{"code":"EQAHS","display":"Stained Slides"},{"code":"EQAHU","display":"Unstained Slides"},{"code":"EQAMT","display":"Method"},{"code":"EQAN2","display":"No Parasites"},{"code":"EQAN3","display":"No Parasites"},{"code":"EQANP","display":"No Parasites"},{"code":"EQAR1","display":"EQA Result 1"},{"code":"EQAR2","display":"EQA Result 2"},{"code":"EQAR3","display":"EQA Result 3"},{"code":"EQAR4","display":"EQA Result 4"},{"code":"EQAR5","display":"EQA Result 5"},{"code":"EQAS1","display":"EQA Stain"},{"code":"EQAS2","display":"EQA Stain"},{"code":"EQASC","display":"Screener"},{"code":"EQCAB","display":"Absolute Count Beads"},{"code":"EQCAC","display":"Antibody Combination"},{"code":"EQCDI","display":"Instrument"},{"code":"EQCLM","display":"Lysing Method"},{"code":"EQCPC","display":"Problem Code"},{"code":"EQHCT","display":"Haematocrit"},{"code":"EQHGB","display":"Haemoglobin"},{"code":"EQHPC","display":"Problem Code"},{"code":"EQHPE","display":"Processing equipment:"},{"code":"EQHPK","display":"Processing Kit/Reagent:"},{"code":"EQHPM","display":"Processing Microscope"},{"code":"EQHSD","display":"Microscope service date:"},{"code":"EQHST","display":"Stain used:"},{"code":"EQMCH","display":"EQMCH"},{"code":"EQMCN","display":"Challenge Number"},{"code":"EQMCV","display":"EQMCV"},{"code":"EQMF2","display":"Final answer (Parasites Count)"},{"code":"EQMF3","display":"Final answer (Parasites Count)"},{"code":"EQMFA","display":"Final answer (Parasites Count)"},{"code":"EQMIC","display":"Microscopy"},{"code":"EQMPC","display":"Final Answer"},{"code":"EQPF","display":"Tested by"},{"code":"EQPLT","display":"Platelet Count"},{"code":"EQPO","display":"Supervisor"},{"code":"EQRBC","display":"Red Blood Cells"},{"code":"EQRDW","display":"EQRDW"},{"code":"EQSED","display":"Expiration Date"},{"code":"EQSLN","display":"Lot Number"},{"code":"EQSP1","display":"Specimen 1"},{"code":"EQSP2","display":"Specimen 2"},{"code":"EQSP3","display":"Specimen 3"},{"code":"EQSS1","display":"HIV PT 1"},{"code":"EQSS2","display":"HIV PT 2"},{"code":"EQSS3","display":"HIV PT 3"},{"code":"EQSS4","display":"HIV PT 4"},{"code":"EQSS5","display":"HIV PT 5"},{"code":"EQSS6","display":"A-6"},{"code":"EQST","display":"Person who Stained"},{"code":"EQSTM","display":"Test Name"},{"code":"EQWB2","display":"No of White Cells"},{"code":"EQWB3","display":"No of White Cells"},{"code":"EQWBC","display":"No of White Cells"},{"code":"EQWC2","display":"No of White Cells"},{"code":"EQWC3","display":"No of White Cells"},{"code":"EQWCC","display":"White cell count"},{"code":"EREGA","display":"Regimen given after birth"},{"code":"ERSLT","display":"Result"},{"code":"ERTP","display":"ERTAPENEM"},{"code":"ERY","display":"Red Blood Cells"},{"code":"ERY1","display":"Erythromycin"},{"code":"ERYT","display":"Erythrocytes"},{"code":"ERYTH","display":"Erythromycin"},{"code":"ESR","display":"ESR"},{"code":"ESTBR","display":"Child still breatfeeding"},{"code":"ESTOB","display":"Stopped breastbeeding at"},{"code":"ETRAV","display":"Etravirine (ETR)"},{"code":"EXHYS","display":"External Standard - Hys Peak"},{"code":"EXPD","display":"Expiry Date"},{"code":"EXSTD","display":"External Standard-Int Std Peak"},{"code":"FCLI","display":"Follow-up Clinic"},{"code":"FEP","display":"CEFEPIME"},{"code":"FERM2","display":"Ferritin"},{"code":"FERM3","display":"Ferritin"},{"code":"FERR","display":"Ferritin"},{"code":"FERRM","display":"Ferritin"},{"code":"FERRR","display":"Ferritin"},{"code":"FERRX","display":"Ferritin"},{"code":"FERX2","display":"Ferritin"},{"code":"FHYS","display":"Homocysteine Fasting"},{"code":"FILAG","display":"Microfilariae Antigen"},{"code":"FINR","display":"Final Result"},{"code":"FLN","display":"Fluoride Number"},{"code":"FLQNS","display":"Flouroquinolones"},{"code":"FOB","display":"Ocult Blood"},{"code":"FPORI","display":"Identification"},{"code":"FPORQ","display":"F-Porphyrin"},{"code":"FPROT","display":"F-Total Protein"},{"code":"FRF","display":"Rheumatoid Factor (Pleural Fl)"},{"code":"FROTA","display":"Rotavirus"},{"code":"FSHC","display":"Follicle Stimulating Hormone"},{"code":"F-T3","display":"S-Free Tri-iodothyronine"},{"code":"F-T4","display":"S-Free Thyroxine (Direct)"},{"code":"FUNGI","display":"Fungi"},{"code":"FWBC","display":"White Blood cells"},{"code":"G6PD","display":"G6PD Assay"},{"code":"G6PDS","display":"D Screen Test"},{"code":"GCLUE","display":"GRAM STAIN :CLUE CELLS"},{"code":"GCPRD","display":"Pregnandiol"},{"code":"GELNO","display":"Number"},{"code":"GENO","display":"Genotyping"},{"code":"GENT","display":"Gentamicin"},{"code":"GENT1","display":"Gentamycin"},{"code":"GENTA","display":"Gentamicin"},{"code":"GERMT","display":"Result"},{"code":"GL120","display":"Glucose - 2 Hours"},{"code":"GL150","display":"Glucose - 2.5 Hours"},{"code":"GL180","display":"Glucose - 3 Hours"},{"code":"GL210","display":"Glucose - 3.5 Hours"},{"code":"GL240","display":"Glucose - 4 Hours"},{"code":"GL270","display":"Glucose - 4.5 Hours"},{"code":"GL30","display":"Glucose - 30 mins"},{"code":"GL300","display":"Glucose - 5 Hours"},{"code":"GL360","display":"Glucose - 6 hrs"},{"code":"GL480","display":"Glucose - 8 hr"},{"code":"GL60","display":"Glucose - 1 Hour"},{"code":"GL90","display":"Glucose - 1.5 Hours"},{"code":"GLOB","display":"Globulin"},{"code":"GLUCS","display":"Glucose (POCT)"},{"code":"GNB","display":"Gram Negative Bacilli"},{"code":"GNC","display":"Gram Negative Cocci"},{"code":"GNCB","display":"Gram Negative Coccobacilli"},{"code":"GNDC","display":"Gram Negative Dipplococci"},{"code":"GNPB","display":"GN Pleomorphic Bacilli"},{"code":"GPB","display":"Gram Positive Bacilli"},{"code":"GPBB","display":"GP Branching Beaded Bacilli"},{"code":"GPC","display":"Gram Positive Cocci"},{"code":"GPCC","display":"Gram Positive Cocci Chains"},{"code":"GPCCL","display":"Gram Positive Cocci Clusters"},{"code":"GPCP","display":"Gram Positive Cocci Pairs"},{"code":"GPDC","display":"Gram Positive Diplococci"},{"code":"GPFB","display":"GP Filamentous Bacilli"},{"code":"GRAMS","display":"GRAM STAIN"},{"code":"GREPI","display":"Epithelial Cells"},{"code":"GRERY","display":"Erythrocytes"},{"code":"GRWC","display":"White Blood cells"},{"code":"GTBA","display":"Glucose - Basal"},{"code":"GTDOS","display":"Glucose Dose"},{"code":"GTXT","display":"Text"},{"code":"GVC","display":"Gram Variable Coccobacilli"},{"code":"GVINC","display":"Vincent's Orgnisms"},{"code":"GXRIF","display":"Rifampicin"},{"code":"GXTB","display":"PCR result"},{"code":"GXTBR","display":"PCR result (raw data)"},{"code":"H2RL","display":"log value"},{"code":"H2VRS","display":"HIV: Viral Load (Cap/CTM)"},{"code":"HAEM","display":"Specimen Haemolysed"},{"code":"HAEMI","display":"Haemolysis index"},{"code":"HAUTO","display":"Please note:"},{"code":"HBA","display":"Haemoglobin A"},{"code":"HBA1","display":"Average Glucose (calculated)"},{"code":"HBA1C","display":"Hb A1c (Glycosylated)"},{"code":"HBA2","display":"Haemoglobin A2"},{"code":"HBA2D","display":"Haemoglobin A2"},{"code":"HBF1","display":"Haemoglobin F"},{"code":"HBFD","display":"Haemoglobin F"},{"code":"HBH","display":"Haemoglobin"},{"code":"HBSB1","display":"Hep B surface Antibody Titre"},{"code":"HBU","display":"Unstable Haemoglobin"},{"code":"HCBCO","display":"Cut off : Hepatitis C"},{"code":"HCBFL","display":"Hepatitis C Antibodies"},{"code":"HCBVA","display":"Value : Hepatitis C"},{"code":"HCG","display":"Beta HCG"},{"code":"HCGS","display":"Serum ß-HCG Pregnancy Screen"},{"code":"HCO3","display":"Bicarbonate (actual)"},{"code":"HCOM","display":"Comment"},{"code":"HCT","display":"Haematocrit"},{"code":"HEAL","display":"Health Facility"},{"code":"HELPV","display":"OD Value"},{"code":"HELPY","display":"Helicobacter pylori IgG"},{"code":"HEPD","display":"Hepatitis D Antibodies"},{"code":"HEPE","display":"Hepatitis E Antibodies"},{"code":"HERG1","display":"Herpes simplex Type 1 IgM"},{"code":"HERG2","display":"Herpes simplex Type 2 IgG"},{"code":"HERPG","display":"Herpes simplex virus IgG"},{"code":"HERPM","display":"Herpes simplex virus IgM"},{"code":"HFLU","display":"Haemophilus influenzae"},{"code":"HGB","display":"Haemoglobin"},{"code":"HGH","display":"Human Growth Hormone"},{"code":"HISTD","display":"Pathologist"},{"code":"HISTS","display":"Special Stain"},{"code":"HISTT","display":"Specimen"},{"code":"HIV-1","display":"HIV-1"},{"code":"HIVA","display":"HIV ASANTE"},{"code":"HIVAR","display":"HIV: Viral Load (ART)"},{"code":"HIVBL","display":"log value"},{"code":"HIVBR","display":"HIV: Viral Load (BIO/CEN)"},{"code":"HIVCO","display":"CUT-OFF : HIV"},{"code":"HIVD","display":"HIV Determine"},{"code":"HIVE","display":"HIV Antibodies: ELISA Method"},{"code":"HIVL","display":"HIV: Viral load (LCx)"},{"code":"HIVL2","display":"HIV: Viral load (LCx)"},{"code":"HIVLA","display":"Log Value"},{"code":"HIVLC","display":"HIV: Viral Load (LCx)"},{"code":"HIVLL","display":"Log Value"},{"code":"HIVML","display":"Log Value"},{"code":"HIVP","display":"HIV Rapid"},{"code":"HIVPC","display":"Infant HIV DNA PCR"},{"code":"HIVPL","display":"Log Value"},{"code":"HIVPR","display":"HIV: Viral Load (PANTHER)"},{"code":"HIVQL","display":"Log Value"},{"code":"HIVR","display":"HIV 1/2 Rapid Screening Test"},{"code":"HIVRL","display":"log value"},{"code":"HIVRT","display":"HIV-1 resistance"},{"code":"HIVSI","display":"Sequence ID"},{"code":"HIVTL","display":"Log Value"},{"code":"HIVTM","display":"HIV: Viral Load (Taqman)"},{"code":"HIVU","display":"HIV Unigold"},{"code":"HIVVA","display":"HIV VALUE"},{"code":"HIVVB","display":"HIV: Viral Load"},{"code":"HIVVC","display":"HIV : Viral load (low value)"},{"code":"HIVVD","display":"HIV: Viral Load"},{"code":"HIVVM","display":"HIV : VIRAL LOAD"},{"code":"HIVVP","display":"HIV: Viral Load (Ampliprep)"},{"code":"HIVVQ","display":"HIV : Viral Load (NASBA)"},{"code":"HIVVR","display":"HIV: Viral Load (CAP/CTM)"},{"code":"HLAXB","display":"Crossmatching B-Cells"},{"code":"HLB27","display":"HLA B27"},{"code":"HPRL","display":"log value"},{"code":"HSVG","display":"HERPES SIMPLEX VIRUS IgG"},{"code":"HSVM","display":"Herpes simplex Virus IgM"},{"code":"HT","display":"Patient`s Height"},{"code":"HTSTB","display":"Heat Stability Test"},{"code":"HTXT","display":"Haematology Text"},{"code":"HVVRS","display":"HIV: Viral Load (CAP/CTM)"},{"code":"HYS0H","display":"Homocysteine Fasting"},{"code":"HYS6H","display":"Homocysteine 6H Postmethionine"},{"code":"HYSIN","display":"Homocysteine Increase"},{"code":"HYSUH","display":"Homocysteine Unknown Time"},{"code":"ICD10","display":"ICD10"},{"code":"ICOM","display":"Comment"},{"code":"ICOOH","display":"Indirect Coomb"},{"code":"ICOOM","display":"Abnormal Antibodies"},{"code":"ICT","display":"Indirect coomb's test"},{"code":"IG#","display":"IG"},{"code":"IGA","display":"Total IgA"},{"code":"IHYS","display":"Homocysteine Increase"},{"code":"IMFIX","display":"Immunofixation"},{"code":"IMI","display":"Imipenem"},{"code":"IMMA","display":"%Immature"},{"code":"IMMSP","display":"Immediate Spin"},{"code":"INCLU","display":"Inclusions"},{"code":"INJCS","display":"Injectibles"},{"code":"INK","display":"India Ink"},{"code":"INR","display":"Int Normalised Ratio (INR)"},{"code":"INTXT","display":"Remarks"},{"code":"IPROT","display":"F-Total Protein"},{"code":"IS","display":"Immediate spin"},{"code":"ISI","display":"ISI"},{"code":"ITIME","display":"Incubation Time"},{"code":"ITITR","display":"Titre"},{"code":"ITXT","display":"Remarks"},{"code":"IV","display":"Index Value"},{"code":"JRF","display":"Rheumatoid Factor- Joint Fluid"},{"code":"LA1:2","display":"LA-1:LA-2"},{"code":"LA1NP","display":"LA-1 with normal plasma"},{"code":"LA2NP","display":"LA-2 with normal plasma"},{"code":"LACTT","display":"Lactate"},{"code":"LAMIV","display":"Lamivudine (3TC)"},{"code":"LCHOL","display":"Cholesterol"},{"code":"LCRYP","display":"LFA Cryptococcal Antigen"},{"code":"LEUCO","display":"White Blood Cells"},{"code":"LHC","display":"Luteinising Hormone (L)"},{"code":"LI","display":"Lithium"},{"code":"LINE0","display":"LINE0"},{"code":"LINE1","display":"LINE1"},{"code":"LISS","display":"LISS-IAT"},{"code":"LJDAT","display":"Date"},{"code":"LJDT","display":"LJ Date"},{"code":"LJRES","display":"LJ Result"},{"code":"LLA1","display":"Lupus anticoagulant 1"},{"code":"LLA2","display":"Lupus anticoagulant 2"},{"code":"LN1:2","display":"LA-1 NP:LA-2 NP"},{"code":"LPRIF","display":"Rifampicin"},{"code":"LSD","display":"Lysergic Acid Diethylamide"},{"code":"LTIME","display":"Liquefaction time"},{"code":"LUPN","display":"Lupus anticoagulant"},{"code":"LUPP","display":"Lupus anticoagulant (KCT)"},{"code":"LYM#","display":"Lymphocytes"},{"code":"LYM%","display":"Lymphocytes"},{"code":"LYMA%","display":"Lymphocytes"},{"code":"LYMP","display":"Lymphocytes"},{"code":"MAAG","display":"Malaria Antigen"},{"code":"MACS","display":"Macroscopic supernatant"},{"code":"MAL","display":"Malaria"},{"code":"MALF","display":"Plasmodium Antigen"},{"code":"MALRT","display":"Malaria: PCR Results"},{"code":"MALTH","display":"Malaria(Thin film prep.)"},{"code":"MAPP","display":"Macroscopic Apprearance"},{"code":"MASS","display":"Patient`s Mass"},{"code":"MBILH","display":"istosoma haematobium"},{"code":"MCEA","display":"Carcinoembryonic Antigen"},{"code":"MCH","display":"MCH"},{"code":"MCHC","display":"MCHC"},{"code":"MCM2","display":"Comment"},{"code":"MCOM","display":"Comment"},{"code":"MCV","display":"MCV"},{"code":"MEASG","display":"Measles IgG"},{"code":"MEASM","display":"Measles IgM"},{"code":"MEM","display":"MEROPENEM"},{"code":"MET","display":"Methicillin"},{"code":"META#","display":"Metamyelocytes"},{"code":"META%","display":"Metamyelocyte"},{"code":"METH","display":"Methicillin"},{"code":"METHD","display":"Methadone"},{"code":"METQ","display":"Methaqualone (Mandrax)"},{"code":"MFIL","display":"Microfilariae"},{"code":"MGMSA","display":"Slide A"},{"code":"MGMSB","display":"Slide B"},{"code":"MGMSC","display":"Slide C"},{"code":"MGMSD","display":"Slide D"},{"code":"MGMSE","display":"Slide E"},{"code":"MGMSF","display":"Slide F"},{"code":"MGSMH","display":"Microscopic Morphology"},{"code":"MGSRH","display":"Microscopic Gram Stain Reactio"},{"code":"MGSSA","display":"Slide A"},{"code":"MGSSB","display":"Slide B"},{"code":"MGSSC","display":"Slide C"},{"code":"MGSSD","display":"Slide D"},{"code":"MGSSE","display":"Slide E"},{"code":"MGSSF","display":"Slide F"},{"code":"MHEAD","display":"Morphology and Comment"},{"code":"MIC","display":"Microscope #"},{"code":"MICH","display":"Microbiology:"},{"code":"MICIN","display":"Microscopic Examination"},{"code":"MICRE","display":"MICROSCOPIC EXAMINATION"},{"code":"MICRO","display":"Microscope Used"},{"code":"MLDL","display":"LDL Cholesterol"},{"code":"MLEUD","display":"Leucocytes"},{"code":"MMACR","display":"MACROSCOPIC"},{"code":"MOART","display":"Months since starting ARV"},{"code":"MON","display":"Monoclonal Band"},{"code":"MONA#","display":"Monocytes"},{"code":"MONA%","display":"Monocytes"},{"code":"MONO","display":"Epstein Barr Heterophile Ab's"},{"code":"MONO#","display":"Monocytes"},{"code":"MONO%","display":"Monocytes"},{"code":"MONTH","display":"Stopped at month"},{"code":"MORPH","display":"Morphology"},{"code":"MOTIL","display":"Motility"},{"code":"MPCR","display":"Malaria: PCR"},{"code":"MPROT","display":"U-Protein"},{"code":"MPV","display":"Mean Platelet Volume"},{"code":"M-TP","display":"Micro Total Protein"},{"code":"MTRIC","display":"TRICHOMONAS VAGINALIS"},{"code":"MTXT","display":"Remarks"},{"code":"MTZ","display":"Metranidazole"},{"code":"MUCUS","display":"Mucus Threads"},{"code":"MUMPG","display":"Mumps IgG"},{"code":"MUMPM","display":"Mumps IgM"},{"code":"MUP","display":"MUPIROCIN"},{"code":"MXD#","display":"Mixed Cells"},{"code":"MXD%","display":"Mixed Cells"},{"code":"MYCH","display":"Culture"},{"code":"MYCUL","display":"Result"},{"code":"MYEAS","display":"Yeast Cells"},{"code":"MYEL#","display":"Myelocytes"},{"code":"MYEL%","display":"Myelocytes"},{"code":"MYGIE","display":"Giemsa Stain"},{"code":"MYGT","display":"Germ Tube"},{"code":"MYKIN","display":"Kinyoun Stain"},{"code":"MYMIC","display":"MICROSCOPIC EXAMINATION"},{"code":"MYOG","display":"MYOGLOBIN"},{"code":"MYPAS","display":"PAS Stain"},{"code":"MZNS","display":"MODIFIED ZIELH-NEELSEN STAIN"},{"code":"NALID","display":"Nalidixic Acid"},{"code":"NEI","display":"N meningitides A,C,Y,W135"},{"code":"NEICO","display":"N meningitides B/E coli:"},{"code":"NEUA#","display":"Neutrophils"},{"code":"NEUA%","display":"Neutrophils"},{"code":"NEUT#","display":"Neutrophils"},{"code":"NEUT%","display":"Neutrophils"},{"code":"NEVI","display":"Nevirapine (NVP)"},{"code":"NITR","display":"Nitrofurantoin"},{"code":"NITRO","display":"Nitrofurantoin"},{"code":"NNRTI","display":"NNRTI Resistance Mutations"},{"code":"NONNU","display":"Non-Nucleoside RTI"},{"code":"NORM","display":"%Normal"},{"code":"NOS","display":"Organisms Seen"},{"code":"NRBC","display":"Nucleated Red Cells"},{"code":"NRTIR","display":"NRTI Resistance Mutations"},{"code":"NUCLE","display":"Nucleoside RTI"},{"code":"OB","display":"Stool Occult Blood Test"},{"code":"OCEA","display":"Carcinoembryonic Antigen"},{"code":"OCEL","display":"O Cells"},{"code":"OOCYS","display":"Oocysts"},{"code":"OPIAT","display":"Opiates"},{"code":"ORGS","display":"Organism Identification"},{"code":"ORGSV","display":"Organism"},{"code":"ORGSW","display":"Organism"},{"code":"ORGSX","display":"Organism"},{"code":"ORGSY","display":"Organism"},{"code":"OSAT","display":"Saturation"},{"code":"OTERM","display":"Other Mutations"},{"code":"OTHER","display":"Other"},{"code":"OTHR#","display":"Other"},{"code":"OTHR%","display":"Other"},{"code":"OVA","display":"Ova"},{"code":"OVA1","display":"Ova /Cysts"},{"code":"OVA2","display":"Ova/Cysts"},{"code":"OWCC","display":"White Cell Count (Uncorrected)"},{"code":"OX19","display":"Proteus OX19 antibody"},{"code":"OX2","display":"Proteus OX2 antibody"},{"code":"OXAC1","display":"Oxacillin"},{"code":"OXACI","display":"Oxacillin"},{"code":"OXK","display":"Proteus OXK antibody"},{"code":"P/N","display":"Pos/Neg"},{"code":"PADIS","display":"PRESUMPTIVE TB#/TB REGISTER#"},{"code":"PAN","display":"PAN Antigen"},{"code":"PARAC","display":"Paracetamol"},{"code":"PARAS","display":"Parasites"},{"code":"PARS","display":"Parasitemia Count"},{"code":"PATH","display":"Pathologist"},{"code":"PATHH","display":"Pathologist(s):"},{"code":"PATT","display":"Type of Pattern"},{"code":"PB/CR","display":"Porphobilinogen/Creatinine"},{"code":"PBNP","display":"proBNP"},{"code":"PCO2","display":"pCO2"},{"code":"PCRAP","display":"Factor V Leiden Mutation"},{"code":"PCRH","display":"DNA PCR Test Information"},{"code":"PCRQ","display":"Quantitative"},{"code":"PCRR","display":"PCR Result"},{"code":"PCTR","display":"Procalcitonin - Rapid Test"},{"code":"PCULT","display":"CULTURE RESULT"},{"code":"PCV","display":"PCV"},{"code":"PDBIL","display":"Conjuagted Bilirubin (Paeds)"},{"code":"PDW","display":"Platelet Distribution Width"},{"code":"PEN","display":"Penicillin G"},{"code":"PENG","display":"Penicillin G"},{"code":"PENG1","display":"Penicillin G"},{"code":"PER","display":"Creat. Clearance Period"},{"code":"PFAL","display":"Plasmodium Falciparum Ag"},{"code":"PGRP","display":"Patient Group"},{"code":"PH","display":"Ph"},{"code":"PHB","display":"Phoned by"},{"code":"PHD","display":"Date Phoned"},{"code":"PHENB","display":"Phenobarbitone"},{"code":"PHENC","display":"Phencyclidine"},{"code":"PHENY","display":"Phenytoin"},{"code":"PHN","display":"Phoned to"},{"code":"PHT","display":"Time phoned"},{"code":"PHTXT","display":"Message"},{"code":"PHYS","display":"Homocysteine 6H Postmethionine"},{"code":"PHYS0","display":"Patient - Hys Peak 0 hr"},{"code":"PHYS6","display":"Patient - Hys Peak 6 hr"},{"code":"PHYSU","display":"Patient - Hys Peak Unknown"},{"code":"PIPER","display":"Piperacillin"},{"code":"PLAC","display":"p-Lactic Acid"},{"code":"PLT","display":"Platelet Count"},{"code":"PLTAB","display":"Platelet Antibodies"},{"code":"PMTCH","display":"PMTCT Infant"},{"code":"PMTMO","display":"PMTCT Mother"},{"code":"PNEUM","display":"Streptococcus pneumoniae"},{"code":"PO/CR","display":"Porphyrin/Creatinine"},{"code":"PO2","display":"pO2"},{"code":"POCVR","display":"HIV: Viral Load (GENEX)"},{"code":"POLI1","display":"Poliovirus Type 1 Abs"},{"code":"POLI2","display":"Poliovirus Type 2 Abs"},{"code":"POLI3","display":"Poliovirus Type 3 Abs"},{"code":"POLY","display":"Polymorphonuclear cells"},{"code":"POLYM","display":"Polymyxin B"},{"code":"PORL","display":"log value"},{"code":"PREG","display":"Pregnancy Test"},{"code":"PRLC","display":"Prolactin (PRL)"},{"code":"PROGC","display":"Progesterone"},{"code":"PROM#","display":"Promyelocytes"},{"code":"PROM%","display":"Promyelocytes"},{"code":"PROTC","display":"Protein C (Chromogenic)"},{"code":"PROTS","display":"Protein S (Functional)"},{"code":"PRTCF","display":"Protein C"},{"code":"PSA","display":"Prostate Specific Antigen"},{"code":"PSCHE","display":"Pseudocholinesterase"},{"code":"PSHY","display":"Pseudohyphae"},{"code":"PSTD0","display":"Patient - Int Std Peak 0 hr"},{"code":"PSTD6","display":"Patient - Int Std Peak 6 hr"},{"code":"PSTDU","display":"Patient-Int Std Peak Unknown"},{"code":"PT","display":"Prothrombin Time (Patient)"},{"code":"PTBIL","display":"Total Bilirubin (Paediatric)"},{"code":"PTC","display":"Prothrombin Time (Control)"},{"code":"PTH","display":"Parathyroid Hormone"},{"code":"PTHA","display":"Parathyroid Hormone"},{"code":"PTHM","display":"Parathyroid Hormone (mass)"},{"code":"PTHP","display":"p-Parathyroid Hormone"},{"code":"PTTR","display":"PTT Ratio"},{"code":"PVIV","display":"Plasmodium Vivax Ag"},{"code":"QBAS%","display":"Basophils"},{"code":"QCD3","display":"CD3 Count"},{"code":"QCD3L","display":"CD3%"},{"code":"QCD4","display":"CD4 Count"},{"code":"QCD4L","display":"CD4%"},{"code":"QCD8","display":"CD8 Count"},{"code":"QCD8L","display":"CD8%"},{"code":"QCWBC","display":"Leucocyte Count"},{"code":"QEOS%","display":"Eosinophils"},{"code":"QHBG","display":"ABO Blood group"},{"code":"QHCG","display":"Quantitative á-HCG"},{"code":"QHRG","display":"Rhesus status"},{"code":"QLYM%","display":"Lymphocytes"},{"code":"QMCHC","display":"EQMCHC"},{"code":"QMON%","display":"Monocytes"},{"code":"QNEU%","display":"Neutrophils"},{"code":"QPEHE","display":"CTROPHORETIC PATTERN"},{"code":"QRPR1","display":"RPR"},{"code":"QRPRT","display":"RPR titre"},{"code":"QRPRW","display":"RPR Titre Wells"},{"code":"RAPI2","display":"HIV 1/2 Rapid Repeat"},{"code":"RATIO","display":"RATIOS"},{"code":"RBC","display":"Erythrocyte Count"},{"code":"RBCA","display":"RBC"},{"code":"RCC","display":"Erythrocyte Count"},{"code":"RCCHE","display":"Red Cell Cholinesterase"},{"code":"RCELU","display":"Red Cell Eluate"},{"code":"RCOM","display":"Red Cell Morphology"},{"code":"RDW","display":"RDW"},{"code":"RECR","display":"Recepient Result"},{"code":"REJCT","display":"Specimen Rejected"},{"code":"REM","display":"Remarks"},{"code":"RENIC","display":"Renin"},{"code":"REQTS","display":"Test/s requested"},{"code":"RESLT","display":"Mgit Reading (for Controls)"},{"code":"RETA","display":"Absolute Reticulocyte Count"},{"code":"RETIC","display":"Reticulocyte Count"},{"code":"RETM","display":"Maturation Time"},{"code":"RF","display":"Rheumatoid Factor(Screen)"},{"code":"RF13","display":"IgE to Peanuts"},{"code":"RF14","display":"IgE to Soya Bean"},{"code":"RF2","display":"IgE to Cow`s Milk"},{"code":"RF3","display":"IgE to Fish (Cod)"},{"code":"RF4","display":"Rheumatoid Factor Titre"},{"code":"RF8","display":"to Maize"},{"code":"RFQM","display":"Rheumatoid Factor"},{"code":"RFR","display":"RF Rule"},{"code":"RFT","display":"Rheumatoid Factor Titre"},{"code":"RG","display":"Rhesus Type"},{"code":"RGLU","display":"Glucose Random"},{"code":"RH","display":"Rhesus (D)"},{"code":"RHAB","display":"Atypical Antibodies"},{"code":"RHABC","display":"Anribody Identification"},{"code":"RHABI","display":"Antibody Identification"},{"code":"RHABT","display":"Antibody Titre"},{"code":"RHNEG","display":"Negative"},{"code":"RIFTB","display":"Rifampicin"},{"code":"RILPI","display":"Rilpivirine (RPV)"},{"code":"RINHS","display":"Inhalant Screen Test"},{"code":"RJREA","display":"Reject Reason"},{"code":"RJREM","display":"Remarks"},{"code":"ROTA","display":"Rotavirus Antigen"},{"code":"ROTAG","display":"Rotavirus Antigen"},{"code":"ROTRT","display":"Rotavirus PCR Results"},{"code":"RPCR","display":"Rotavirus: PCR"},{"code":"RPI","display":"Reticulocyte Production Index"},{"code":"RPR1","display":"RPR"},{"code":"RPRT","display":"RPR Titre"},{"code":"RPRW","display":"RPR Titre Wells"},{"code":"RRF1","display":"IgE to Egg White"},{"code":"RRF4","display":"IgE to Wheat"},{"code":"RTTBP","display":"Real-time PCR for M tubercul"},{"code":"RUGFL","display":"Rubella IgG"},{"code":"RUGT","display":"Rubella IgG Titre"},{"code":"RUMFL","display":"Rubella IgM"},{"code":"RUMT","display":"Rubella IgM Titre"},{"code":"SABCO","display":"Cut off : Surface antibody"},{"code":"SABFL","display":"Hepatitis B surface Antibodies"},{"code":"SABNI","display":"Abnormal forms include:"},{"code":"SABVA","display":"Value : Surface antibody"},{"code":"SACE","display":"Angiotensin Converting Enzyme"},{"code":"SACT2","display":"Adreno-corticotrophic Hormone"},{"code":"SACTH","display":"Adreno-corticotrophic Hormone"},{"code":"SADA","display":"Adenosine Deaminase"},{"code":"SAGCO","display":"Cut off : Surface antigen"},{"code":"SAGFL","display":"Hepatitis B Surface Antigen"},{"code":"SAGVA","display":"Value : Surface antigen"},{"code":"SALC","display":"S-Salicylate"},{"code":"SALHT","display":"Salmonella typhi H titre"},{"code":"SALP","display":"Alkaline Phosphatase (ALP)"},{"code":"SALT","display":"Alanine Transaminase (ALT)"},{"code":"SAMY","display":"Serum Amylase"},{"code":"SAPP","display":"Appearance (fresh semen)"},{"code":"SAST","display":"Aspartate Transaminase (AST)"},{"code":"SIBIL","display":"Bilirubin (indirect)"},{"code":"SCHOL","display":"S-Cholesterol"},{"code":"SCK2","display":"Creatine Kinase (CK)"},{"code":"SCKMB","display":"CKMB"},{"code":"SCO2","display":"Carbon dioxide"},{"code":"SCORT","display":"Cortisol"},{"code":"SCOUN","display":"Count"},{"code":"SCRN","display":"ABO Screening"},{"code":"SCRT","display":"S-Creatinine"},{"code":"SDBIL","display":"Bilirubin (direct)"},{"code":"SERY","display":"Red Blood Cells"},{"code":"SGGT","display":"g-Glutamyl Transferase (GGT)"},{"code":"SGLU","display":"Glucose"},{"code":"SHDL","display":"S-HDL Cholesterol"},{"code":"SIRON","display":"Iron"},{"code":"SK","display":"Potassium"},{"code":"SLDH","display":"Lactate Dehydrogenase (LD)"},{"code":"SLDL","display":"S-LDL Cholesterol"},{"code":"SLGIE","display":"Slides GIEMSA Stain"},{"code":"SLPAP","display":"Slides PAP Stain"},{"code":"SMG","display":"S-Magnesium"},{"code":"SMOT2","display":"%Progressive motility 2nd hour"},{"code":"SMOT3","display":"%Progressive motility 3rd hour"},{"code":"SMOT6","display":"%Progressive motility 6th hour"},{"code":"SMOTI","display":"Motility Studies"},{"code":"SMYO","display":"S-Myoglobin"},{"code":"SNA","display":"Sodium"},{"code":"SNPP","display":"S-Acid Phos. Non-Prostatic"},{"code":"SPEM","display":"Spermatozoa"},{"code":"SPH","display":"Reaction (pH)"},{"code":"SPO4","display":"S-Phosphate Inorganic"},{"code":"SRATE","display":"Rate of forward progression"},{"code":"SSMEL","display":"Smell"},{"code":"STACP","display":"S-Acid Phosphatase (Total)"},{"code":"STBIL","display":"Bilirubin (Total)"},{"code":"STP","display":"S-Total Protein"},{"code":"STRIG","display":"S-Triglycerides"},{"code":"SUREA","display":"Blood urea nitrogen"},{"code":"SVISC","display":"Viscosity after liquefaction"},{"code":"SVITA","display":"Vitality after 2 hours"},{"code":"SVOL","display":"Volume of collection"},{"code":"SWBC","display":"White Blood cells"},{"code":"TBADT","display":"Tuberculosis investigation"},{"code":"TBAMI","display":"Amikacin (1ug/ml)"},{"code":"TBAR1","display":"Result"},{"code":"TBAR2","display":"Grading"},{"code":"TBARM","display":"Remarks"},{"code":"TBBAC","display":"Mgit Reading"},{"code":"TBBCM","display":"Bactec Comment"},{"code":"TBBDT","display":"Instrument Date"},{"code":"TBC1D","display":"Reprocessed Date"},{"code":"TBCLO","display":"Clofazimine (1ug/ml)"},{"code":"TBCN1","display":"Reprocessed"},{"code":"TBETM","display":"Ethambutol"},{"code":"TBINH","display":"Isoniazid"},{"code":"TBLEV","display":"Levofloxacin (1ug/ml)"},{"code":"TBMOF","display":"Moxifloxacin (0.25ug/ml)"},{"code":"TBODT","display":"Date"},{"code":"TBORG","display":"Org Isolated"},{"code":"TBP-A","display":"P-Aminosalicylic Acid (4ug/ml)"},{"code":"TBRCM","display":"TB Rapid Comment"},{"code":"TBRIF","display":"Rifampicin"},{"code":"TBRP","display":"TB Rapid ID"},{"code":"TEST","display":"Testosterone"},{"code":"TETRA","display":"Tetracycline"},{"code":"THSR","display":"T H/S Ratio"},{"code":"TMP","display":"Trimethoprim"},{"code":"TPHA","display":"TPHA"},{"code":"TROP","display":"Troponin T"},{"code":"TROPI","display":"S-TROPONIN I"},{"code":"TRYP","display":"Trypanosomes"},{"code":"TS","display":"Co-trimoxazole"},{"code":"TSH","display":"S-TSH"},{"code":"TWBCC","display":"Total White Blood Cell Count"},{"code":"TXMFL","display":"Toxoplasma IgM"},{"code":"TZP","display":"Piperacillin/Tazobactam"},{"code":"UAMY","display":"Amylase"},{"code":"UBACT","display":"Bacteria"},{"code":"UBL","display":"Blood"},{"code":"UCRT","display":"U-Creatinine"},{"code":"UHB","display":"Haemoglobin"},{"code":"UMA","display":"U-Microalbumin"},{"code":"UMAER","display":"Microalbumin excretion rate"},{"code":"UPREG","display":"Pregnancy Test"},{"code":"USG","display":"Specific Gravity"},{"code":"UUBGN","display":"Urobilinogen"},{"code":"UVOL","display":"U-Volume"},{"code":"VALPR","display":"S-Valproate"},{"code":"VANCO","display":"Vancomycin"},{"code":"VCULT","display":"CULTURE RESULT"},{"code":"VDRLS","display":"VDRL Screen"},{"code":"VDRLT","display":"VDRL Titre"},{"code":"VEPI","display":"Epithelial Cells"},{"code":"VGLU","display":"F-Glucose"},{"code":"VITD","display":"1.25 Dihydroxy Vitamin D"},{"code":"VOL","display":"Volume of collection"},{"code":"VZG","display":"Varicella-Zoster IgG"},{"code":"WBACT","display":"0rganisms Seen"},{"code":"WBC","display":"Leucocyte Count"},{"code":"WDU","display":"Weak D"},{"code":"WEPI","display":"EPITHELIAL CELLS"},{"code":"WERY","display":"RED BLOOD CELLS"},{"code":"WET","display":"WET PREPARATION"},{"code":"WFH","display":"FUNGAL HYPHAE"},{"code":"WPSHY","display":"PSEUDOHYPHAE"},{"code":"WWBC","display":"WHITE BLOOD CELLS"},{"code":"WYST","display":"YEAST CELLS"},{"code":"XGLUC","display":"P-Glucose (Fasting)"},{"code":"YEAST","display":"Yeast Cells"},{"code":"ZIN","display":"Zinate"},{"code":"COV19","display":"SARS-CoV-2"},{"code":"CVCOM","display":"SARS-CoV-2"},{"code":"CA15-3","display":"CA153"},{"code":"SCA","display":"S-Calcium total"},{"code":"SCL","display":"Chloride"},{"code":"XMATC","display":"Cross Match Result"},{"code":"!GXMT","display":"GeneXpert MTB Rule"},{"code":"SUA","display":"Uric acid"},{"code":"SUAA","display":"Uric acid"},{"code":"VCRT","display":"Creatinine"},{"code":"DLM","display":"Delamanid"},{"code":"LZD","display":"Linezolid"},{"code":"BDQ","display":"Bedaquiline"},{"code":"TBETH","display":"Ethionamide"},{"code":"TBISO","display":"Isoniazid"},{"code":"TBZCM","display":"ZN Comment"},{"code":"TBZDT","display":"Zn Date"},{"code":"TBZH","display":"ZEIHL-NEELSEN STAIN"},{"code":"TBZN","display":"Ziehl-Neelsen Stain"},{"code":"TBZNI","display":"TBZN Internal"},{"code":"TBLIN","display":"Linezolid"},{"code":"WBCA","display":"WBC"},{"code":"SALTH","display":"Salmonella typhi H antibodies"},{"code":"SALOT","display":"Salmonella typhi O titre"},{"code":"LYMA#","display":"Lymphocytes"},{"code":"CVRP","display":"COVID-19 Ag Rapid Test"},{"code":"CT","display":"Chlamydia Trachomatis"},{"code":"NG","display":"Neisseria Gonorrhoeae"},{"code":"RCHOL","display":"RCHOL-Result"},{"code":"DSYTP","display":"Determinate Syphilis TP"},{"code":"TBAU","display":"Auramine Result"},{"code":"TBCM","display":"Auramine Comment"},{"code":"TBRI2","display":"Rifampicin (0.5ug/ml)"},{"code":"TBMOX","display":"Moxifloxacin (1ug/ml)"},{"code":"TBSF","display":"TB First Line Comment"},{"code":"TBLP","display":"TB Line Probe Comment"},{"code":"HIVPS","display":"HIV Viral Load (PSC)"},{"code":"PSC2","display":"Log Value"},{"code":"PSCD","display":"HIV Viral Load"},{"code":"SCOM","display":"Comment"}]},"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzTestParameterCodeVS":{"extends":["https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzTestParameterCodeCS"],"values":[]},"https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS":{"extends":[],"values":[{"code":"-99","display":"Unspecified"},{"code":"1","display":"Lamgabhi "},{"code":"2","display":"Dlangeni"},{"code":"3","display":"Kasiko"},{"code":"4","display":"Sitseni"},{"code":"5","display":"Zulwini"},{"code":"6","display":"ELangeni"},{"code":"7","display":"Lobamba "},{"code":"8","display":"Nkhanini"},{"code":"9","display":"Zabeni"},{"code":"10","display":"Zandondo"},{"code":"11","display":"Gucuka "},{"code":"12","display":"Tfuntini/Buhlebuyeza "},{"code":"13","display":"Dvokolwako / Ekuphakameni"},{"code":"14","display":"Ekukhulumeni/ Mandlangempisi"},{"code":"15","display":"Nyonyane/ Maguga"},{"code":"16","display":"Mavula"},{"code":"17","display":"Maphalaleni"},{"code":"18","display":"Dlozini"},{"code":"19","display":"Mcengeni"},{"code":"20","display":"Madlolo"},{"code":"21","display":"Nsingweni"},{"code":"22","display":"Mfeni"},{"code":"23","display":"Mkhuzweni"},{"code":"24","display":"Mfasini"},{"code":"25","display":"Mkhweni"},{"code":"26","display":"Mavula"},{"code":"27","display":"Herefords"},{"code":"28","display":"Msunduza"},{"code":"29","display":"Fontein"},{"code":"30","display":"Sidwashini"},{"code":"31","display":"Mdzimba/Lofokati"},{"code":"32","display":"Manzana"},{"code":"33","display":"Nkwalini "},{"code":"34","display":"Mangwaneni "},{"code":"35","display":"Mangweni"},{"code":"36","display":"Ndvwabangeni"},{"code":"37","display":"Nhlanguyavuka"},{"code":"38","display":"Zinyane "},{"code":"39","display":"Emalibeni "},{"code":"40","display":"Sidvwashini"},{"code":"41","display":"Nyakatfo"},{"code":"42","display":"Mphofu"},{"code":"43","display":"Mgungundlovu"},{"code":"44","display":"Nkamanzi"},{"code":"45","display":"Ludlawini "},{"code":"46","display":"Mvuma"},{"code":"47","display":"Bulandzeni"},{"code":"48","display":"Ndzingeni"},{"code":"49","display":"Kwaliweni"},{"code":"50","display":"Meleti"},{"code":"51","display":"Ntsanjeni"},{"code":"52","display":"Ejubukweni"},{"code":"53","display":"Malanti"},{"code":"54","display":"Nkhaba"},{"code":"55","display":"Kuvinjelweni"},{"code":"56","display":"Vusweni"},{"code":"57","display":"Mshingishingini"},{"code":"58","display":"ka-Hhohho"},{"code":"59","display":"Lomshiyo"},{"code":"60","display":"Emvembili"},{"code":"61","display":"Kandwandwa"},{"code":"62","display":"Hhelehhele"},{"code":"63","display":"Bulembu (Luhhumaneni 1)"},{"code":"64","display":"Luhhumaneni/kaNdeva"},{"code":"65","display":"Luhlangotsini"},{"code":"66","display":"Piggs Peak"},{"code":"67","display":"Nginamadvolo"},{"code":"68","display":"Nsangwini"},{"code":"69","display":"Siphocosini"},{"code":"70","display":"Sigangeni"},{"code":"71","display":"Luhlendlweni"},{"code":"72","display":"Mantabeni"},{"code":"73","display":"Mashobeni North"},{"code":"74","display":"Mvembili"},{"code":"75","display":"Ludzibini"},{"code":"76","display":"Hhohho"},{"code":"77","display":"Hlane"},{"code":"78","display":"Malindza"},{"code":"79","display":"Mdumezulu"},{"code":"80","display":"Njabulweni"},{"code":"81","display":"Ntandweni (Malindza)"},{"code":"82","display":"Etjedze"},{"code":"83","display":"Sigcaweni West"},{"code":"84","display":"Macetjeni (Mabondvweni)"},{"code":"85","display":"Hlutse"},{"code":"86","display":"Macetjeni"},{"code":"87","display":"Vikizijula"},{"code":"88","display":"Bulunga"},{"code":"89","display":"Lomahasha"},{"code":"90","display":"Shewula"},{"code":"91","display":"kaVuma"},{"code":"92","display":"Canter berry"},{"code":"93","display":"Mabantaneni"},{"code":"94","display":"Ntuthwakazi"},{"code":"95","display":"kaLanga"},{"code":"96","display":"Makhewu"},{"code":"97","display":"Mlindazwe"},{"code":"98","display":"Sitsatsaweni"},{"code":"99","display":"Lukhetseni"},{"code":"100","display":"Mambane"},{"code":"101","display":"Maphungwane"},{"code":"102","display":"Tikhuba"},{"code":"103","display":"Mafucula"},{"code":"104","display":"Mhlume"},{"code":"105","display":"Simunye"},{"code":"106","display":"Tambankulu"},{"code":"107","display":"Tshaneni"},{"code":"108","display":"Vuvulane"},{"code":"109","display":"Tsambokhulu"},{"code":"110","display":"kaShoba"},{"code":"111","display":"Mpolonjeni"},{"code":"112","display":"Ndzangu"},{"code":"113","display":"Ngcina"},{"code":"114","display":"Sigcaweni East"},{"code":"115","display":"Crooks Plantations"},{"code":"116","display":"Gamula"},{"code":"117","display":"Lunkuntfu"},{"code":"118","display":"Nkhanini/Lusabeni"},{"code":"119","display":"Illovo/Mayaluka"},{"code":"120","display":"Phafeni"},{"code":"121","display":"Madlenya"},{"code":"122","display":"Maphilingo"},{"code":"123","display":"kaMkhweli"},{"code":"124","display":"Mphumakudze"},{"code":"125","display":"Nceka"},{"code":"126","display":"Ngevini"},{"code":"127","display":"Tambuti"},{"code":"128","display":"Luhlanyeni"},{"code":"129","display":"Mamisa"},{"code":"130","display":"Nkonjwa"},{"code":"131","display":"Nokwane"},{"code":"132","display":"Nyakeni"},{"code":"133","display":"Nkiliji"},{"code":"134","display":"Bhekinkhosi"},{"code":"135","display":"Nswaceni"},{"code":"136","display":"Mkhulamini"},{"code":"137","display":"Maliyaduma"},{"code":"138","display":"Mbeka"},{"code":"139","display":"Kwaluseni"},{"code":"140","display":"Logoba"},{"code":"141","display":"Mhlane"},{"code":"142","display":"Lamgabhi"},{"code":"143","display":"Dvudvusini"},{"code":"144","display":"Luhleko"},{"code":"145","display":"Emhlangeni"},{"code":"146","display":"Nhlulweni"},{"code":"147","display":"Kufinyeni"},{"code":"148","display":"Luyengo"},{"code":"149","display":"Mahlanya"},{"code":"150","display":"Ngwenyameni"},{"code":"151","display":"Mbekelweni"},{"code":"152","display":"Zombodze"},{"code":"153","display":"Lozitha"},{"code":"154","display":"Nkamanzi"},{"code":"155","display":"Kudzeni"},{"code":"156","display":"Ngculwini"},{"code":"157","display":"Ka-Nkhambule"},{"code":"158","display":"Mafutseni"},{"code":"159","display":"Luhlokohla"},{"code":"160","display":"Timbutini"},{"code":"161","display":"Bhudla"},{"code":"162","display":"Mgomfelweni"},{"code":"163","display":"Luzelweni"},{"code":"164","display":"Mambatfweni"},{"code":"165","display":"Nsangwini"},{"code":"166","display":"Mpolonjeni"},{"code":"167","display":"Ludvondvolweni"},{"code":"168","display":"KaZulu"},{"code":"169","display":"Nciniselweni"},{"code":"170","display":"Ndzeleni"},{"code":"171","display":"Sigcineni "},{"code":"172","display":"Bhahwini"},{"code":"173","display":"Mangcongco/Zenukeni"},{"code":"174","display":"Sandlane/Ekuthuleni"},{"code":"175","display":"Mabhukwini"},{"code":"176","display":"Dwalile"},{"code":"177","display":"Makholweni"},{"code":"178","display":"St Pauls"},{"code":"179","display":"Mnyenyweni"},{"code":"180","display":"Manzini Central"},{"code":"181","display":"Dwaleni"},{"code":"182","display":"Mzimnene"},{"code":"183","display":"Mhobodleni"},{"code":"184","display":"Mjingo "},{"code":"185","display":"Moneni"},{"code":"186","display":"Ticancweni"},{"code":"187","display":"Zakhele"},{"code":"188","display":"Ngwane Park"},{"code":"189","display":"Zondwako"},{"code":"190","display":"Lundzi"},{"code":"191","display":"Dingizwe"},{"code":"192","display":"Mlindazwe"},{"code":"193","display":"Mbangave"},{"code":"194","display":"Bhunya"},{"code":"195","display":"Dvokolwako"},{"code":"196","display":"Mbelebeleni"},{"code":"197","display":"Kutsimuleni"},{"code":"198","display":"Khuphuka"},{"code":"199","display":"Likima"},{"code":"200","display":"Gundvwini"},{"code":"201","display":"Gundvwini/Lesibovu"},{"code":"202","display":"Lwandle"},{"code":"203","display":"Ndlandlameni"},{"code":"204","display":"Hlane/Bulunga"},{"code":"205","display":"Dladleni"},{"code":"206","display":"Ngcoseni"},{"code":"207","display":"Bhadzeni 1"},{"code":"208","display":"Velezizweni"},{"code":"209","display":"Macudvulwini"},{"code":"210","display":"Ngonini"},{"code":"211","display":"Njelu"},{"code":"212","display":"Mphankhomo"},{"code":"213","display":"Masundvwini"},{"code":"214","display":"Sibuyeni"},{"code":"215","display":"Vusweni"},{"code":"216","display":"Sigombeni"},{"code":"217","display":"Ntunja"},{"code":"218","display":"Eni"},{"code":"219","display":"Ngcayini"},{"code":"220","display":"Sankolweni"},{"code":"221","display":"Nsenga"},{"code":"222","display":"Nsingweni"},{"code":"223","display":"Ntondozi"},{"code":"224","display":"Ncabaneni"},{"code":"225","display":"Khalangilile"},{"code":"226","display":"Mphini"},{"code":"227","display":"Ndinda"},{"code":"228","display":"Ndlinilembi"},{"code":"229","display":"Gebeni"},{"code":"230","display":"Mgazini"},{"code":"231","display":"Bhadzeni 2"},{"code":"232","display":"Mahhashini"},{"code":"233","display":"Lushikishini"},{"code":"234","display":"Khabonina"},{"code":"235","display":"Dilini"},{"code":"236","display":"KaDinga"},{"code":"237","display":"kaTsambekwako"},{"code":"238","display":"Mashobeni"},{"code":"239","display":"Mhlahlweni "},{"code":"240","display":"Mlindazwe"},{"code":"241","display":"Nshamanti"},{"code":"242","display":"Nsukazi "},{"code":"243","display":"Sidwala"},{"code":"244","display":"Sisingeni"},{"code":"245","display":"Siyendle"},{"code":"246","display":"Bufaneni"},{"code":"247","display":"Hhohho Emuva"},{"code":"248","display":"kaLiba"},{"code":"249","display":"Lushini"},{"code":"250","display":"Manyiseni"},{"code":"251","display":"Nsingizini"},{"code":"252","display":"Ondiyaneni"},{"code":"253","display":"Ezishineni/ Manyeveni"},{"code":"254","display":"Kaphunga"},{"code":"255","display":"KaNdlovu"},{"code":"256","display":"Ngobelweni"},{"code":"257","display":"Nhlalabantfu"},{"code":"258","display":"KaKholwane"},{"code":"259","display":"kaMbhoke"},{"code":"260","display":"kaGwebu"},{"code":"261","display":"Gasa"},{"code":"262","display":"Khamsile"},{"code":"263","display":"Lomfa"},{"code":"264","display":"Mbabane"},{"code":"265","display":"Mbangweni"},{"code":"266","display":"Nkalaneni"},{"code":"267","display":"Nzameya"},{"code":"268","display":"Nkomonye"},{"code":"269","display":"KaDlovunga "},{"code":"270","display":"KaMzizi"},{"code":"271","display":"Masibini"},{"code":"272","display":"Mbilaneni"},{"code":"273","display":"Simemeni "},{"code":"274","display":"Vusweni"},{"code":"275","display":"Bambitje"},{"code":"276","display":"Dinabanye"},{"code":"277","display":"Kwaluseni"},{"code":"278","display":"Nkonka"},{"code":"279","display":"Nsalitje"},{"code":"280","display":"Qomintaba"},{"code":"281","display":"Benezer"},{"code":"282","display":"Bhanganoma"},{"code":"283","display":"Kwendzeni"},{"code":"284","display":"Magele"},{"code":"285","display":"Zenzile"},{"code":"286","display":"KaMbiko"},{"code":"287","display":"KaMhawu"},{"code":"288","display":"KaMshengu"},{"code":"289","display":"Lusitini"},{"code":"290","display":"Mphini"},{"code":"291","display":"Ndushulweni"},{"code":"292","display":"Nokwane"},{"code":"293","display":"Phobane"},{"code":"294","display":"Buseleni"},{"code":"295","display":"Hlobane"},{"code":"296","display":"Kuphumuleni"},{"code":"297","display":"Nkwene"},{"code":"298","display":"kaGwegwe"},{"code":"299","display":"Ezibondeni/Kashiba"},{"code":"300","display":"Nhletjeni"},{"code":"301","display":"Nkhungwini"},{"code":"302","display":"Ngololweni"},{"code":"303","display":"Dumenkhungwini"},{"code":"304","display":"Eposini"},{"code":"305","display":"Hhuhhuma"},{"code":"306","display":"Mabonabulawe"},{"code":"307","display":"Manyandzeni "},{"code":"308","display":"Mchinsweni "},{"code":"309","display":"Zikhotheni "},{"code":"310","display":"Mahlalini"},{"code":"311","display":"Mbabala"},{"code":"312","display":"Mbeka"},{"code":"313","display":"Makhwelela"},{"code":"314","display":"Mpangisweni"},{"code":"315","display":"Mbangweni"},{"code":"316","display":"Mathendele"},{"code":"317","display":"Mkhitsini"},{"code":"318","display":"Sikhotseni"},{"code":"319","display":"Lulakeni"},{"code":"320","display":"Kuphumleni "},{"code":"321","display":"Ndunayithini"},{"code":"322","display":"Nyatsini"},{"code":"323","display":"Ezindwendweni"},{"code":"324","display":"Luhlekweni"},{"code":"325","display":"Maplotini"},{"code":"326","display":"Ntuthwakazi"},{"code":"327","display":"Nsubane"},{"code":"328","display":"Phangweni"},{"code":"329","display":"Vimbizibuko"},{"code":"330","display":"Bulekeni"},{"code":"331","display":"Mampondweni"},{"code":"332","display":"Ngwenyameni "},{"code":"333","display":"Zombodze "},{"code":"334","display":"Nduma"},{"code":"335","display":"Kupheleni"},{"code":"336","display":"Mpolonjeni"},{"code":"337","display":"Nhlalabantfu"},{"code":"338","display":"Mhlangatane"},{"code":"340","display":"Mhawini"}]},"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzChiefdomVS|0.1.0":{"extends":["https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzChiefdomCS"],"values":[]},"https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEncounterClassificationCS":{"extends":[],"values":[{"code":"OPD","display":"Outpatient Department"},{"code":"IPD","display":"Inpatient Department"},{"code":"CO","display":"Community Outreach"},{"code":"SO","display":"Schools Outreach"}]},"https://hapifhir.eswatinihie.com/fhir/ValueSet/SzEncounterClassificationVS|0.1.0":{"extends":["http://terminology.hl7.org/CodeSystem/v3-ActCode","https://hapifhir.eswatinihie.com/fhir/CodeSystem/SzEncounterClassificationCS"],"values":[]}} \ No newline at end of file diff --git a/packages/http/test/integration.js b/packages/http/test/integration.js index eba584c239..05c6c32266 100644 --- a/packages/http/test/integration.js +++ b/packages/http/test/integration.js @@ -38,7 +38,7 @@ const httpsServer = https.createServer(certOptions || {}, (req, res) => { res.end('Hello, HTTPS World!'); }); -describe('Integration tests', () => { +describe.skip('Integration tests', () => { before(() => { httpServer.listen(port, () => { console.log(`HTTP server is running on http://localhost:${port}/`); @@ -86,7 +86,7 @@ describe('Integration tests', () => { const { data } = await execute( get('/redirect', { headers: { followAllRedirects: true }, - }) + }), )(state); expect(data).to.eql({ ok: true }); @@ -108,7 +108,7 @@ describe('Integration tests', () => { requestCert: false, rejectUnauthorized: true, }, - }) + }), )(state); expect(data).to.eql('Hello, HTTPS World!'); diff --git a/packages/salesforce/CHANGELOG.md b/packages/salesforce/CHANGELOG.md index d938c9bf08..a333134d71 100644 --- a/packages/salesforce/CHANGELOG.md +++ b/packages/salesforce/CHANGELOG.md @@ -1,5 +1,17 @@ # @openfn/language-salesforce +## 6.0.5 + +### Patch Changes + +- Fix hanging connections for oauth clients + +## 6.0.4 + +### Patch Changes + +- 873463a: Fix an issue where salesforce connections can hang indefinitely + ## 6.0.3 ### Patch Changes diff --git a/packages/salesforce/package.json b/packages/salesforce/package.json index df4ee6d511..d1e3313f84 100644 --- a/packages/salesforce/package.json +++ b/packages/salesforce/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-salesforce", - "version": "6.0.3", + "version": "6.0.5", "description": "OpenFn Salesforce adaptor", "homepage": "https://docs.openfn.org", "exports": { diff --git a/packages/salesforce/src/Adaptor.js b/packages/salesforce/src/Adaptor.js index d556c340b7..470045e62e 100644 --- a/packages/salesforce/src/Adaptor.js +++ b/packages/salesforce/src/Adaptor.js @@ -65,6 +65,17 @@ import * as util from './util'; let connection = null; +// Workaround for https://github.com/jsforce/jsforce/issues/1806 +const workaroundBrokenTransport = connection => { + const transport = connection._transport; + const originalHttpRequest = transport.httpRequest.bind(transport); + transport.httpRequest = (req, options) => { + req.headers = { ...req.headers, connection: 'close' }; + return originalHttpRequest(req, options); + }; + return connection; +}; + /** * Creates a connection to Salesforce using Basic Auth or OAuth. * @function connect @@ -83,10 +94,14 @@ const connect = async state => { if (configuration.access_token) { const { instance_url: instanceUrl, access_token: accessToken } = configuration; - connection = new Connection({ instanceUrl, accessToken, version }); + connection = workaroundBrokenTransport( + new Connection({ instanceUrl, accessToken, version }), + ); } else { const { loginUrl, username, password, securityToken } = configuration; - connection = new Connection({ loginUrl, version }); + connection = workaroundBrokenTransport( + new Connection({ loginUrl, version }), + ); console.info(`Attempting Salesforce connection for user: ${username}`); @@ -107,7 +122,7 @@ const connect = async state => { } console.info( - `Successfully connected to Salesforce with ${connection._sessionType} session type` + `Successfully connected to Salesforce with ${connection._sessionType} session type`, ); console.info(`API Version: ${connection.version}`); @@ -136,7 +151,7 @@ export function execute(...operations) { return commonExecute( connect, util.loadAnyAscii, - ...operations + ...operations, )({ ...initialState, ...state, @@ -218,7 +233,7 @@ export function bulk(sObjectName, operation, records, options = {}) { const flatRecords = util.removeNestings(resolvedRecords); if (allowNoOp && flatRecords.length === 0) { console.info( - `No items in ${resolvedSObjectName} array. Skipping bulk ${resolvedOperation} operation.` + `No items in ${resolvedSObjectName} array. Skipping bulk ${resolvedOperation} operation.`, ); return state; } @@ -233,13 +248,13 @@ export function bulk(sObjectName, operation, records, options = {}) { chunkedBatch => new Promise((resolve, reject) => { console.info( - `Creating bulk ${resolvedOperation} job for ${resolvedSObjectName} with ${chunkedBatch.length} records` + `Creating bulk ${resolvedOperation} job for ${resolvedSObjectName} with ${chunkedBatch.length} records`, ); const job = connection.bulk.createJob( resolvedSObjectName, resolvedOperation, - resolvedOptions + resolvedOptions, ); job.on('error', err => reject(err)); @@ -283,8 +298,8 @@ export function bulk(sObjectName, operation, records, options = {}) { resolve(res); } }); - }) - ) + }), + ), ).then(results => { const allResults = util.formatResults(results.flat()); console.log('Merging results arrays.'); @@ -317,7 +332,7 @@ export function bulkQuery(query, options = {}) { const [resolvedQuery, resolvedOptions] = expandReferences( state, query, - options + options, ); if (parseFloat(connection.version) < 47.0) @@ -343,7 +358,7 @@ export function bulkQuery(query, options = {}) { connection, queryJob, pollInterval, - pollTimeout + pollTimeout, ); return composeNextState(state, result); @@ -381,7 +396,7 @@ export function create(sObjectName, records) { const [resolvedSObjectName, resolvedRecords] = expandReferences( state, sObjectName, - records + records, ); util.assertNoNesting(resolvedRecords); console.info(`Creating ${resolvedSObjectName}`, resolvedRecords); @@ -540,7 +555,7 @@ export function query(query, options = {}) { const [resolvedQuery, resolvedOptions] = expandReferences( state, query, - options + options, ); console.log(`Executing query: ${resolvedQuery}`); const autoFetch = resolvedOptions.autoFetch || resolvedOptions.autofetch; @@ -596,7 +611,7 @@ export function query(query, options = {}) { } console.log( - 'Results retrieved and pushed to position [0] of the references array.' + 'Results retrieved and pushed to position [0] of the references array.', ); return composeNextState(state, result); @@ -640,7 +655,7 @@ export function upsert(sObjectName, externalId, records) { `Upserting ${resolvedSObjectName} with externalId`, resolvedExternalId, ':', - resolvedRecords + resolvedRecords, ); return connection @@ -684,7 +699,7 @@ export function update(sObjectName, records) { const [resolvedSObjectName, resolvedRecords] = expandReferences( state, sObjectName, - records + records, ); util.assertNoNesting(resolvedRecords); console.info(`Updating ${resolvedSObjectName}`, resolvedRecords); @@ -720,11 +735,11 @@ export function retrieve(sObjectName, id) { const [resolvedSObjectName, resolvedId] = expandReferences( state, sObjectName, - id + id, ); console.log( - `Retrieving data for sObject '${resolvedSObjectName}' with Id '${resolvedId}'` + `Retrieving data for sObject '${resolvedSObjectName}' with Id '${resolvedId}'`, ); return connection .sobject(resolvedSObjectName) diff --git a/tools/adaptor-apis/.adaptors/asana@5.0.6/package.json b/tools/adaptor-apis/.adaptors/asana@5.0.6/package.json new file mode 100644 index 0000000000..29feed0733 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/asana@5.0.6/package.json @@ -0,0 +1,48 @@ +{ + "name": "@openfn/language-asana", + "version": "5.0.6", + "label": "Asana", + "description": "OpenFn adaptor for accessing objects in Asana", + "homepage": "https://docs.openfn.org", + "repository": { + "type": "git", + "url": "https://github.com/openfn/adaptors.git" + }, + "exports": { + ".": { + "import": "./dist/index.js", + "types": "./types/index.d.ts", + "require": "./dist/index.cjs" + }, + "./package.json": "./package.json" + }, + "scripts": { + "build": "pnpm clean && build-adaptor asana", + "test": "mocha --experimental-specifier-resolution=node --no-warnings --exclude test/integration.js --recursive", + "test:watch": "mocha -w --experimental-specifier-resolution=node --no-warnings --exclude test/integration.js --recursive", + "test:integration": "mocha --experimental-specifier-resolution=node --no-warnings test/integration.js", + "clean": "rimraf dist types docs", + "pack": "pnpm pack --pack-destination ../../dist", + "lint": "eslint src" + }, + "author": "Open Function Group", + "license": "LGPLv3", + "files": [ + "dist/", + "types/", + "ast.json", + "configuration-schema.json" + ], + "dependencies": { + "@openfn/language-common": "workspace:*" + }, + "devDependencies": { + "assertion-error": "2.0.0", + "chai": "^5.2.0", + "deep-eql": "4.1.1", + "rimraf": "3.0.2" + }, + "type": "module", + "types": "types/index.d.ts", + "main": "dist/index.cjs" +} \ No newline at end of file diff --git a/tools/adaptor-apis/.adaptors/asana@5.0.6/src/Adaptor.js b/tools/adaptor-apis/.adaptors/asana@5.0.6/src/Adaptor.js new file mode 100644 index 0000000000..db0a11ed18 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/asana@5.0.6/src/Adaptor.js @@ -0,0 +1,396 @@ +import { + execute as commonExecute, + composeNextState, +} from '@openfn/language-common'; +import { expandReferences } from '@openfn/language-common/util'; +import * as util from './util.js'; + +/** + * Execute a sequence of operations. + * Wraps `language-common/execute`, and prepends initial state for http. + * @example + * execute( + * create('foo'), + * delete('bar') + * )(state) + * @private + * @param {Operations} operations - Operations to be performed. + * @returns {Operation} + */ +export function execute(...operations) { + const initialState = { + references: [], + data: null, + }; + + return state => { + return commonExecute(...operations)({ + ...initialState, + ...state, + }); + }; +} + +/** + * Get a single task of a given project. + * @public + * @example Get a task + * getTask("1206933955023739", { + * opt_fields: "name,notes,assignee", + * }); + * @function + * @param {string} taskGid - Globally unique identifier for the task + * @param {object} params - Query params to include. + * @param {string} params.opt_fields - The fields to return. + * @param {function} callback - (Optional) callback function + * @returns {Operation} + */ +export function getTask(taskGid, params, callback) { + return async state => { + const [resolvedTaskGid, resolvedParams] = expandReferences( + state, + taskGid, + params + ); + const response = await util.request( + state, + `tasks/${resolvedTaskGid}`, + { query: resolvedParams }, + callback + ); + return util.prepareNextState(state, response); + }; +} + +/** + * Get the list of tasks for a given project. + * @public + * @example Get all tasks + * getTasks("1206933955023739", { + * opt_fields: "name,notes,assignee", + * }); + * @example Limit the number of tasks returned + * getTasks("1206933955023739", { + * opt_fields: "name,notes,assignee", + * limit: 100, + * }); + * @function + * @param {string} projectGid - Globally unique identifier for the project + * @param {object} params - Query params to include. + * @param {number} params.limit - The maximum number of tasks to return. + * @param {string} params.opt_fields - The fields to return. + * @param {function} callback - (Optional) callback function + * @returns {Operation} + */ +export function getTasks(projectGid, params, callback) { + return async state => { + const [resolvedProjectGid, resolvedParams] = expandReferences( + state, + projectGid, + params + ); + + const results = await util.requestWithPagination( + state, + `projects/${resolvedProjectGid}/tasks`, + { query: resolvedParams }, + callback + ); + console.log(`Fetched ${results.length} tasks`); + return composeNextState(state, results); + }; +} + +/** + * Update a specific task. + * @public + * @example Update a task + * updateTask("1206933955023739", { + * name: "test", + * approval_status: "pending", + * assignee: "12345", + * }); + * @function + * @param {string} taskGid - Globally unique identifier for the task + * @param {object} data - Body data to update the task with + * @param {function} callback - (Optional) callback function + * @returns {Operation} + */ +export function updateTask(taskGid, data, callback) { + return async state => { + const [resolvedTaskGid, resolvedData] = expandReferences( + state, + taskGid, + data + ); + + const response = await util.request( + state, + `tasks/${resolvedTaskGid}`, + { body: { data: resolvedData }, method: 'PUT' }, + callback + ); + return util.prepareNextState(state, response); + }; +} + +/** + * Create a task. + * @public + * @example + * createTask({ + * name: "test", + * approval_status: "pending", + * assignee: "12345", + * projects: ["1206933955023739"], + * }); + * @function + * @param {object} params - Body parameters + * @param {function} callback - (Optional) callback function + * @returns {Operation} + */ +export function createTask(params, callback) { + return async state => { + const [resolvedParams] = expandReferences(state, params); + + const response = await util.request( + state, + 'tasks', + { body: { data: resolvedParams }, method: 'POST' }, + callback + ); + return util.prepareNextState(state, response); + }; +} + +/** + * Update or create a task. + * @public + * @example Upsert a task + * upsertTask("1201382240880", { + * externalId: "name", + * data: { + * name: "test", + * approval_status: "pending", + * projects: ["1201382240880"], + * assignee: "12345", + * }, + * }); + * @function + * @param {string} projectGid - Globally unique identifier for the project + * @param {object} params - an object with an externalId and some task data. + * @param {string} params.externalId - The external id field name + * @param {object} params.data - The data to upsert. + * @param {function} callback - (Optional) callback function + * @returns {Operation} + */ +export function upsertTask(projectGid, params, callback) { + return state => { + const [resolvedProjectGid, { externalId, data }] = expandReferences( + state, + projectGid, + params + ); + + return util + .requestWithPagination(state, `projects/${resolvedProjectGid}/tasks`, { + query: { opt_fields: `${externalId}` }, + }) + .then(next => { + const matchingTask = next.find( + task => task[externalId] === data[externalId] + ); + if (matchingTask) { + console.log('Matching task found. Performing update.'); + console.log('Data to update', data); + // projects and workspace ids should not be included to update + const { projects, workspace, ...remainingData } = data; + return updateTask(matchingTask.gid, remainingData, callback)(state); + } else { + console.log('No matching task found. Performing create.'); + return createTask(data, callback)(state); + } + }); + }; +} + +/** + * Search for tasks in a workspace by task name. + * @public + * @example Search for a task by name + * searchTask("Test Search Task", { + * sort_by: "modified_at" + * }); + * @example Search for a task by custom field only + * searchTask("", { + * "custom_fields.12345.value": $.data.custom_field_value, + * }); + * @example Search for a task by name and custom field + * searchTask("Test Search Task", { + * "custom_fields.12345.is_set": true, + * }); + * @example Search for a milestone by name + * searchTask("Test Search Task", { + * resource_subtype: "milestone", + * }); + * @function + * @param {string} task - The text or name of the task to search for. + * @param {object} [query] - Query params. See {@link https://developers.asana.com/reference/searchtasksforworkspace Docs} for a list of valid parameters. + * @param {string} [query.resource_subtype = default_task] - The resource subtype to search for. Must be either `"default_task"` or `"milestone"`. Defaults to `"default_task"`. + * @param {object} [options] - (Optional) options argument. + * @param {string} [options.workspaceGid] - The workspace to search in. Defaults to the workspace specified in the configuration. + * @returns {Operation} An operation that, when executed, returns the search results in state.data. + */ +export function searchTask(task, query = {}, options = {}) { + return async state => { + const [resolvedTask, resolvedQuery, resolvedOptions] = expandReferences( + state, + task, + query, + options + ); + const { workspaceGid = state.configuration.workspaceGid } = resolvedOptions; + const { resource_subtype = 'default_task', ...restQuery } = resolvedQuery; + + if (!workspaceGid) throw new Error('You need to specify Workspace GID'); + + const response = await util.request( + state, + `workspaces/${workspaceGid}/tasks/search`, + { + query: { + resource_subtype, + text: resolvedTask, + ...restQuery, + }, + } + ); + + return util.prepareNextState(state, response); + }; +} + +/** + * Options provided to the createTaskStory request + * @typedef {Object} StoryOptions + * @public + * @property {string} text - The plain text of the comment to add. Cannot be used with html_text. + * @property {string} html_text - Opt In. HTML formatted text for a comment. This will not include the name of the creator. + * @property {boolean} is_pinned - Default to `false`. Whether the story should be pinned on the resource. + * @property {string} sticker_name - The name of the sticker in this story. `null` if there is no sticker. + * @property {array} opt_fields - Opt In. This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include. + * @property {boolean} opt_pretty - Defaults to `false`. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. + */ + +/** + * Create a story to a specific task. + * @public + * @example Create a plain text comment + * createTaskStory("1206933955023739", { + * text: "This is a comment", + * }); + * @example Create a HTML formatted text comment + * createTaskStory("1206933955023739", { + * html_text: "This is a comment", + * }); + * @function + * @param {string} taskGid - Globally unique identifier for the task + * @param {StoryOptions} params - Story parameters + * @param {function} callback - (Optional) callback function + * @returns {Operation} + */ +export function createTaskStory(taskGid, params, callback) { + return async state => { + const [ + resolvedTaskGid, + { + text, + html_text, + sticker_name, + is_pinned = false, + opt_pretty = false, + opt_fields = [], + }, + ] = expandReferences(state, taskGid, params); + + const story = { text, html_text, is_pinned, sticker_name }; + const response = await util.request( + state, + `tasks/${resolvedTaskGid}/stories`, + { + body: { data: story }, + query: { opt_fields, opt_pretty }, + method: 'POST', + }, + callback + ); + return util.prepareNextState(state, response); + }; +} + +/** + * Options provided to the Asana API request + * @typedef {Object} RequestOptions + * @public + * @property {object} body - Body data to append to the request. + * @property {object} query - An object of query parameters to be encoded into the URL. + * @property {string} method - The HTTP method to use. Defaults to `GET` + */ + +/** + * Make a HTTP request against the Asana API. + * @public + * @example Get a task by id + * request("/tasks/1234"); + * @example Query for tasks in a given project + * request("/tasks", { + * query: { project: "abc" }, + * }); + * @example Create a new task + * request("/tasks", { + * method: "POST", + * body: { data: { name: "do the thing", completed: false } }, + * }); + * @function + * @param {string} path - Path to resource (excluding api/version) + * @param {RequestOptions} params - (Optional) Query, body and method parameters + * @param {function} callback - (Optional) Callback function + * @returns {Operation} + */ +export function request(path, params = {}, callback) { + return async state => { + const [resolvedPath, resolvedParams] = expandReferences( + state, + path, + params + ); + + const { body, query, method } = resolvedParams; + + const response = await util.request( + state, + resolvedPath, + { method, body, query }, + callback + ); + + return util.prepareNextState(state, response); + }; +} + +export { + alterState, + cursor, + dataPath, + dataValue, + dateFns, + each, + field, + fields, + fn, + fnIf, + lastReferenceValue, + merge, + sourceValue, + as, +} from '@openfn/language-common'; diff --git a/tools/adaptor-apis/.adaptors/asana@5.0.6/src/index.js b/tools/adaptor-apis/.adaptors/asana@5.0.6/src/index.js new file mode 100644 index 0000000000..dcf63cda34 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/asana@5.0.6/src/index.js @@ -0,0 +1,4 @@ +import * as Adaptor from './Adaptor.js'; +export default Adaptor; + +export * from './Adaptor.js'; diff --git a/tools/adaptor-apis/.adaptors/asana@5.0.6/src/util.js b/tools/adaptor-apis/.adaptors/asana@5.0.6/src/util.js new file mode 100644 index 0000000000..b4a0bfede5 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/asana@5.0.6/src/util.js @@ -0,0 +1,88 @@ +import { + request as commonRequest, + logResponse, + assertRelativeUrl, +} from '@openfn/language-common/util'; +import { join } from 'node:path'; +import { composeNextState } from '@openfn/language-common'; + +const baseUrl = 'https://app.asana.com'; + +export function addAuth(headers, token) { + if (token) { + Object.assign(headers, { Authorization: `Bearer ${token}` }); + } +} + +export function request(state, path, params = {}, callback = s => s) { + assertRelativeUrl(path); + const { token, apiVersion = '1.0' } = state.configuration ?? {}; + const currentPath = join('/api', apiVersion, path); + + const { + method = 'GET', + headers = { accept: 'application/json' }, + ...rest + } = params; + + addAuth(headers, token); + + const options = { + ...rest, + headers, + baseUrl, // https://app.asana.com + parseAs: 'json', + }; + + return commonRequest(method, currentPath, options) + .then(logResponse) + .then(callback) + .catch(err => { + if (err.code !== 'BASE_URL_MISMATCH') { + console.log('Asana says:'); + logResponse(err); + } + throw err; + }); +} + +export const DEFAULT_PAGE_LIMIT = 1e2; // Asana API has a maximum limit of 100 +export async function requestWithPagination(state, path, params = {}) { + let { body, headers, query = {}, ...rest } = params; + const { limit, ...restQuery } = query; + + const options = { + ...rest, + headers, + body, + query: { limit: limit ?? DEFAULT_PAGE_LIMIT, ...restQuery }, + }; + const results = []; + const didUserPassLimit = Boolean(limit); + let shouldFetchNextPage = false; + let currentPath = path; + + do { + const response = await request(state, currentPath, options); + results.push(...response?.body?.data); + + const nextPage = response?.body?.next_page; + const hasNextPage = nextPage?.path && nextPage?.offset !== undefined; + + shouldFetchNextPage = !didUserPassLimit && hasNextPage; + if (shouldFetchNextPage) { + currentPath = nextPage.path; + } + } while (shouldFetchNextPage); + + return results; +} + +export function prepareNextState(state, response) { + const { body, ...responseWithoutBody } = response; + const { data, next_page } = body ?? {}; + return { + ...composeNextState(state, data), + response: { next_page, ...responseWithoutBody }, + }; +} diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/build.config.js b/tools/adaptor-apis/.adaptors/common@3.2.0/build.config.js new file mode 100644 index 0000000000..645d6451da --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/build.config.js @@ -0,0 +1,8 @@ +// override build config with an extra entry point +export default path => ({ + entry: { + index: `${path}/src/index.js`, + metadata: `${path}/src/metadata.js`, + util: `${path}/src/util/index.js`, + }, +}); diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/package.json b/tools/adaptor-apis/.adaptors/common@3.2.0/package.json new file mode 100644 index 0000000000..58f2564836 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/package.json @@ -0,0 +1,65 @@ +{ + "name": "@openfn/language-common", + "label": "Common", + "version": "3.2.0", + "description": "Common Expressions for OpenFn", + "homepage": "https://docs.openfn.org", + "repository": { + "type": "git", + "url": "https://github.com/openfn/adaptors.git" + }, + "scripts": { + "build": "pnpm clean && build-adaptor common", + "test": "mocha --experimental-specifier-resolution=node --no-warnings --recursive", + "test:watch": "mocha -w --experimental-specifier-resolution=node --no-warnings --recursive", + "clean": "rimraf dist types docs", + "pack": "pnpm pack --pack-destination ../../dist", + "lint": "eslint src" + }, + "exports": { + ".": { + "import": "./dist/index.js", + "types": "./types/index.d.ts", + "require": "./dist/index.cjs" + }, + "./package.json": "./package.json", + "./metadata": { + "import": "./dist/metadata.js", + "require": "./dist/metadata.cjs" + }, + "./util": { + "import": "./dist/util.js", + "require": "./dist/util.cjs" + } + }, + "author": "Open Function Group", + "license": "LGPL-3.0-or-later", + "files": [ + "dist/", + "types/", + "ast.json", + "configuration-schema.json" + ], + "type": "module", + "types": "types/index.d.ts", + "dependencies": { + "ajv": "^8.12.0", + "csv-parse": "^5.4.0", + "csvtojson": "^2.0.10", + "date-fns": "^2.25.0", + "http-status-codes": "^2.3.0", + "jsonpath-plus": "^10.3.0", + "lodash": "^4.17.21", + "undici": "^7.15.0" + }, + "devDependencies": { + "chai": "4.3.6", + "deep-eql": "4.1.1", + "koa": "^3.0.3", + "koa-compress": "^5.1.1", + "nock": "13.2.9", + "rimraf": "^3.0.2", + "zlib": "^1.0.5" + }, + "main": "dist/index.cjs" +} diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/Adaptor.js b/tools/adaptor-apis/.adaptors/common@3.2.0/src/Adaptor.js new file mode 100644 index 0000000000..c2e6a8dd4b --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/Adaptor.js @@ -0,0 +1,1000 @@ +import { JSONPath } from 'jsonpath-plus'; +import { parse } from 'csv-parse'; +import { Readable } from 'node:stream'; + +import { request } from 'undici'; +import dateFns from 'date-fns'; +import _ from 'lodash'; + +import { expandReferences, parseDate } from './util/index.js'; + +const schemaCache = {}; + +/** + * Lodash utility library. + * All lodash v4.17 functions are available on the `_` namespace, eg, + * `_.map`, `_.cloneDeep`, etc. + * + * @see https://lodash.com/docs/ + * @public + * @function + * @alias lodash + * @example Split an array into chunks of 2 items each + * fn(state => { + * const items = [1, 2, 3, 4, 5]; + * const chunks = lodash.chunk(items, 2); + * return { ...state, chunks }; + * }); + */ +export { _ }; + +/** + * Execute a sequence of operations. + * Main outer API for executing expressions. + * @public + * @example + * execute( + * create('foo'), + * delete('bar') + * ) + * @private + * @param {Operations} operations - Operations to be performed. + * @returns {Promise} + */ +export function execute(...operations) { + return state => { + const start = Promise.resolve(state); + + return operations.reduce((acc, operation) => { + return acc.then(operation); + }, start); + }; +} + +/** + * alias for "fn()" + * @function + * @param {Function} func is the function + * @returns {Operation} + */ +export function alterState(func) { + return fn(func); +} + +/** + * Creates a custom step (or operation) for more flexible job writing. + * @public + * @function + * @example + * fn(state => { + * // do some things to state + * return state; + * }); + * @param {Function} func is the function + * @returns {Operation} + */ +export function fn(func) { + return state => { + return func(state); + }; +} + +/** + * Execute a function only when the condition returns true + * @public + * @function + * @example + * fnIf((state) => state?.data?.name, get("https://example.com")); + * @param {Boolean} condition - The condition that returns true + * @param {Operation} operation - The operation needed to be executed. + * @returns {Operation} + */ +export function fnIf(condition, operation) { + return state => { + const [resolvedCondition] = expandReferences(state, condition); + + return resolvedCondition ? operation(state) : state; + }; +} + +/** + * Picks out a single value from a JSON object. + * If a JSONPath returns more than one value for the reference, the first + * item will be returned. + * @public + * @function + * @example + * jsonValue({ a:1 }, 'a') + * @param {object} obj - A valid JSON object. + * @param {String} path - JSONPath referencing a point in given JSON object. + * @returns {Operation} + */ +export function jsonValue(obj, path) { + return JSONPath({ path, json: obj })[0]; +} + +/** + * Picks out a single value from source data. + * If a JSONPath returns more than one value for the reference, the first + * item will be returned. + * @public + * @function + * @example + * sourceValue('$.key') + * @param {String} path - JSONPath referencing a point in `state`. + * @returns {Operation} + */ +export function sourceValue(path) { + return state => { + return JSONPath({ path, json: state })[0]; + }; +} + +/** + * Picks out a value from source data. + * Will return whatever JSONPath returns, which will always be an array. + * If you need a single value use `sourceValue` instead. + * @public + * @function + * @example + * source('$.key') + * @param {String} path - JSONPath referencing a point in `state`. + * @returns {Array.} + */ +export function source(path) { + return state => { + return JSONPath({ path, json: state }); + }; +} + +/** + * Ensures a path points at the data. + * @public + * @function + * @example + * dataPath('key') + * @param {string} path - JSONPath referencing a point in `data`. + * @returns {string} + */ +export function dataPath(path) { + // Remove prepending `$.`, `$` or `.`, in order to ensure the root of the + // path starts with `$.data.` + const cleanPath = path.match(/^[\$\.]*(.+)/)[1]; + return '$.data.'.concat(cleanPath); +} + +/** + * Picks out a single value from the source data object—usually `state.data`. + * If a JSONPath returns more than one value for the reference, the first + * item will be returned. + * @public + * @function + * @example + * dataValue('key') + * @param {String} path - JSONPath referencing a point in `data`. + * @returns {Operation} + */ +export function dataValue(path) { + return sourceValue(dataPath(path)); +} + +/** + * Ensures a path points at references. + * @public + * @function + * @example + * referencePath('key') + * @param {string} path - JSONPath referencing a point in `references`. + * @returns {string} + */ +export function referencePath(path) { + // Remove prepending `$.`, `$` or `.`, in order to ensure the root of the + // path starts with `$.data.` + const cleanPath = path.match(/^[\$\.]*(.+)/)[1]; + return '$.references'.concat(cleanPath); +} + +/** + * Picks out the last reference value from source data. + * @public + * @function + * @example + * lastReferenceValue('key') + * @param {String} path - JSONPath referencing a point in `references`. + * @returns {Operation} + */ +export function lastReferenceValue(path) { + const lastReferencePath = referencePath('[0]'.concat('.', path)); + + return sourceValue(lastReferencePath); +} + +/** + * Iterates over a collection of items and returns a new array of mapped values, + * like Javascript's `Array.map()` function. + * + * Each item in the source array will be passed into the callback function. The returned value + * will be added to the new array. The callback is passed the original item, the current index + * in the source array (ie, the nth item number), and the state object. + * + * Writes a new array to `state.data` with transformed values.c array. + * @public + * @function + * @example Transform an array of items in state + * map($.items', (data, index, state) => { + * return { + * id: index + 1, + * name: data.name, + * createdAt: state.cursor, + * }; + * }); + * @example Map items asynchronously (e.g. fetch extra info) + * map($.items, async (data, index, state) => { + * const userInfo = await fetchUserInfo(data.userId); + * return { + * id: index + 1, + * name: data.name, + * extra: userInfo, + * }; + * }); + * @param {string|Array} path - An array of items or a a JSONPath string which points to an array of items. + * @param {function} callback - The mapping function, invoked with `(data, index, state)` for each item in the array. + * @returns {State} + */ +export const map = function (path, callback) { + return async state => { + const results = []; + const values = typeof path === 'string' ? source(path)(state) : path; + + let index = 0; + for (const item of values) { + const value = await callback(item, index++, state); + results.push(value); + } + + return { ...state, data: results }; + }; +}; + +/** + * Simple switcher allowing other expressions to use either a JSONPath or + * object literals as a data source. + * - JSONPath referencing a point in `state` + * - Object Literal of the data itself. + * - Function to be called with state. + * @public + * @function + * @example + * asData('$.key'| key | callback) + * @param {String|object|function} data + * @param {object} state - The current state. + * @returns {array} + */ +export function asData(data, state) { + switch (typeof data) { + case 'string': + return source(data)(state); + case 'object': + return data; + case 'function': + return data(state); + } +} + +/** + * Iterates over an array of items and invokes an operation upon each one, where the state + * object is _scoped_ so that state.data is the item under iteration. + * The rest of the state object is untouched and can be referenced as usual. + * You can pass an array directly, or use lazy state or a JSONPath string to + * reference a slice of state. + * @public + * @function + * @example Using lazy state ($) to iterate over items in state.data and pass each into an "insert" operation + * each( + * $.data, + * // Inside the callback operation, `$.data` is scoped to the item under iteration + * insert("patient", { + * patient_name: $.data.properties.case_name, + * patient_id: $.data.case_id, + * }) + * ); + * @example Iterate over items in state.data and pass each one into an "insert" operation + * each( + * $.data, + * insert("patient", (state) => ({ + * patient_id: state.data.case_id, + * ...state.data + * })) + * ); + * @example Using JSON path to iterate over items in state.data and pass each one into an "insert" operation + * each( + * "$.data[*]", + * insert("patient", (state) => ({ + * patient_name: state.data.properties.case_name, + * patient_id: state.data.case_id, + * })) + * ); + * @param {DataSource} dataSource - JSONPath referencing a point in `state`. + * @param {Operation} operation - The operation needed to be repeated. + * @returns {Operation} + */ +export function each(dataSource, operation) { + if (!dataSource) { + throw new TypeError('dataSource argument for each operation is invalid.'); + } + + return state => { + return asData(dataSource, state).reduce((state, data, index) => { + if (state.then) { + return state.then(state => { + return operation({ ...state, data, index }); + }); + } else { + return operation({ ...state, data, index }); + } + }, state); + }; +} + +/** + * Combines two operations into one + * @public + * @function + * @example + * combine( + * create('foo'), + * delete('bar') + * ) + * @param {Operations} operations - Operations to be performed. + * @returns {Operation} + */ +export function combine(...operations) { + return state => { + return operations.reduce((state, operation) => { + if (state.then) { + return state.then(state => { + return { ...state, ...operation(state) }; + }); + } else { + return { ...state, ...operation(state) }; + } + }, state); + }; +} + +/** + * Adds data from a target object + * @public + * @function + * @example + * join('$.key','$.data','newKey') + * @param {String} targetPath - Target path + * @param {String} sourcePath - Source path + * @param {String} targetKey - Target Key + * @returns {Operation} + */ +export function join(targetPath, sourcePath, targetKey) { + return state => { + return source(targetPath)(state).map(i => { + return { [targetKey]: sourceValue(sourcePath)(state), ...i }; + }); + }; +} + +/** + * Returns a key, value pair in an array. + * @public + * @function + * @example + * field('destination_field_name__c', 'value') + * @param {string} key - Name of the field + * @param {Value} value - The value itself or a sourceable operation. + * @returns {Field} + */ +export function field(key, value) { + return [key, value]; +} + +/** + * Zips key value pairs into an object. + * @public + * @function + * @example + * fields(list_of_fields) + * @param {Fields} fields - a list of fields + * @returns {Object} + */ +export function fields(...fields) { + return _.fromPairs(fields); +} + +/** + * Merges fields into each item in an array. + * @public + * @example + * merge( + * "$.books[*]", + * fields( + * field( "publisher", sourceValue("$.publisher") ) + * ) + * ) + * @function + * @public + * @param {DataSource} dataSource + * @param {Object} fields - Group of fields to merge in. + * @returns {DataSource} + */ +export function merge(dataSource, fields) { + return state => { + const initialData = source(dataSource)(state); + const [additionalData] = expandReferences(state, fields); + + return initialData.reduce((acc, dataItem) => { + return [...acc, { ...dataItem, ...additionalData }]; + }, []); + }; +} + +/** + * Groups an array of objects by a specified key path. + * @public + * @example + * const users = [ + * { name: 'Alice', age: 25, city: 'New York' }, + * { name: 'Bob', age: 30, city: 'San Francisco' }, + * { name: 'Charlie', age: 25, city: 'New York' }, + * { name: 'David', age: 30, city: 'San Francisco' } + * ]; + * group(users, 'city'); + * // state is { data: { 'New York': [/Alice, Charlie/], 'San Francisco': [ /Bob, David / ] } + * @function + * @public + * @param {Object[]} arrayOfObjects - The array of objects to be grouped. + * @param {string} keyPath - The key path to group by. + * @param {function} callback - (Optional) Callback function + * @returns {Operation} + */ +export function group(arrayOfObjects, keyPath, callback = s => s) { + return state => { + const [resolvedArray, resolvedKeyPath] = expandReferences( + state, + arrayOfObjects, + keyPath + ); + const results = _.groupBy(resolvedArray, item => + _.get(item, resolvedKeyPath) + ); + return callback({ ...state, data: _.omit(results, [undefined]) }); + }; +} + +/** + * Returns the index of the current array being iterated. + * To be used with `each` as a data source. + * @public + * @function + * @example + * index() + * @returns {DataSource} + */ +export function index() { + return state => { + return state.index; + }; +} + +/** + * Turns an array into a string, separated by X. + * @public + * @function + * @example + * field("destination_string__c", function(state) { + * return arrayToString(dataValue("path_of_array")(state), ', ') + * }) + * @param {array} arr - Array of toString'able primatives. + * @param {string} separator - Separator string. + * @returns {string} + */ +export function arrayToString(arr, separator) { + return Array.apply(null, arr).join(separator); +} + +/** + * Ensures primitive data types are wrapped in an array. + * Does not affect array objects. + * @public + * @function + * @example + * each(function(state) { + * return toArray( dataValue("path_of_array")(state) ) + * }, ...) + * @param {any} arg - Data required to be in an array + * @returns {array} + */ +export function toArray(arg) { + return new Array().concat(arg); +} + +/** + * Prepares next state + * @public + * @function + * @example + * composeNextState(state, response) + * @param {State} state - state + * @param {Object} response - Response to be added + * @returns {State} + */ +export function composeNextState(state, response) { + if (!state.references) { + state.references = []; + } + return { + ...state, + data: response, + references: [...state.references, state.data], + }; +} + +/** + * Substitutes underscores for spaces and proper-cases a string + * @public + * @function + * @example + * field("destination_string__c", humanProper(state.data.path_to_string)) + * @param {string} str - String that needs converting + * @returns {string} + */ +export function humanProper(str) { + if (typeof str == 'string') { + return str.replace(/[_-]/g, ' ').replace(/\w\S*/g, function (txt) { + return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); + }); + } else { + return str; + } +} + +/** + * Splits an object into two objects based on a list of keys. + * The first object contains the keys that are not in the list, + * and the second contains the keys that are. + * @public + * @function + * @param {Object} obj - The object to split. + * @param {string[]} keys - List of keys to split on. + * @returns {Object[]} - Tuple of objects, first object contains keys not in list, second contains keys that are. + */ +export function splitKeys(obj, keys) { + return Object.keys(obj).reduce( + ([keep, split], key) => { + const value = obj[key]; + + if (keys.includes(key)) { + return [keep, { ...split, [key]: value }]; + } + + return [{ ...keep, [key]: value }, split]; + }, + [{}, {}] + ); +} + +/** + * Replaces emojis in a string. + * @public + * @function + * @example + * scrubEmojis('Dove🕊️⭐ 29') + * @param {string} text - String that needs to be cleaned + * @param {string} replacementChars - Characters that replace the emojis + * @returns {string} + */ +export function scrubEmojis(text, replacementChars) { + if (!text) return text; + + if (replacementChars == '') { + console.warn( + 'Removing characters from a string may create injection vulnerabilities;', + "It's better to replace than remove.", + 'See https://www.unicode.org/reports/tr36/#Deletion_of_Noncharacters' + ); + } + + const newChars = + replacementChars || replacementChars == '' ? replacementChars : '\uFFFD'; + + const emojisPattern = + /(\uFE0F|\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g; + + return text.replace(emojisPattern, newChars); +} + +/** + * Chunks an array into an array of arrays, each with no more than a certain size. + * @public + * @function + * @example + * chunk([1,2,3,4,5], 2) + * @param {Object} array - Array to be chunked + * @param {Integer} chunkSize - The maxiumum size of each chunks + * @returns {Object} + */ +export function chunk(array, chunkSize) { + const output = []; + for (var i = 0, len = array.length; i < len; i += chunkSize) + output.push(array.slice(i, i + chunkSize)); + return output; +} + +const getParser = (csvData, options) => { + if (typeof csvData === 'string') { + return parse(csvData, options); + } + + let stream = csvData; + if (csvData instanceof ReadableStream) { + stream = Readable.from(csvData); + } + return stream.pipe(parse(options)); +}; + +/** + * Takes a CSV file string or stream and parsing options as input, and returns a promise that + * resolves to the parsed CSV data as an array of objects. + * Options for `parsingOptions` include: + * - `delimiter` {string/Buffer/[string/Buffer]} - Defines the character(s) used to delineate the fields inside a record. Default: `','` + * - `quote` {string/Buffer/[string/Buffer]} - Defines the characters used to surround a field. Default: `'"'` + * - `escape` {Buffer/string/null/boolean} - Set the escape character as one character/byte only. Default: `"` + * - `columns` {boolean / array / function} - Generates record in the form of object literals. Default: `true` + * - `bom` {boolean} - Strips the {@link https://en.wikipedia.org/wiki/Byte_order_mark byte order mark (BOM)} from the input string or buffer. Default: `true` + * - `trim` {boolean} - Ignore whitespace characters immediately around the `delimiter`. Default: `true` + * - `ltrim` {boolean} - Ignore whitespace characters from the left side of a CSV field. Default: `true` + * - `rtrim` {boolean} - Ignore whitespace characters from the right side of a CSV field. Default: `true` + * - `chunkSize` {number} - The size of each chunk of CSV data. Default: `Infinity` + * - `skip_empty_lines` {boolean} - Ignore empty lines in the CSV file. Default: `true` + * @public + * @function + * @param {String | Stream} csvData - A CSV string or a readable stream + * @param {Object} [parsingOptions] - Optional. Parsing options for converting CSV to JSON. + * @param {function} [callback] - (Optional) callback function. If used it will be called state and an array of rows. + * @returns {Operation} The function returns a Promise that resolves to the result of parsing a CSV `stringOrStream`. + */ +export function parseCsv(csvData, parsingOptions = {}, callback) { + const defaultOptions = { + delimiter: ',', + quote: '"', + escape: '"', + columns: true, + bom: true, + trim: true, + ltrim: true, + rtrim: true, + chunkSize: Infinity, + skip_empty_lines: true, + }; + + return async state => { + const [resolvedCsvData, resolvedParsingOptions] = expandReferences( + state, + csvData, + parsingOptions + ); + + const filteredOptions = Object.fromEntries( + Object.entries(resolvedParsingOptions).filter( + ([key]) => key in defaultOptions + ) + ); + + const options = { ...defaultOptions, ...filteredOptions }; + + if (options.chunkSize < 1) { + throw new Error('chunkSize must be at least 1'); + } + + let buffer = []; + + const parser = getParser(resolvedCsvData, options); + + const flushBuffer = async currentState => { + const nextState = callback + ? await callback(currentState, buffer) + : composeNextState(currentState, buffer); + + buffer = []; + + return [nextState, buffer]; + }; + + let result = state; + for await (const record of parser) { + buffer.push(record); + if (buffer.length === options.chunkSize) { + const [nextState, nextBuffer] = await flushBuffer(result); + result = nextState; + buffer = nextBuffer; + } + } + if (buffer.length) { + [result] = await flushBuffer(result); + } + return result; + }; +} + +const ajvVersions = {}; + +// We need to import different versions of AJV depending on the schema +// version - which is handled by this function +const getAjvVersion = async schema => { + if (/^https?:\/\/json-schema.org\/draft\/2019/.test(schema)) { + if (!ajvVersions['2019']) { + const Ajv = (await import('ajv/dist/2019.js')).default; + ajvVersions['2019'] = new Ajv(); + } + return ajvVersions['2019']; + } + if (/^https?:\/\/json-schema.org\/draft\/2020/.test(schema)) { + if (!ajvVersions['2020']) { + const Ajv = (await import('ajv/dist/2020.js')).default; + ajvVersions['2020'] = new Ajv(); + } + return ajvVersions['2020']; + } + + if (!ajvVersions['default']) { + const Ajv = (await import('ajv')).default; + ajvVersions['default'] = new Ajv(); + } + + return ajvVersions['default']; +}; + +/** + * Validate against a JSON schema. Any erors are written to an array at `state.validationErrors`. + * Schema can be passed directly, loaded as a JSON path from state, or loaded from a URL + * Data can be passed directly or loaded as a JSON path from state. + * By default, schema is loaded from `state.schema` and data from `state.data`. + * @pubic + * @function + * @param {string|object} schema - The schema, path or URL to validate against + * @param {string|object} data - The data or path to validate + * @example Validate `state.data` with `state.schema` + * validate() + * @example Validate form data at `state.form` with a schema from a URL + * validate("https://www.example.com/schema/record", "form") + * @example Validate the each item in `state.records` with a schema from a URL + * each("records[*]", validate("https://www.example.com/schema/record")) + * @returns {Operation} + */ +export function validate(schema = 'schema', data = 'data') { + return async state => { + if (!state.validationErrors) { + state.validationErrors = []; + } + + const resolvedData = resolveData(); + const resolvedSchema = await resolveSchema(); + // TODO: warn if the schema doesn't have an id? Does it matter? Maybe, if you're using multiple id-less schemas + const schemaId = resolvedSchema.$id || 'schema'; + if (!schemaCache[schemaId]) { + const ajv = await getAjvVersion(resolvedSchema.$schema); + schemaCache[schemaId] = ajv.compile(resolvedSchema); + } + + const validate = schemaCache[schemaId]; + + if (!validate(resolvedData)) { + state.validationErrors.push({ + data: state.data, + errors: validate.errors, + }); + } + return state; + + // Schema can be a url, jsonpath or object; or a function resolving to any of these + async function resolveSchema() { + // TODO hmm, I don't really want to expand schema if it's an object + const [schemaOrUrl] = expandReferences(state, schema); + + if (typeof schemaOrUrl === 'string') { + try { + // Check if the schema is a URL - in which case we fetch it + const url = new URL(schemaOrUrl); + const response = await request(url); + return response.body.json(); + } catch (e) { + if (e instanceof TypeError) { + // URL throws a TypeError if it's not a valid url, so we'll treat the string as a json path instead + return JSONPath({ path: schemaOrUrl, json: state })[0]; + } else { + // error fetching the url + console.error('Error fetching schema from ', schemaOrUrl); + console.error(e); + } + } + } + // schema is an object + return schemaOrUrl; + } + + // data can be a jsonpath or object; or function resolving to any of these + function resolveData() { + const [d] = expandReferences(state, data); + + if (typeof d === 'string') { + return JSONPath({ path: d, json: state })[0]; + } + return d; + } + }; +} + +let cursorStart = undefined; +let cursorKey = 'cursor'; + +/** + * Sets a cursor property on state. + * Supports natural language dates like `now`, `today`, `yesterday`, `n hours ago`, `n days ago`, and `start`, + * which will be converted relative to the environment (ie, the Lightning or CLI locale). Custom timezones + * are not yet supported. + * You can provide a formatter to customise the final cursor value, which is useful for normalising + * different inputs. The custom formatter runs after natural language date conversion. + * See the usage guide at {@link https://docs.openfn.org/documentation/jobs/job-writing-guide#using-cursors} + * @public + * @function + * @example Use a cursor from state if present, or else use the default value + * cursor($.cursor, { defaultValue: 'today' }) + * @example Use a pagination cursor + * cursor(22) + * @param {any} value - the cursor value. Usually an ISO date, natural language date, or page number + * @param {object} options - options to control the cursor. + * @param {string} options.key - set the cursor key. Will persist through the whole run. + * @param {any} options.defaultValue - the value to use if value is falsy + * @param {Function} options.format - custom formatter for the final cursor value + * @returns {Operation} + */ +export function cursor(value, options = {}) { + return state => { + const { format, ...optionsWithoutFormat } = options; + const [resolvedValue, resolvedOptions] = expandReferences( + state, + value, + optionsWithoutFormat + ); + + const { + defaultValue, // if there is no cursor on state, this will be used + key, // the key to use on state + // format // pulled out before reference resolution else or it'll be treated as a ref! + } = resolvedOptions; + + if (key) { + cursorKey = key; + } + + if (!cursorStart) { + cursorStart = new Date(); + } + + const cursor = resolvedValue ?? defaultValue; + if (typeof cursor === 'string') { + const date = parseDate(cursor, cursorStart); + if (date instanceof Date && date.toString !== 'Invalid Date') { + state[cursorKey] = format?.(date) ?? date.toISOString(); + + const formatted = format + ? state[cursorKey] + : // If no custom formatter is provided, + // Log the converted date in a very international, human-friendly format + // See https://date-fns.org/v3.6.0/docs/format + dateFns.format(date, 'HH:MM d MMM yyyy (OOO)'); + + console.log(`Setting ${cursorKey} "${cursor}" to: ${formatted}`); + return state; + } + } + state[cursorKey] = format?.(cursor) ?? cursor; + console.log(`Setting ${cursorKey} to:`, state[cursorKey]); + + return state; + }; +} + +/** + * Asserts the given expression or function resolves to `true`, or else throws an exception. Optionally accepts and error message. + * @public + * @function + * @example + * assert('a' === 'b', '"a" is not equal to "b"') + * @param {any} expression - The expression or function to be evaluated. + * @param {string} errorMessage - The error message thrown in case of a failed state. + * @returns {operation} + */ +export function assert(expression, errorMessage) { + return state => { + const [resolvedValue, resolvedErrorMessage] = expandReferences( + state, + expression, + errorMessage + ); + + if (!resolvedValue) { + throw new Error( + resolvedErrorMessage || + `assertion statement failed with ${resolvedValue}` + ); + } + + return state; + }; +} + +/** + * Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks. + * @public + * @function + * @example Log values from state + * log('Patient List::', $.patients); + * @example Use console.log inside a callback or fn block + * fn((state) => { + * console.log(state.data); + * return state; + * }) + * @param {any} args - A value or message to display in the logs + * @returns {Operation} + */ +export function log(...args) { + return state => { + const [resolvedArgs] = expandReferences(state, args); + console.log(...resolvedArgs); + return state; + }; +} + +/** + * Outputs a message to the console with the debug log level. This is usually filtered out by default. Use this at the top level of your job code, but not inside callbacks. + * @public + * @function + * @example Log values from state + * debug('Patient List::', $.patients); + * @example Use console.debug inside a callback or fn block + * fn((state) => { + * console.debug(state.data); + * return state; + * }) + + * @param {any} args - A value or message to display in the logs + * @returns {Operation} + */ +export function debug(...args) { + return state => { + const [resolvedArgs] = expandReferences(state, args); + console.debug(...resolvedArgs); + return state; + }; +} + +/** + * Run an operation and save the result to a custom key in state instead of overwriting state.data. + * @public + * @function + * @example Fetch cce-data from collections and store them under state.cceData + * as('cceData', collections.get('cce-data-dhis2', { key: `*:*:${$.syncedAt}*` })); + * @param {string} key - The state key to assign the result of the operation to. + * @param {function} operation - An operation that returns a new state object with a `data` property + * @returns {Operation} + */ +export function as(key, operation) { + return async state => { + const [resolvedKey] = expandReferences(state, key); + const prevState = state.data; + const result = await operation(state); + const { data, ...rest } = result; + + state[resolvedKey] = data; + state.data = prevState; + return { ...state, ...rest }; + }; +} diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/beta.js b/tools/adaptor-apis/.adaptors/common@3.2.0/src/beta.js new file mode 100644 index 0000000000..82141db248 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/beta.js @@ -0,0 +1,52 @@ +import { asData } from './Adaptor.js' +/** + * Scopes an array of data based on a JSONPath. + * Useful when the source data has `n` items you would like to map to + * an operation. + * The operation will receive a slice of the data based of each item + * of the JSONPath provided. + * + * It also ensures the results of an operation make their way back into + * the state's references. + * @public + * @example + * each("$.[*]", + * create("SObject", + * field("FirstName", sourceValue("$.firstName"))) + * ) + * @function + * @param {DataSource} dataSource - JSONPath referencing a point in `state`. + * @param {Operation} operation - The operation needed to be repeated. + * @returns {Operation} + */ +export function each(dataSource, operation) { + if (!dataSource) { + throw new TypeError("dataSource argument for each operation is invalid.") + } + + return (prevState) => { + + const items = asData(dataSource,prevState) + const nextState = items.reduce( + (state, data, index) => { + if (state.then) { + return state.then((state) => { + return operation({ ...state, data, index }) + }) + } else { + return operation({ ...state, data, index }) + } + }, + prevState + ) + + // Ensure that the data this reducer was passed is returned to it's + // original state. But allow any other changes to be kept. + if (nextState.then) { + return nextState.then((nextState) => ( { ...nextState, data: prevState.data } )) + } else { + return ( { ...nextState, data: prevState.data } ); + } + + } +} diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/dateFns.js b/tools/adaptor-apis/.adaptors/common@3.2.0/src/dateFns.js new file mode 100644 index 0000000000..e8b130021e --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/dateFns.js @@ -0,0 +1,15 @@ +export { + /** + * The parse function from the date-fns library. See {@link https://date-fns.org/v3.6.0/docs/parse} + * @public + * @function + */ + parse, + + /** + * The format function from the date-fns library. See {@link https://date-fns.org/v3.6.0/docs/parse} + * @public + * @function + */ + format, +} from 'date-fns'; diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/http.js b/tools/adaptor-apis/.adaptors/common@3.2.0/src/http.js new file mode 100644 index 0000000000..5f2f0fd978 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/http.js @@ -0,0 +1,163 @@ +import _ from 'lodash'; +import * as util from './util/index.js'; +const { request, expandReferences } = util; + +const { set } = _; +/** + * Helper functions provided by `http.options`. + * @typedef OptionsHelpers + * @public + * @property {function} json - Sets the `content-type' header to 'application/json' + * @property {function} basic - Sets basic auth on the Authorization header. Pass username and password + * @property {function} bearer - Sets a Bearer token on the Authorization header. Pass the token. + * @property {function} oauth - Sets a Bearer token on the Authorization header. Pass the oauth token. + */ + +const helpers = { + json: function () { + set(this, 'headers.Content-Type', 'application/json'); + return this; + }, + basic: function (username, password) { + const buff = Buffer.from(`${username}:${password}`); + const credentials = buff.toString('base64'); + + set(this, 'headers.Authorization', `Basic ${credentials}`); + return this; + }, + bearer: function (token) { + set(this, 'headers.Authorization', `Bearer ${token}`); + return this; + }, + oauth: function (token) { + set(this, 'headers.Authorization', `Bearer ${token}`); + return this; + }, +}; + +/** + * Builder function to create request options. Returns an object with helpers to + * easily add commonly used options. The return object is chainable so you can set + * as many options as you want. + * Pass an object to set your own options. + * @param {OptionsHelpers} opts - options to pass to the request + * @returns {OptionsHelpers} + * @function + * @public + * @example Get with a query an oauth token + * http.get($.data.url, http.options({ query: $.query }).oauth($.configuration.access_token)) + */ +export function options(opts = {}) { + for (let h in helpers) { + Object.defineProperty(opts, h, { + enumerable: false, + value: helpers[h], + }); + } + + return opts; +} + +/** + * Options provided to the HTTP request + * @typedef {Object} CommonRequestOptions + * @property {object|boolean} errors - Map of errorCodes -> error messages, ie, `{ 404: 'Resource not found;' }`. Pass `false` to suppress errors. + * @property {object} form - Pass a JSON object to be serialised into a multipart HTML form (as FormData) in the body. + * @property {object} query - An object of query parameters to be encoded into the URL. + * @property {object} headers - An object of headers to append to the request. + * @property {string} parseAs - Parse the response body as json, text or stream. By default will use the response headers. + * @property {number} timeout - Request timeout in ms. Default: 300 seconds. + * @property {object} tls - TLS/SSL authentication options. See https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions + */ + +/** + * State object + * @typedef {Object} CommonHttpState + * @private + * @property data - the parsed response body + * @property response - the response from the HTTP server, including headers, statusCode, body, etc + * @property references - an array of all previous data objects used in the Job + **/ + +/** + * Make a HTTP request. + * @public + * @function + * @example + * http.request( + * 'GET', + * 'https://jsonplaceholder.typicode.com/todos' + * ) + * @name request + * @param {string} method - The HTTP method to use. + * @param {string} url - URL to resource. + * @param {CommonRequestOptions} options - Request options + * @state {CommonHttpState} + * @returns {Operation} + */ +const req = function (method, url, options) { + return async state => { + const [resolvedMethod, resolvedUrl, resolvedOptions] = expandReferences( + state, + method, + url, + options + ); + const { body, ...responseWithoutBody } = await request( + resolvedMethod, + resolvedUrl, + resolvedOptions + ); + return { + ...state, + response: responseWithoutBody, + data: body, + }; + }; +}; +export { req as request }; + +/** + * Make a GET request. + * @public + * @function + * @example Request a resource + * http.get('https://jsonplaceholder.typicode.com/todos') + * @example Request a resource with basic auth + * http.get( + * 'https://jsonplaceholder.typicode.com/todos', + * http.options().basic('user', 'pass') + * ) + * @example Request a resource with oauth + * http.get( + * 'https://jsonplaceholder.typicode.com/todos', + * http.options().oauth($.configuration.access_token) + * ) + * @param {string} url - URL to access + * @param {CommonRequestOptions} options - Request options + * @state {CommonHttpState} + * @returns {Operation} + */ +export function get(url, options) { + return req('GET', url, options); +} + +/** + * Make a POST request. + * @public + * @function + * @example Post a JSON object (setting the content-type header) + * http.post( + * "https://jsonplaceholder.typicode.com/todos", + * $.data, + * http.options().json() + * ); + * @param {string} url - URL to access + * @param {object} data - Body data to append to the request. + * @param {CommonRequestOptions} options - Request options + * @state {CommonHttpState} + * @returns {Operation} + */ +export function post(url, data, options) { + return req('POST', url, { body: data, ...options }); +} diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/index.js b/tools/adaptor-apis/.adaptors/common@3.2.0/src/index.js new file mode 100644 index 0000000000..07aff8c1c9 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/index.js @@ -0,0 +1,9 @@ +import * as Adaptor from './Adaptor'; +export default Adaptor; + +export * from './Adaptor'; + +export * as beta from './beta'; +export * as http from './http'; +export * as util from './util/index.js'; +export * as dateFns from './dateFns'; diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/index.ts b/tools/adaptor-apis/.adaptors/common@3.2.0/src/index.ts new file mode 100644 index 0000000000..bff5fdc1cf --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/index.ts @@ -0,0 +1,12 @@ +import * as Adaptor from './Adaptor'; +export default Adaptor; + +export * from './Adaptor'; + +export * as beta from './beta'; +export * as http from './http'; +export * as dateFns from './dateFns'; +export * as util from './util'; + +import * as metadata from './metadata'; +export { metadata }; diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/metadata.js b/tools/adaptor-apis/.adaptors/common@3.2.0/src/metadata.js new file mode 100644 index 0000000000..a1a2c1305a --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/metadata.js @@ -0,0 +1,52 @@ +/* + * This file contains utility and helper methods for metadata functions + */ + +/** + * Creates a metadata model entity representing some data in a dataaousrce + * @private + * @function + * @param {string} name - The entity name (ie, Account or Table) + * @param {string} type - A type label for the entity (ie, sObject, orgUnit) + * @param {object} props - Properties to describe the entity (label, datatype) + * @returns {Entity} + */ +export const createEntity = (name, type, props = {}, children) => { + const { label, datatype, ...meta } = props; + + const e = { + name, // basic identifier (should reflect the id or name in the datasource) + type, // domain specific type + addChild: function (e, name) { + if (!this.children) { + this.children = name ? {} : []; + } + if (name) { + if (Array.isArray(this.children)) { + throw new Error('Cannot add a named entity to child array'); + } + this.children[name] = e; + } else { + // will throw if children is an object + this.children.push(e); + } + }, + }; + + if (label) { + e.label = label; // the label to show the user + } + + if (datatype) { + e.datatype = datatype; // monaco-facing type + } + + if (children) { + e.children = children; + } + + // ensure meta object or we get problems in jsonpath + e.meta = meta || {}; + + return e; +}; diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/metadata.ts b/tools/adaptor-apis/.adaptors/common@3.2.0/src/metadata.ts new file mode 100644 index 0000000000..78669e8e0f --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/metadata.ts @@ -0,0 +1,21 @@ +// Generic entity in a data model +export type Entity = { + name: string; // the value when inserted + type: string; // domain-specific type string (eg OrgUnit, sObject) + + label?: string; // human readable label + datatype?: string; // the javascript type (shown in monaco) + desc?: string; // a longer description + + children?: Entity[] | Record; + + // arbitrary extra stuff goes in the meta object + meta?: Record; + + addChild: (e: Entity, name?: string) => void; +}; + +// we need to map data types into a standard +// SF's types are UI focused, like picklist, reference, id. They also have string and datetime +// So we need to work out what htis list is +export type DataType = 'string' | 'boolean' | 'date'; diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/base64.js b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/base64.js new file mode 100644 index 0000000000..fd4132a611 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/base64.js @@ -0,0 +1,67 @@ +import _ from 'lodash'; + +/** + * Encodes a given string or Javascript object into Base64 format. + * @function + * @public + * @namespace util + * @param {string | object} data - The string or object to be encoded. + * @param {object} options - Options + * @param {boolean} [options.parseJson=true] - If false, no attempt will be made to stringiy the data before encoding it. + * @returns {string} - The Base64 encoded string. + * @example Encode a string + * const encodedString = util.encode('Hello World'); + * console.log(encoded); // Output: SGVsbG8gV29ybGQ= + * @example Encode an object + * const encodedObject = util.encode({name: 'Jane Doe' }) + * console.log(encodedObject); //output eyJuYW1lIjoiSmFuZSBEb2UifQ== + * @example To skip the JSON stringification step + * const encodedObject = util.encode('Hello World', { parseJson: false }) + */ +export const encode = (data, options = { parseJson: true }) => { + let str = data; + + if (typeof data !== 'string' && options.parseJson) { + try { + str = JSON.stringify(str); + } catch (e) { + console.log(e.message); + } + } + + return Buffer.from(str, 'utf-8').toString('base64'); +}; + +/** + * Decodes a Base64 encoded string back to its original format. + * @function + * @public + * @namespace util + * @param {string} base64Data - The Base64 encoded string. + * @param {object} options - Options. + * @param {boolean} [options.parseJson=true] - If false, no attempt will be made to parse the decoded data into a JSON object. + * @returns {string | object} - The decoded string or JavaScript Object. + * @example Decode a Base64 string + * const decoded = util.decode('SGVsbG8gV29ybGQ='); + * @example Decode a Base64 JSON object to a standard JavaScript object + * const decoded = util.decode('eyJuYW1lIjoiSmFuZSBEb2UifQ=='); + * console.log(decoded); // Output: {name: 'Jane Doe' } + * @example To skip the JSON stringification step + * const decodedString = util.decode('Hello World', { parseJson: false }) + */ +export const decode = (base64Data, options = { parseJson: true }) => { + let decodedValue = Buffer.from(base64Data, 'base64').toString('utf-8'); + + if ( + (_.startsWith(decodedValue, '[') || _.startsWith(decodedValue, '{')) && + options.parseJson + ) { + try { + decodedValue = JSON.parse(decodedValue); + } catch (e) { + console.log(e.message); + } + } + + return decodedValue; +}; diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/http.js b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/http.js new file mode 100644 index 0000000000..a7326ea26e --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/http.js @@ -0,0 +1,430 @@ +import { getReasonPhrase } from 'http-status-codes'; +import { Readable } from 'node:stream'; +import querystring from 'node:querystring'; +import path from 'node:path'; +import throwError from './throw-error.js'; +import { encode } from './base64.js'; +import { MockAgent, Agent, interceptors } from 'undici'; +import _ from 'lodash'; + +// Maps undici dispatchers to keys (where a key is the base url + encoded options) +const agents = new Map(); + +export const makeBasicAuthHeader = (username, password) => { + const buff = Buffer.from(`${username}:${password}`); + const credentials = buff.toString('base64'); + return { Authorization: `Basic ${credentials}` }; +}; + +export const logResponse = response => { + const { method, url, statusCode, duration, query } = response; + + if (method && url && duration && statusCode) { + const urlWithQuery = Object.keys(query || {}).length + ? `${url}?${new URLSearchParams(query).toString()}` + : url; + + const message = `${method} ${urlWithQuery} - ${statusCode} in ${duration}ms`; + if (response instanceof Error) { + console.error(message); + console.error('response body: '); + console.error(response.body || '[no body]'); + } else { + console.log(message); + } + } + + return response; +}; + +// Sort an object into a string of key,value pairs +// Supports nesting +const sortObject = obj => + _(obj) + .toPairs() + .filter(([_k, v]) => v !== undefined) // ignore undefined values + .sortBy(0) + .map(([k, v]) => { + if (v && typeof v === 'object') { + if (!Object.keys(v).length) { + return ''; + } + // eslint-disable-next-line no-param-reassign + v = `${'{'}${sortObject(v)}${'}'}`; + } + return [k, v].join(':'); + }) + .join('|'); + +export const generateAgentKey = (baseUrl, agentOpts = {}) => { + if (Object.keys(agentOpts).length) { + const sortedSerializedOptions = sortObject(agentOpts); + if (sortedSerializedOptions.length) { + return `${baseUrl}+${sortedSerializedOptions}`; + } + } + return baseUrl; +}; + +const getDispatcher = (origin, options = {}) => { + const { tls = {}, defaultContentType, ...agentOpts } = options; + const key = generateAgentKey(origin, options); + if (!agents.has(key)) { + const agent = new Agent({ + connect: tls, + ...agentOpts, + }).compose( + interceptors.redirect({ + maxRedirections: agentOpts.maxRedirections, + }), + interceptors.decompress() + ); + + agents.set(key, agent); + } + + return agents.get(key); +}; + +// Set the agent for a URL + options to be a mock dispatcher +// This causes all subsequent getDispatcher calls to use the mock, +// rather than a real dispatcher +// Note that when testing adaptors, options like maxRedirections +// MUST be set or else the mock agent will not be used! +export const enableMockClient = (baseUrl, options = {}) => { + const { + defaultContentType = 'application/json', + tls = {}, + ...agentOpts + } = options; + + const mockAgent = new MockAgent({ connections: 1 }); + mockAgent.disableNetConnect(); + + const key = generateAgentKey(baseUrl, { + ...agentOpts, + tls, + }); + console.log('Creating mock client for key:', key); + + const dispatcher = mockAgent.get(baseUrl); + if (defaultContentType) { + const _intercept = dispatcher.intercept; + // because so many unit test use mock json, + // force the content-type header if a body is specified + dispatcher.intercept = (...args) => { + const interceptor = _intercept.apply(dispatcher, args); + + const _reply = interceptor.reply; + + const ensureJsonHeader = (headers = {}) => { + const hasJsonHeader = Object.keys(headers).find(k => + /content-type/i.test(k) + ); + if (!hasJsonHeader) { + headers['content-type'] = defaultContentType; + } + }; + + const reply = (...args) => { + if (typeof args[0] === 'function') { + // call the function + // in the resulting object, set the headers + const response = _reply.apply(interceptor, args); + if (response.body) { + response.headers ??= {}; + ensureJsonHeader(response.headers); + } + return response; + } else { + const [code, data, options = {}] = args; + if (data) { + options.headers ??= {}; + ensureJsonHeader(options.headers); + } + return _reply.call(interceptor, code, data, options); + } + }; + + interceptor.reply = reply; + + return interceptor; + }; + } + + if (!agents.has(key)) { + agents.set(key, mockAgent); + } + return dispatcher; +}; + +const assertOK = async (response, errorMap, fullUrl, method, startTime) => { + if (errorMap === false) { + return; + } + + const errMapMessage = errorMap[response.statusCode]; + + const isError = + typeof errMapMessage === 'boolean' + ? errMapMessage + : errMapMessage || response.statusCode >= 400; + + if (isError) { + const body = await readResponseBody(response); + + const statusText = getReasonPhrase(response.statusCode); + const defaultErrorMessage = `${method} to ${fullUrl} returned ${response.statusCode}: ${statusText}`; + + const duration = Date.now() - startTime; + + const errMessage = + typeof errMapMessage === 'function' + ? errMapMessage(response) + : errMapMessage || defaultErrorMessage; + + const error = new Error(errMessage); + error.statusCode = response.statusCode; + error.statusMessage = statusText; + error.url = fullUrl; + error.duration = duration; + error.method = method; + error.body = body; + error.headers = response.headers; + throw error; + } +}; + +export const ERROR_ABSOLUTE_URL = 'Absolute URLs not supported'; + +// throws if a path is absolute +export const assertRelativeUrl = path => { + if (/https?:\/\//.test(path)) { + const e = new Error('UNEXPECTED_ABSOLUTE_URL'); + e.code = 'UNEXPECTED_ABSOLUTE_URL'; + e.description = + 'An absolute URL was provided (https://...) but only a path (/a/b/c) is supported'; + e.url = path; + e.fix = + 'Remove the protocol, domain and origin from the provided URL. Maybe you need to use the generic HTTP helper functions instead?'; + throw e; + } +}; + +export const ERROR_URL_MISMATCH = 'Target origin does not match baseUrl origin'; + +export const parseUrl = (pathOrUrl = '', baseUrl) => { + let fullUrl; + + // We handle our own URL parsing rather than leaning on node:url + // because we are non-strict about the baseURL (ie, we do not ignore the path) + if (/https?:\/\//.test(pathOrUrl)) { + fullUrl = new URL(pathOrUrl); + + // If the url is absolute, and there's a basePath, ensure they point to the same origin + if (baseUrl) { + const base = new URL(baseUrl); + if (fullUrl.origin !== base.origin) { + const e = new Error(ERROR_URL_MISMATCH); + e.code = 'BASE_URL_MISMATCH'; + e.description = `A request was attempted to an absolute URL, but a different base URL was specified. This is a potential security violation.`; + e.target = pathOrUrl; + e.baseUrl = baseUrl; + e.fix = 'Try using a generic HTTP function to access the target URL'; + throw e; + } + } + } else if (baseUrl) { + // Note: we use path.join here because our "baseUrl" may not be a stict base url + // Ie it may be https://example.com/api/v1 + // Doing new URl(path, base) will chop off the "base path" so to speak, and break stuff + // Technically path.join will produce an invalid URL, but the URL parser handles it safely + fullUrl = new URL(path.join(baseUrl, pathOrUrl)); + } else { + // let this throw + new URL(pathOrUrl); + } + + return { + url: fullUrl.toString(), + baseUrl: fullUrl.origin, + path: fullUrl.pathname, + query: querystring.parse(fullUrl.searchParams.toString()), + }; +}; + +/** + * `request` is a helper function that sends HTTP requests and returns the response + * body, headers, and status code. + * Use the error map to provide custom error messages or get hold of the response in case of errors. + * @param method - The HTTP method to use for the request (e.g., "GET", "POST", "PUT", "DELETE", etc.). + * @param fullUrlOrPath - The full or partial URL for the request. + * @param [options] - The `options` parameter is an object that contains additional configuration + * options for the request. + * @returns an object with the following properties: + * - method: the request method + * - url: the request url + * - code: the status code of the response + * - headers: the headers of the response + * - body: the body of the response + * - message: the status text of the response + * - duration: the response time + */ +export async function request(method, fullUrlOrPath, options = {}) { + const startTime = Date.now(); + const { + url, + baseUrl, + path, + query: urlQuery, + } = parseUrl(fullUrlOrPath, options.baseUrl); + const { + headers = {}, + query: optionQuery = {}, + body, + errors = {}, + timeout = 300e3, // Default to 300 seconds + tls = {}, + parseAs = 'auto', + maxRedirections, + throwOnUnhandledRedirect = true, // Internal use only + } = options; + + const dispatcher = getDispatcher(baseUrl, { tls, maxRedirections }); + + const queryParams = { + ...optionQuery, + ...urlQuery, + }; + + const response = await dispatcher.request({ + path, + query: queryParams, + method, + headers, + body: encodeRequestBody(body), + bodyTimeout: timeout, + headersTimeout: timeout, + // If the request is redirected, undici requires the origin to be set (this affects commcare) + origin: baseUrl, + }); + + const statusText = getReasonPhrase(response.statusCode); + + await assertOK(response, errors, url, method, startTime); + + // redirect codes https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status#redirection_messages + const hasRedirectStatus = [300, 301, 302, 303, 304, 305, 307, 308].includes( + response.statusCode + ); + + if ( + hasRedirectStatus && + maxRedirections === undefined && + throwOnUnhandledRedirect + ) { + throwError(response.statusCode, { + statusMessage: statusText, + description: `Response has redirect status, but 'maxRedirections' is not set`, + fix: + `Set 'maxRedirections' to enable auto-redirect.` + + `Example: request('GET', '${fullUrlOrPath}', { maxRedirections: 5 })`, + }); + } + + const responseBody = await readResponseBody(response, parseAs); + const endTime = Date.now(); + const duration = endTime - startTime; + + const requestResponse = { + url, + method, + statusCode: response.statusCode, + statusMessage: statusText, + headers: response.headers, + body: responseBody, + duration, + }; + if (Object.keys(queryParams).length > 0) { + requestResponse.query = queryParams; + } + return requestResponse; +} + +function encodeRequestBody(body) { + if (!body) { + return undefined; + } + + if ( + Buffer.isBuffer(body) || + body instanceof Readable || + typeof body === 'string' + ) { + return body; + } + + if (typeof body === 'object') { + if ( + Symbol.asyncIterator in Object(body) || + Symbol.iterator in Object(body) || + body instanceof FormData + ) { + return body; + } + return JSON.stringify(body); + } + + throw new Error('Unsupported body type'); +} + +async function readResponseBody(response, parseAs) { + let contentLength = -1; + if ('content-length' in response.headers) { + contentLength = parseInt(response.headers['content-length']); + } + const contentType = response.headers['content-type']; + + // Try to work out if the response is empty + // HTTP spec says content type must be defined if there's a body + if (contentLength === 0 || !contentType || response.statusCode === 204) { + return; + } + + try { + switch (parseAs) { + case 'json': + return await response.body.json(); + case 'text': + return response.body.text(); + case 'stream': + return response.body; + case 'base64': + const arrayBuffer = await response.body.arrayBuffer(); + return encode(arrayBuffer, { parseJson: false }); + default: + return contentType && contentType.includes('application/json') + ? await response.body.json() + : response.body.text(); + } + } catch (error) { + throwError(response.statusCode, { + description: 'Error parsing the response body', + parseAs, + contentType, + bodyLength: contentLength, + error: error.message, + }); + } +} + +export const get = (url, options) => request('GET', url, options); + +export const post = (url, body, options) => + request('POST', url, { body, ...options }); + +export const put = (url, body, options) => + request('PUT', url, { body, ...options }); + +export const del = (url, body, options) => + request('DELETE', url, { body, ...options }); diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/index.js b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/index.js new file mode 100644 index 0000000000..b7f805fb5a --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/index.js @@ -0,0 +1,7 @@ +export * from './http.js'; +export * from './references.js'; + +export { default as parseDate } from './parse-date.js'; +export { default as throwError } from './throw-error.js'; +export { encode, decode } from './base64.js'; +export { uuid } from './uuid.js'; diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/parse-date.js b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/parse-date.js new file mode 100644 index 0000000000..6a0072d39b --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/parse-date.js @@ -0,0 +1,34 @@ +import { startOfToday, startOfYesterday, subHours, subDays, startOfDay } from 'date-fns' + +// Helper function to parse a natural-language date string into an ISO date +export default (d, startDate) => { + try { + if (d === 'start') { + return startDate; + } else if (d === 'now' || d === 'end') { + return new Date() + } + else if (d === 'today') { + return startOfToday() + } + else if (d === 'yesterday') { + return startOfYesterday() + } + else if (/(hours? ago)$/.test(d)) { + // return the same minute n hours ago + const [diff] = d.match(/\d+/) + return subHours(new Date(), diff) + } + else if (/(days? ago)$/.test(d)) { + // return the start of today - n days + const [diff] = d.match(/\d+/) + return startOfDay(subDays(new Date(), diff)) + } + } catch(e) { + console.log(`Error converting ${d} into a date`) + console.log(e) + } + + // Just return the value if we couldn't parse it + return d; +} diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/references.js b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/references.js new file mode 100644 index 0000000000..b890f77b42 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/references.js @@ -0,0 +1,65 @@ +import { Readable, Writable } from 'node:stream'; + +// TODO this doesn't currently support skip +export function expandReferences(state, ...args) { + return args.map(value => expandReference(state, value)); +} + +const isStream = value => { + if (value && typeof value == 'object') { + if (value instanceof Readable || value instanceof Writable) { + return true; + } + // This should catch streams returned by fetch (which for some reason aren't proper streams?) + if (value.pipeTo || value.pipe) { + return true; + } + } + return false; +}; + +function expandReference(state, value) { + if ( + Buffer.isBuffer(value) || + // Note: there is a weird identity thing in the VM where typeof RegExp will be false ¯\_(ツ)_/¯ + value?.constructor?.name === 'RegExp' + ) { + return value; + } + + if (Array.isArray(value)) { + return value.map(v => expandReference(state, v)); + } + + if (typeof value == 'object' && !!value && !isStream(value)) { + return Object.keys(value).reduce((acc, key) => { + return { ...acc, [key]: expandReference(state, value[key]) }; + }, {}); + } + + if (typeof value == 'function') { + return expandReference(state, value(state)); + } + return value; +} + +export function normalizeOauthConfig(configuration) { + const { access_token, accessToken } = configuration; + + if (access_token && accessToken) + throw new Error( + 'Both "accessToken" & "access_token" keys found in configuration; ' + + 'please use only "access_token" for OAuth2 credentials.' + ); + + if (access_token) return { ...configuration, accessToken: access_token }; + + console.log( + 'Key "access_token" not found in state.configuration;', + 'is this a standard OAuth 2.0 JSON credential?' + ); + + if (accessToken) console.log('Using "accessToken" from state.configuration'); + + return configuration; +} diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/throw-error.js b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/throw-error.js new file mode 100644 index 0000000000..51161ec35d --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/throw-error.js @@ -0,0 +1,16 @@ +export default (code, { description, fix, ...extras } = {}) => { + const message = description ? `${code}: ${description}` : code; + const e = new Error(message); + e.code = code; + + if (description) { + e.description = description; + } + if (fix) { + e.fix = fix; + } + for (const key in extras) { + e[key] = extras[key]; + } + throw e; +}; diff --git a/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/uuid.js b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/uuid.js new file mode 100644 index 0000000000..68c7ed7ff3 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@3.2.0/src/util/uuid.js @@ -0,0 +1,13 @@ +import { randomUUID } from 'node:crypto'; + +/** + * Generates a UUID (Universally Unique Identifier) + * @function + * @public + * @namespace util + * @returns {string} - A newly generated UUID + * @example Generate a UUID + * const id = util.uuid(); + * console.log(id); // Output:'3f4e254e-8f6f-4f8b-9651-1c1c262cc83f' + */ +export const uuid = () => randomUUID(); diff --git a/tools/adaptor-apis/.adaptors/common@latest/build.config.js b/tools/adaptor-apis/.adaptors/common@latest/build.config.js new file mode 100644 index 0000000000..6266815242 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/build.config.js @@ -0,0 +1,12 @@ +import { join } from 'node:path'; + +// override build config with an extra entry point +export default path => ({ + entry: { + index: join(path, 'src/index.js'), + metadata: join(path, 'src/metadata.js'), + util: join(path, 'src/util/index.js'), + }, + external: ['undici'], + root: path, // Ensure the root path is correctly set +}); diff --git a/tools/adaptor-apis/.adaptors/common@latest/package.json b/tools/adaptor-apis/.adaptors/common@latest/package.json new file mode 100644 index 0000000000..887abf0331 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/package.json @@ -0,0 +1,65 @@ +{ + "name": "@openfn/language-common", + "label": "Common", + "version": "3.2.3", + "description": "Common Expressions for OpenFn", + "homepage": "https://docs.openfn.org", + "repository": { + "type": "git", + "url": "https://github.com/openfn/adaptors.git" + }, + "scripts": { + "build": "pnpm clean && build-adaptor common", + "test": "mocha --experimental-specifier-resolution=node --no-warnings --recursive", + "test:watch": "mocha -w --experimental-specifier-resolution=node --no-warnings --recursive", + "clean": "rimraf dist types docs", + "pack": "pnpm pack --pack-destination ../../dist", + "lint": "eslint src" + }, + "exports": { + ".": { + "import": "./dist/index.js", + "types": "./types/index.d.ts", + "require": "./dist/index.cjs" + }, + "./package.json": "./package.json", + "./metadata": { + "import": "./dist/metadata.js", + "require": "./dist/metadata.cjs" + }, + "./util": { + "import": "./dist/util.js", + "require": "./dist/util.cjs" + } + }, + "author": "Open Function Group", + "license": "LGPL-3.0-or-later", + "files": [ + "dist/", + "types/", + "ast.json", + "configuration-schema.json" + ], + "type": "module", + "types": "types/index.d.ts", + "dependencies": { + "ajv": "^8.18.0", + "csv-parse": "^5.4.0", + "csvtojson": "^2.0.13", + "date-fns": "^2.25.0", + "http-status-codes": "^2.3.0", + "jsonpath-plus": "^10.3.0", + "lodash": "^4.17.23", + "undici": "^7.19.2" + }, + "devDependencies": { + "chai": "4.3.6", + "deep-eql": "4.1.1", + "koa": "^3.1.2", + "koa-compress": "^5.1.1", + "nock": "13.2.9", + "rimraf": "^3.0.2", + "zlib": "^1.0.5" + }, + "main": "dist/index.cjs" +} diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/Adaptor.js b/tools/adaptor-apis/.adaptors/common@latest/src/Adaptor.js new file mode 100644 index 0000000000..43345c4421 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/Adaptor.js @@ -0,0 +1,1000 @@ +import { JSONPath } from 'jsonpath-plus'; +import { parse } from 'csv-parse'; +import { Readable } from 'node:stream'; + +import { request } from 'undici'; +import * as dateFns from 'date-fns'; +import _ from 'lodash'; + +import { expandReferences, parseDate } from './util/index.js'; + +const schemaCache = {}; + +/** + * Lodash utility library. + * All lodash v4.17 functions are available on the `_` namespace, eg, + * `_.map`, `_.cloneDeep`, etc. + * + * @see https://lodash.com/docs/ + * @public + * @function + * @alias lodash + * @example Split an array into chunks of 2 items each + * fn(state => { + * const items = [1, 2, 3, 4, 5]; + * const chunks = lodash.chunk(items, 2); + * return { ...state, chunks }; + * }); + */ +export { _ }; + +/** + * Execute a sequence of operations. + * Main outer API for executing expressions. + * @public + * @example + * execute( + * create('foo'), + * delete('bar') + * ) + * @private + * @param {Operations} operations - Operations to be performed. + * @returns {Promise} + */ +export function execute(...operations) { + return state => { + const start = Promise.resolve(state); + + return operations.reduce((acc, operation) => { + return acc.then(operation); + }, start); + }; +} + +/** + * alias for "fn()" + * @function + * @param {Function} func is the function + * @returns {Operation} + */ +export function alterState(func) { + return fn(func); +} + +/** + * Creates a custom step (or operation) for more flexible job writing. + * @public + * @function + * @example + * fn(state => { + * // do some things to state + * return state; + * }); + * @param {Function} func is the function + * @returns {Operation} + */ +export function fn(func) { + return state => { + return func(state); + }; +} + +/** + * Execute a function only when the condition returns true + * @public + * @function + * @example + * fnIf((state) => state?.data?.name, get("https://example.com")); + * @param {Boolean} condition - The condition that returns true + * @param {Operation} operation - The operation needed to be executed. + * @returns {Operation} + */ +export function fnIf(condition, operation) { + return state => { + const [resolvedCondition] = expandReferences(state, condition); + + return resolvedCondition ? operation(state) : state; + }; +} + +/** + * Picks out a single value from a JSON object. + * If a JSONPath returns more than one value for the reference, the first + * item will be returned. + * @public + * @function + * @example + * jsonValue({ a:1 }, 'a') + * @param {object} obj - A valid JSON object. + * @param {String} path - JSONPath referencing a point in given JSON object. + * @returns {Operation} + */ +export function jsonValue(obj, path) { + return JSONPath({ path, json: obj })[0]; +} + +/** + * Picks out a single value from source data. + * If a JSONPath returns more than one value for the reference, the first + * item will be returned. + * @public + * @function + * @example + * sourceValue('$.key') + * @param {String} path - JSONPath referencing a point in `state`. + * @returns {Operation} + */ +export function sourceValue(path) { + return state => { + return JSONPath({ path, json: state })[0]; + }; +} + +/** + * Picks out a value from source data. + * Will return whatever JSONPath returns, which will always be an array. + * If you need a single value use `sourceValue` instead. + * @public + * @function + * @example + * source('$.key') + * @param {String} path - JSONPath referencing a point in `state`. + * @returns {Array.} + */ +export function source(path) { + return state => { + return JSONPath({ path, json: state }); + }; +} + +/** + * Ensures a path points at the data. + * @public + * @function + * @example + * dataPath('key') + * @param {string} path - JSONPath referencing a point in `data`. + * @returns {string} + */ +export function dataPath(path) { + // Remove prepending `$.`, `$` or `.`, in order to ensure the root of the + // path starts with `$.data.` + const cleanPath = path.match(/^[\$\.]*(.+)/)[1]; + return '$.data.'.concat(cleanPath); +} + +/** + * Picks out a single value from the source data object—usually `state.data`. + * If a JSONPath returns more than one value for the reference, the first + * item will be returned. + * @public + * @function + * @example + * dataValue('key') + * @param {String} path - JSONPath referencing a point in `data`. + * @returns {Operation} + */ +export function dataValue(path) { + return sourceValue(dataPath(path)); +} + +/** + * Ensures a path points at references. + * @public + * @function + * @example + * referencePath('key') + * @param {string} path - JSONPath referencing a point in `references`. + * @returns {string} + */ +export function referencePath(path) { + // Remove prepending `$.`, `$` or `.`, in order to ensure the root of the + // path starts with `$.data.` + const cleanPath = path.match(/^[\$\.]*(.+)/)[1]; + return '$.references'.concat(cleanPath); +} + +/** + * Picks out the last reference value from source data. + * @public + * @function + * @example + * lastReferenceValue('key') + * @param {String} path - JSONPath referencing a point in `references`. + * @returns {Operation} + */ +export function lastReferenceValue(path) { + const lastReferencePath = referencePath('[0]'.concat('.', path)); + + return sourceValue(lastReferencePath); +} + +/** + * Iterates over a collection of items and returns a new array of mapped values, + * like Javascript's `Array.map()` function. + * + * Each item in the source array will be passed into the callback function. The returned value + * will be added to the new array. The callback is passed the original item, the current index + * in the source array (ie, the nth item number), and the state object. + * + * Writes a new array to `state.data` with transformed values.c array. + * @public + * @function + * @example Transform an array of items in state + * map($.items', (data, index, state) => { + * return { + * id: index + 1, + * name: data.name, + * createdAt: state.cursor, + * }; + * }); + * @example Map items asynchronously (e.g. fetch extra info) + * map($.items, async (data, index, state) => { + * const userInfo = await fetchUserInfo(data.userId); + * return { + * id: index + 1, + * name: data.name, + * extra: userInfo, + * }; + * }); + * @param {string|Array} path - An array of items or a a JSONPath string which points to an array of items. + * @param {function} callback - The mapping function, invoked with `(data, index, state)` for each item in the array. + * @returns {State} + */ +export const map = function (path, callback) { + return async state => { + const results = []; + const values = typeof path === 'string' ? source(path)(state) : path; + + let index = 0; + for (const item of values) { + const value = await callback(item, index++, state); + results.push(value); + } + + return { ...state, data: results }; + }; +}; + +/** + * Simple switcher allowing other expressions to use either a JSONPath or + * object literals as a data source. + * - JSONPath referencing a point in `state` + * - Object Literal of the data itself. + * - Function to be called with state. + * @public + * @function + * @example + * asData('$.key'| key | callback) + * @param {String|object|function} data + * @param {object} state - The current state. + * @returns {array} + */ +export function asData(data, state) { + switch (typeof data) { + case 'string': + return source(data)(state); + case 'object': + return data; + case 'function': + return data(state); + } +} + +/** + * Iterates over an array of items and invokes an operation upon each one, where the state + * object is _scoped_ so that state.data is the item under iteration. + * The rest of the state object is untouched and can be referenced as usual. + * You can pass an array directly, or use lazy state or a JSONPath string to + * reference a slice of state. + * @public + * @function + * @example Using lazy state ($) to iterate over items in state.data and pass each into an "insert" operation + * each( + * $.data, + * // Inside the callback operation, `$.data` is scoped to the item under iteration + * insert("patient", { + * patient_name: $.data.properties.case_name, + * patient_id: $.data.case_id, + * }) + * ); + * @example Iterate over items in state.data and pass each one into an "insert" operation + * each( + * $.data, + * insert("patient", (state) => ({ + * patient_id: state.data.case_id, + * ...state.data + * })) + * ); + * @example Using JSON path to iterate over items in state.data and pass each one into an "insert" operation + * each( + * "$.data[*]", + * insert("patient", (state) => ({ + * patient_name: state.data.properties.case_name, + * patient_id: state.data.case_id, + * })) + * ); + * @param {DataSource} dataSource - JSONPath referencing a point in `state`. + * @param {Operation} operation - The operation needed to be repeated. + * @returns {Operation} + */ +export function each(dataSource, operation) { + if (!dataSource) { + throw new TypeError('dataSource argument for each operation is invalid.'); + } + + return state => { + return asData(dataSource, state).reduce((state, data, index) => { + if (state.then) { + return state.then(state => { + return operation({ ...state, data, index }); + }); + } else { + return operation({ ...state, data, index }); + } + }, state); + }; +} + +/** + * Combines two operations into one + * @public + * @function + * @example + * combine( + * create('foo'), + * delete('bar') + * ) + * @param {Operations} operations - Operations to be performed. + * @returns {Operation} + */ +export function combine(...operations) { + return state => { + return operations.reduce((state, operation) => { + if (state.then) { + return state.then(state => { + return { ...state, ...operation(state) }; + }); + } else { + return { ...state, ...operation(state) }; + } + }, state); + }; +} + +/** + * Adds data from a target object + * @public + * @function + * @example + * join('$.key','$.data','newKey') + * @param {String} targetPath - Target path + * @param {String} sourcePath - Source path + * @param {String} targetKey - Target Key + * @returns {Operation} + */ +export function join(targetPath, sourcePath, targetKey) { + return state => { + return source(targetPath)(state).map(i => { + return { [targetKey]: sourceValue(sourcePath)(state), ...i }; + }); + }; +} + +/** + * Returns a key, value pair in an array. + * @public + * @function + * @example + * field('destination_field_name__c', 'value') + * @param {string} key - Name of the field + * @param {Value} value - The value itself or a sourceable operation. + * @returns {Field} + */ +export function field(key, value) { + return [key, value]; +} + +/** + * Zips key value pairs into an object. + * @public + * @function + * @example + * fields(list_of_fields) + * @param {Fields} fields - a list of fields + * @returns {Object} + */ +export function fields(...fields) { + return _.fromPairs(fields); +} + +/** + * Merges fields into each item in an array. + * @public + * @example + * merge( + * "$.books[*]", + * fields( + * field( "publisher", sourceValue("$.publisher") ) + * ) + * ) + * @function + * @public + * @param {DataSource} dataSource + * @param {Object} fields - Group of fields to merge in. + * @returns {DataSource} + */ +export function merge(dataSource, fields) { + return state => { + const initialData = source(dataSource)(state); + const [additionalData] = expandReferences(state, fields); + + return initialData.reduce((acc, dataItem) => { + return [...acc, { ...dataItem, ...additionalData }]; + }, []); + }; +} + +/** + * Groups an array of objects by a specified key path. + * @public + * @example + * const users = [ + * { name: 'Alice', age: 25, city: 'New York' }, + * { name: 'Bob', age: 30, city: 'San Francisco' }, + * { name: 'Charlie', age: 25, city: 'New York' }, + * { name: 'David', age: 30, city: 'San Francisco' } + * ]; + * group(users, 'city'); + * // state is { data: { 'New York': [/Alice, Charlie/], 'San Francisco': [ /Bob, David / ] } + * @function + * @public + * @param {Object[]} arrayOfObjects - The array of objects to be grouped. + * @param {string} keyPath - The key path to group by. + * @param {function} callback - (Optional) Callback function + * @returns {Operation} + */ +export function group(arrayOfObjects, keyPath, callback = s => s) { + return state => { + const [resolvedArray, resolvedKeyPath] = expandReferences( + state, + arrayOfObjects, + keyPath + ); + const results = _.groupBy(resolvedArray, item => + _.get(item, resolvedKeyPath) + ); + return callback({ ...state, data: _.omit(results, [undefined]) }); + }; +} + +/** + * Returns the index of the current array being iterated. + * To be used with `each` as a data source. + * @public + * @function + * @example + * index() + * @returns {DataSource} + */ +export function index() { + return state => { + return state.index; + }; +} + +/** + * Turns an array into a string, separated by X. + * @public + * @function + * @example + * field("destination_string__c", function(state) { + * return arrayToString(dataValue("path_of_array")(state), ', ') + * }) + * @param {array} arr - Array of toString'able primatives. + * @param {string} separator - Separator string. + * @returns {string} + */ +export function arrayToString(arr, separator) { + return Array.apply(null, arr).join(separator); +} + +/** + * Ensures primitive data types are wrapped in an array. + * Does not affect array objects. + * @public + * @function + * @example + * each(function(state) { + * return toArray( dataValue("path_of_array")(state) ) + * }, ...) + * @param {any} arg - Data required to be in an array + * @returns {array} + */ +export function toArray(arg) { + return new Array().concat(arg); +} + +/** + * Prepares next state + * @public + * @function + * @example + * composeNextState(state, response) + * @param {State} state - state + * @param {Object} response - Response to be added + * @returns {State} + */ +export function composeNextState(state, response) { + if (!state.references) { + state.references = []; + } + return { + ...state, + data: response, + references: [...state.references, state.data], + }; +} + +/** + * Substitutes underscores for spaces and proper-cases a string + * @public + * @function + * @example + * field("destination_string__c", humanProper(state.data.path_to_string)) + * @param {string} str - String that needs converting + * @returns {string} + */ +export function humanProper(str) { + if (typeof str == 'string') { + return str.replace(/[_-]/g, ' ').replace(/\w\S*/g, function (txt) { + return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); + }); + } else { + return str; + } +} + +/** + * Splits an object into two objects based on a list of keys. + * The first object contains the keys that are not in the list, + * and the second contains the keys that are. + * @public + * @function + * @param {Object} obj - The object to split. + * @param {string[]} keys - List of keys to split on. + * @returns {Object[]} - Tuple of objects, first object contains keys not in list, second contains keys that are. + */ +export function splitKeys(obj, keys) { + return Object.keys(obj).reduce( + ([keep, split], key) => { + const value = obj[key]; + + if (keys.includes(key)) { + return [keep, { ...split, [key]: value }]; + } + + return [{ ...keep, [key]: value }, split]; + }, + [{}, {}] + ); +} + +/** + * Replaces emojis in a string. + * @public + * @function + * @example + * scrubEmojis('Dove🕊️⭐ 29') + * @param {string} text - String that needs to be cleaned + * @param {string} replacementChars - Characters that replace the emojis + * @returns {string} + */ +export function scrubEmojis(text, replacementChars) { + if (!text) return text; + + if (replacementChars == '') { + console.warn( + 'Removing characters from a string may create injection vulnerabilities;', + "It's better to replace than remove.", + 'See https://www.unicode.org/reports/tr36/#Deletion_of_Noncharacters' + ); + } + + const newChars = + replacementChars || replacementChars == '' ? replacementChars : '\uFFFD'; + + const emojisPattern = + /(\uFE0F|\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g; + + return text.replace(emojisPattern, newChars); +} + +/** + * Chunks an array into an array of arrays, each with no more than a certain size. + * @public + * @function + * @example + * chunk([1,2,3,4,5], 2) + * @param {Object} array - Array to be chunked + * @param {Integer} chunkSize - The maxiumum size of each chunks + * @returns {Object} + */ +export function chunk(array, chunkSize) { + const output = []; + for (var i = 0, len = array.length; i < len; i += chunkSize) + output.push(array.slice(i, i + chunkSize)); + return output; +} + +const getParser = (csvData, options) => { + if (typeof csvData === 'string') { + return parse(csvData, options); + } + + let stream = csvData; + if (csvData instanceof ReadableStream) { + stream = Readable.from(csvData); + } + return stream.pipe(parse(options)); +}; + +/** + * Takes a CSV file string or stream and parsing options as input, and returns a promise that + * resolves to the parsed CSV data as an array of objects. + * Options for `parsingOptions` include: + * - `delimiter` {string/Buffer/[string/Buffer]} - Defines the character(s) used to delineate the fields inside a record. Default: `','` + * - `quote` {string/Buffer/[string/Buffer]} - Defines the characters used to surround a field. Default: `'"'` + * - `escape` {Buffer/string/null/boolean} - Set the escape character as one character/byte only. Default: `"` + * - `columns` {boolean / array / function} - Generates record in the form of object literals. Default: `true` + * - `bom` {boolean} - Strips the {@link https://en.wikipedia.org/wiki/Byte_order_mark byte order mark (BOM)} from the input string or buffer. Default: `true` + * - `trim` {boolean} - Ignore whitespace characters immediately around the `delimiter`. Default: `true` + * - `ltrim` {boolean} - Ignore whitespace characters from the left side of a CSV field. Default: `true` + * - `rtrim` {boolean} - Ignore whitespace characters from the right side of a CSV field. Default: `true` + * - `chunkSize` {number} - The size of each chunk of CSV data. Default: `Infinity` + * - `skip_empty_lines` {boolean} - Ignore empty lines in the CSV file. Default: `true` + * @public + * @function + * @param {String | Stream} csvData - A CSV string or a readable stream + * @param {Object} [parsingOptions] - Optional. Parsing options for converting CSV to JSON. + * @param {function} [callback] - (Optional) callback function. If used it will be called state and an array of rows. + * @returns {Operation} The function returns a Promise that resolves to the result of parsing a CSV `stringOrStream`. + */ +export function parseCsv(csvData, parsingOptions = {}, callback) { + const defaultOptions = { + delimiter: ',', + quote: '"', + escape: '"', + columns: true, + bom: true, + trim: true, + ltrim: true, + rtrim: true, + chunkSize: Infinity, + skip_empty_lines: true, + }; + + return async state => { + const [resolvedCsvData, resolvedParsingOptions] = expandReferences( + state, + csvData, + parsingOptions + ); + + const filteredOptions = Object.fromEntries( + Object.entries(resolvedParsingOptions).filter( + ([key]) => key in defaultOptions + ) + ); + + const options = { ...defaultOptions, ...filteredOptions }; + + if (options.chunkSize < 1) { + throw new Error('chunkSize must be at least 1'); + } + + let buffer = []; + + const parser = getParser(resolvedCsvData, options); + + const flushBuffer = async currentState => { + const nextState = callback + ? await callback(currentState, buffer) + : composeNextState(currentState, buffer); + + buffer = []; + + return [nextState, buffer]; + }; + + let result = state; + for await (const record of parser) { + buffer.push(record); + if (buffer.length === options.chunkSize) { + const [nextState, nextBuffer] = await flushBuffer(result); + result = nextState; + buffer = nextBuffer; + } + } + if (buffer.length) { + [result] = await flushBuffer(result); + } + return result; + }; +} + +const ajvVersions = {}; + +// We need to import different versions of AJV depending on the schema +// version - which is handled by this function +const getAjvVersion = async schema => { + if (/^https?:\/\/json-schema.org\/draft\/2019/.test(schema)) { + if (!ajvVersions['2019']) { + const Ajv = (await import('ajv/dist/2019.js')).default; + ajvVersions['2019'] = new Ajv(); + } + return ajvVersions['2019']; + } + if (/^https?:\/\/json-schema.org\/draft\/2020/.test(schema)) { + if (!ajvVersions['2020']) { + const Ajv = (await import('ajv/dist/2020.js')).default; + ajvVersions['2020'] = new Ajv(); + } + return ajvVersions['2020']; + } + + if (!ajvVersions['default']) { + const Ajv = (await import('ajv')).default; + ajvVersions['default'] = new Ajv(); + } + + return ajvVersions['default']; +}; + +/** + * Validate against a JSON schema. Any errors are written to an array at `state.validationErrors`. + * Schema can be passed directly, loaded as a JSON path from state, or loaded from a URL + * Data can be passed directly or loaded as a JSON path from state. + * By default, schema is loaded from `state.schema` and data from `state.data`. + * @public + * @function + * @param {string|object} schema - The schema, path or URL to validate against + * @param {string|object} data - The data or path to validate + * @example Validate `state.data` with `state.schema` + * validate() + * @example Validate form data at `state.form` with a schema from a URL + * validate("https://www.example.com/schema/record", "form") + * @example Validate the each item in `state.records` with a schema from a URL + * each("records[*]", validate("https://www.example.com/schema/record")) + * @returns {Operation} + */ +export function validate(schema = 'schema', data = 'data') { + return async state => { + if (!state.validationErrors) { + state.validationErrors = []; + } + + const resolvedData = resolveData(); + const resolvedSchema = await resolveSchema(); + // TODO: warn if the schema doesn't have an id? Does it matter? Maybe, if you're using multiple id-less schemas + const schemaId = resolvedSchema.$id || 'schema'; + if (!schemaCache[schemaId]) { + const ajv = await getAjvVersion(resolvedSchema.$schema); + schemaCache[schemaId] = ajv.compile(resolvedSchema); + } + + const validate = schemaCache[schemaId]; + + if (!validate(resolvedData)) { + state.validationErrors.push({ + data: state.data, + errors: validate.errors, + }); + } + return state; + + // Schema can be a url, jsonpath or object; or a function resolving to any of these + async function resolveSchema() { + // TODO hmm, I don't really want to expand schema if it's an object + const [schemaOrUrl] = expandReferences(state, schema); + + if (typeof schemaOrUrl === 'string') { + try { + // Check if the schema is a URL - in which case we fetch it + const url = new URL(schemaOrUrl); + const response = await request(url); + return response.body.json(); + } catch (e) { + if (e instanceof TypeError) { + // URL throws a TypeError if it's not a valid url, so we'll treat the string as a json path instead + return JSONPath({ path: schemaOrUrl, json: state })[0]; + } else { + // error fetching the url + console.error('Error fetching schema from ', schemaOrUrl); + console.error(e); + } + } + } + // schema is an object + return schemaOrUrl; + } + + // data can be a jsonpath or object; or function resolving to any of these + function resolveData() { + const [d] = expandReferences(state, data); + + if (typeof d === 'string') { + return JSONPath({ path: d, json: state })[0]; + } + return d; + } + }; +} + +let cursorStart = undefined; +let cursorKey = 'cursor'; + +/** + * Sets a cursor property on state. + * Supports natural language dates like `now`, `today`, `yesterday`, `n hours ago`, `n days ago`, and `start`, + * which will be converted relative to the environment (ie, the Lightning or CLI locale). Custom timezones + * are not yet supported. + * You can provide a formatter to customise the final cursor value, which is useful for normalising + * different inputs. The custom formatter runs after natural language date conversion. + * See the usage guide at {@link https://docs.openfn.org/documentation/jobs/job-writing-guide#using-cursors} + * @public + * @function + * @example Use a cursor from state if present, or else use the default value + * cursor($.cursor, { defaultValue: 'today' }) + * @example Use a pagination cursor + * cursor(22) + * @param {any} value - the cursor value. Usually an ISO date, natural language date, or page number + * @param {object} options - options to control the cursor. + * @param {string} options.key - set the cursor key. Will persist through the whole run. + * @param {any} options.defaultValue - the value to use if value is falsy + * @param {Function} options.format - custom formatter for the final cursor value + * @returns {Operation} + */ +export function cursor(value, options = {}) { + return state => { + const { format, ...optionsWithoutFormat } = options; + const [resolvedValue, resolvedOptions] = expandReferences( + state, + value, + optionsWithoutFormat + ); + + const { + defaultValue, // if there is no cursor on state, this will be used + key, // the key to use on state + // format // pulled out before reference resolution else or it'll be treated as a ref! + } = resolvedOptions; + + if (key) { + cursorKey = key; + } + + if (!cursorStart) { + cursorStart = new Date(); + } + + const cursor = resolvedValue ?? defaultValue; + if (typeof cursor === 'string') { + const date = parseDate(cursor, cursorStart); + if (date instanceof Date && date.toString !== 'Invalid Date') { + state[cursorKey] = format?.(date) ?? date.toISOString(); + + const formatted = format + ? state[cursorKey] + : // If no custom formatter is provided, + // Log the converted date in a very international, human-friendly format + // See https://date-fns.org/v3.6.0/docs/format + dateFns.format(date, 'HH:mm d MMM yyyy (OOO)'); + + console.log(`Setting ${cursorKey} "${cursor}" to: ${formatted}`); + return state; + } + } + state[cursorKey] = format?.(cursor) ?? cursor; + console.log(`Setting ${cursorKey} to:`, state[cursorKey]); + + return state; + }; +} + +/** + * Asserts the given expression or function resolves to `true`, or else throws an exception. Optionally accepts and error message. + * @public + * @function + * @example + * assert('a' === 'b', '"a" is not equal to "b"') + * @param {any} expression - The expression or function to be evaluated. + * @param {string} errorMessage - The error message thrown in case of a failed state. + * @returns {operation} + */ +export function assert(expression, errorMessage) { + return state => { + const [resolvedValue, resolvedErrorMessage] = expandReferences( + state, + expression, + errorMessage + ); + + if (!resolvedValue) { + throw new Error( + resolvedErrorMessage || + `assertion statement failed with ${resolvedValue}` + ); + } + + return state; + }; +} + +/** + * Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks. + * @public + * @function + * @example Log values from state + * log('Patient List::', $.patients); + * @example Use console.log inside a callback or fn block + * fn((state) => { + * console.log(state.data); + * return state; + * }) + * @param {any} args - A value or message to display in the logs + * @returns {Operation} + */ +export function log(...args) { + return state => { + const [resolvedArgs] = expandReferences(state, args); + console.log(...resolvedArgs); + return state; + }; +} + +/** + * Outputs a message to the console with the debug log level. This is usually filtered out by default. Use this at the top level of your job code, but not inside callbacks. + * @public + * @function + * @example Log values from state + * debug('Patient List::', $.patients); + * @example Use console.debug inside a callback or fn block + * fn((state) => { + * console.debug(state.data); + * return state; + * }) + + * @param {any} args - A value or message to display in the logs + * @returns {Operation} + */ +export function debug(...args) { + return state => { + const [resolvedArgs] = expandReferences(state, args); + console.debug(...resolvedArgs); + return state; + }; +} + +/** + * Run an operation and save the result to a custom key in state instead of overwriting state.data. + * @public + * @function + * @example Fetch cce-data from collections and store them under state.cceData + * as('cceData', collections.get('cce-data-dhis2', { key: `*:*:${$.syncedAt}*` })); + * @param {string} key - The state key to assign the result of the operation to. + * @param {function} operation - An operation that returns a new state object with a `data` property + * @returns {Operation} + */ +export function as(key, operation) { + return async state => { + const [resolvedKey] = expandReferences(state, key); + const prevState = state.data; + const result = await operation(state); + const { data, ...rest } = result; + + state[resolvedKey] = data; + state.data = prevState; + return { ...state, ...rest }; + }; +} diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/beta.js b/tools/adaptor-apis/.adaptors/common@latest/src/beta.js new file mode 100644 index 0000000000..82141db248 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/beta.js @@ -0,0 +1,52 @@ +import { asData } from './Adaptor.js' +/** + * Scopes an array of data based on a JSONPath. + * Useful when the source data has `n` items you would like to map to + * an operation. + * The operation will receive a slice of the data based of each item + * of the JSONPath provided. + * + * It also ensures the results of an operation make their way back into + * the state's references. + * @public + * @example + * each("$.[*]", + * create("SObject", + * field("FirstName", sourceValue("$.firstName"))) + * ) + * @function + * @param {DataSource} dataSource - JSONPath referencing a point in `state`. + * @param {Operation} operation - The operation needed to be repeated. + * @returns {Operation} + */ +export function each(dataSource, operation) { + if (!dataSource) { + throw new TypeError("dataSource argument for each operation is invalid.") + } + + return (prevState) => { + + const items = asData(dataSource,prevState) + const nextState = items.reduce( + (state, data, index) => { + if (state.then) { + return state.then((state) => { + return operation({ ...state, data, index }) + }) + } else { + return operation({ ...state, data, index }) + } + }, + prevState + ) + + // Ensure that the data this reducer was passed is returned to it's + // original state. But allow any other changes to be kept. + if (nextState.then) { + return nextState.then((nextState) => ( { ...nextState, data: prevState.data } )) + } else { + return ( { ...nextState, data: prevState.data } ); + } + + } +} diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/dateFns.js b/tools/adaptor-apis/.adaptors/common@latest/src/dateFns.js new file mode 100644 index 0000000000..e8b130021e --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/dateFns.js @@ -0,0 +1,15 @@ +export { + /** + * The parse function from the date-fns library. See {@link https://date-fns.org/v3.6.0/docs/parse} + * @public + * @function + */ + parse, + + /** + * The format function from the date-fns library. See {@link https://date-fns.org/v3.6.0/docs/parse} + * @public + * @function + */ + format, +} from 'date-fns'; diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/http.js b/tools/adaptor-apis/.adaptors/common@latest/src/http.js new file mode 100644 index 0000000000..5f2f0fd978 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/http.js @@ -0,0 +1,163 @@ +import _ from 'lodash'; +import * as util from './util/index.js'; +const { request, expandReferences } = util; + +const { set } = _; +/** + * Helper functions provided by `http.options`. + * @typedef OptionsHelpers + * @public + * @property {function} json - Sets the `content-type' header to 'application/json' + * @property {function} basic - Sets basic auth on the Authorization header. Pass username and password + * @property {function} bearer - Sets a Bearer token on the Authorization header. Pass the token. + * @property {function} oauth - Sets a Bearer token on the Authorization header. Pass the oauth token. + */ + +const helpers = { + json: function () { + set(this, 'headers.Content-Type', 'application/json'); + return this; + }, + basic: function (username, password) { + const buff = Buffer.from(`${username}:${password}`); + const credentials = buff.toString('base64'); + + set(this, 'headers.Authorization', `Basic ${credentials}`); + return this; + }, + bearer: function (token) { + set(this, 'headers.Authorization', `Bearer ${token}`); + return this; + }, + oauth: function (token) { + set(this, 'headers.Authorization', `Bearer ${token}`); + return this; + }, +}; + +/** + * Builder function to create request options. Returns an object with helpers to + * easily add commonly used options. The return object is chainable so you can set + * as many options as you want. + * Pass an object to set your own options. + * @param {OptionsHelpers} opts - options to pass to the request + * @returns {OptionsHelpers} + * @function + * @public + * @example Get with a query an oauth token + * http.get($.data.url, http.options({ query: $.query }).oauth($.configuration.access_token)) + */ +export function options(opts = {}) { + for (let h in helpers) { + Object.defineProperty(opts, h, { + enumerable: false, + value: helpers[h], + }); + } + + return opts; +} + +/** + * Options provided to the HTTP request + * @typedef {Object} CommonRequestOptions + * @property {object|boolean} errors - Map of errorCodes -> error messages, ie, `{ 404: 'Resource not found;' }`. Pass `false` to suppress errors. + * @property {object} form - Pass a JSON object to be serialised into a multipart HTML form (as FormData) in the body. + * @property {object} query - An object of query parameters to be encoded into the URL. + * @property {object} headers - An object of headers to append to the request. + * @property {string} parseAs - Parse the response body as json, text or stream. By default will use the response headers. + * @property {number} timeout - Request timeout in ms. Default: 300 seconds. + * @property {object} tls - TLS/SSL authentication options. See https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions + */ + +/** + * State object + * @typedef {Object} CommonHttpState + * @private + * @property data - the parsed response body + * @property response - the response from the HTTP server, including headers, statusCode, body, etc + * @property references - an array of all previous data objects used in the Job + **/ + +/** + * Make a HTTP request. + * @public + * @function + * @example + * http.request( + * 'GET', + * 'https://jsonplaceholder.typicode.com/todos' + * ) + * @name request + * @param {string} method - The HTTP method to use. + * @param {string} url - URL to resource. + * @param {CommonRequestOptions} options - Request options + * @state {CommonHttpState} + * @returns {Operation} + */ +const req = function (method, url, options) { + return async state => { + const [resolvedMethod, resolvedUrl, resolvedOptions] = expandReferences( + state, + method, + url, + options + ); + const { body, ...responseWithoutBody } = await request( + resolvedMethod, + resolvedUrl, + resolvedOptions + ); + return { + ...state, + response: responseWithoutBody, + data: body, + }; + }; +}; +export { req as request }; + +/** + * Make a GET request. + * @public + * @function + * @example Request a resource + * http.get('https://jsonplaceholder.typicode.com/todos') + * @example Request a resource with basic auth + * http.get( + * 'https://jsonplaceholder.typicode.com/todos', + * http.options().basic('user', 'pass') + * ) + * @example Request a resource with oauth + * http.get( + * 'https://jsonplaceholder.typicode.com/todos', + * http.options().oauth($.configuration.access_token) + * ) + * @param {string} url - URL to access + * @param {CommonRequestOptions} options - Request options + * @state {CommonHttpState} + * @returns {Operation} + */ +export function get(url, options) { + return req('GET', url, options); +} + +/** + * Make a POST request. + * @public + * @function + * @example Post a JSON object (setting the content-type header) + * http.post( + * "https://jsonplaceholder.typicode.com/todos", + * $.data, + * http.options().json() + * ); + * @param {string} url - URL to access + * @param {object} data - Body data to append to the request. + * @param {CommonRequestOptions} options - Request options + * @state {CommonHttpState} + * @returns {Operation} + */ +export function post(url, data, options) { + return req('POST', url, { body: data, ...options }); +} diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/index.js b/tools/adaptor-apis/.adaptors/common@latest/src/index.js new file mode 100644 index 0000000000..07aff8c1c9 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/index.js @@ -0,0 +1,9 @@ +import * as Adaptor from './Adaptor'; +export default Adaptor; + +export * from './Adaptor'; + +export * as beta from './beta'; +export * as http from './http'; +export * as util from './util/index.js'; +export * as dateFns from './dateFns'; diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/index.ts b/tools/adaptor-apis/.adaptors/common@latest/src/index.ts new file mode 100644 index 0000000000..bff5fdc1cf --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/index.ts @@ -0,0 +1,12 @@ +import * as Adaptor from './Adaptor'; +export default Adaptor; + +export * from './Adaptor'; + +export * as beta from './beta'; +export * as http from './http'; +export * as dateFns from './dateFns'; +export * as util from './util'; + +import * as metadata from './metadata'; +export { metadata }; diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/metadata.js b/tools/adaptor-apis/.adaptors/common@latest/src/metadata.js new file mode 100644 index 0000000000..a1a2c1305a --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/metadata.js @@ -0,0 +1,52 @@ +/* + * This file contains utility and helper methods for metadata functions + */ + +/** + * Creates a metadata model entity representing some data in a dataaousrce + * @private + * @function + * @param {string} name - The entity name (ie, Account or Table) + * @param {string} type - A type label for the entity (ie, sObject, orgUnit) + * @param {object} props - Properties to describe the entity (label, datatype) + * @returns {Entity} + */ +export const createEntity = (name, type, props = {}, children) => { + const { label, datatype, ...meta } = props; + + const e = { + name, // basic identifier (should reflect the id or name in the datasource) + type, // domain specific type + addChild: function (e, name) { + if (!this.children) { + this.children = name ? {} : []; + } + if (name) { + if (Array.isArray(this.children)) { + throw new Error('Cannot add a named entity to child array'); + } + this.children[name] = e; + } else { + // will throw if children is an object + this.children.push(e); + } + }, + }; + + if (label) { + e.label = label; // the label to show the user + } + + if (datatype) { + e.datatype = datatype; // monaco-facing type + } + + if (children) { + e.children = children; + } + + // ensure meta object or we get problems in jsonpath + e.meta = meta || {}; + + return e; +}; diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/metadata.ts b/tools/adaptor-apis/.adaptors/common@latest/src/metadata.ts new file mode 100644 index 0000000000..78669e8e0f --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/metadata.ts @@ -0,0 +1,21 @@ +// Generic entity in a data model +export type Entity = { + name: string; // the value when inserted + type: string; // domain-specific type string (eg OrgUnit, sObject) + + label?: string; // human readable label + datatype?: string; // the javascript type (shown in monaco) + desc?: string; // a longer description + + children?: Entity[] | Record; + + // arbitrary extra stuff goes in the meta object + meta?: Record; + + addChild: (e: Entity, name?: string) => void; +}; + +// we need to map data types into a standard +// SF's types are UI focused, like picklist, reference, id. They also have string and datetime +// So we need to work out what htis list is +export type DataType = 'string' | 'boolean' | 'date'; diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/util/base64.js b/tools/adaptor-apis/.adaptors/common@latest/src/util/base64.js new file mode 100644 index 0000000000..fd4132a611 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/util/base64.js @@ -0,0 +1,67 @@ +import _ from 'lodash'; + +/** + * Encodes a given string or Javascript object into Base64 format. + * @function + * @public + * @namespace util + * @param {string | object} data - The string or object to be encoded. + * @param {object} options - Options + * @param {boolean} [options.parseJson=true] - If false, no attempt will be made to stringiy the data before encoding it. + * @returns {string} - The Base64 encoded string. + * @example Encode a string + * const encodedString = util.encode('Hello World'); + * console.log(encoded); // Output: SGVsbG8gV29ybGQ= + * @example Encode an object + * const encodedObject = util.encode({name: 'Jane Doe' }) + * console.log(encodedObject); //output eyJuYW1lIjoiSmFuZSBEb2UifQ== + * @example To skip the JSON stringification step + * const encodedObject = util.encode('Hello World', { parseJson: false }) + */ +export const encode = (data, options = { parseJson: true }) => { + let str = data; + + if (typeof data !== 'string' && options.parseJson) { + try { + str = JSON.stringify(str); + } catch (e) { + console.log(e.message); + } + } + + return Buffer.from(str, 'utf-8').toString('base64'); +}; + +/** + * Decodes a Base64 encoded string back to its original format. + * @function + * @public + * @namespace util + * @param {string} base64Data - The Base64 encoded string. + * @param {object} options - Options. + * @param {boolean} [options.parseJson=true] - If false, no attempt will be made to parse the decoded data into a JSON object. + * @returns {string | object} - The decoded string or JavaScript Object. + * @example Decode a Base64 string + * const decoded = util.decode('SGVsbG8gV29ybGQ='); + * @example Decode a Base64 JSON object to a standard JavaScript object + * const decoded = util.decode('eyJuYW1lIjoiSmFuZSBEb2UifQ=='); + * console.log(decoded); // Output: {name: 'Jane Doe' } + * @example To skip the JSON stringification step + * const decodedString = util.decode('Hello World', { parseJson: false }) + */ +export const decode = (base64Data, options = { parseJson: true }) => { + let decodedValue = Buffer.from(base64Data, 'base64').toString('utf-8'); + + if ( + (_.startsWith(decodedValue, '[') || _.startsWith(decodedValue, '{')) && + options.parseJson + ) { + try { + decodedValue = JSON.parse(decodedValue); + } catch (e) { + console.log(e.message); + } + } + + return decodedValue; +}; diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/util/http.js b/tools/adaptor-apis/.adaptors/common@latest/src/util/http.js new file mode 100644 index 0000000000..a28afae9cd --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/util/http.js @@ -0,0 +1,429 @@ +import { getReasonPhrase } from 'http-status-codes'; +import { Readable } from 'node:stream'; +import querystring from 'node:querystring'; +import path from 'node:path'; +import throwError from './throw-error.js'; +import { encode } from './base64.js'; +import { MockAgent, Agent, interceptors } from 'undici'; +import _ from 'lodash'; + +// Maps undici dispatchers to keys (where a key is the base url + encoded options) +const agents = new Map(); + +export const makeBasicAuthHeader = (username, password) => { + const buff = Buffer.from(`${username}:${password}`); + const credentials = buff.toString('base64'); + return { Authorization: `Basic ${credentials}` }; +}; + +export const logResponse = response => { + const { method, url, statusCode, duration, query } = response; + + if (method && url && duration && statusCode) { + const urlWithQuery = Object.keys(query || {}).length + ? `${url}?${new URLSearchParams(query).toString()}` + : url; + + const message = `${method} ${urlWithQuery} - ${statusCode} in ${duration}ms`; + if (response instanceof Error) { + console.error(message); + console.error('response body: '); + console.error(response.body || '[no body]'); + } else { + console.log(message); + } + } + + return response; +}; + +// Sort an object into a string of key,value pairs +// Supports nesting +const sortObject = obj => + _(obj) + .toPairs() + .filter(([_k, v]) => v !== undefined) // ignore undefined values + .sortBy(0) + .map(([k, v]) => { + if (v && typeof v === 'object') { + if (!Object.keys(v).length) { + return ''; + } + // eslint-disable-next-line no-param-reassign + v = `${'{'}${sortObject(v)}${'}'}`; + } + return [k, v].join(':'); + }) + .join('|'); + +export const generateAgentKey = (baseUrl, agentOpts = {}) => { + if (Object.keys(agentOpts).length) { + const sortedSerializedOptions = sortObject(agentOpts); + if (sortedSerializedOptions.length) { + return `${baseUrl}+${sortedSerializedOptions}`; + } + } + return baseUrl; +}; + +const getDispatcher = (origin, options = {}) => { + const { tls = {}, defaultContentType, ...agentOpts } = options; + const key = generateAgentKey(origin, options); + if (!agents.has(key)) { + const agent = new Agent({ + connect: tls, + ...agentOpts, + }).compose( + interceptors.redirect({ + maxRedirections: agentOpts.maxRedirections, + }), + interceptors.decompress(), + ); + + agents.set(key, agent); + } + + return agents.get(key); +}; + +// Set the agent for a URL + options to be a mock dispatcher +// This causes all subsequent getDispatcher calls to use the mock, +// rather than a real dispatcher +// Note that when testing adaptors, options like maxRedirections +// MUST be set or else the mock agent will not be used! +export const enableMockClient = (baseUrl, options = {}) => { + const { + defaultContentType = 'application/json', + tls = {}, + ...agentOpts + } = options; + + const mockAgent = new MockAgent({ connections: 1 }); + mockAgent.disableNetConnect(); + + const key = generateAgentKey(baseUrl, { + ...agentOpts, + tls, + }); + console.log('Creating mock client for key:', key); + + const dispatcher = mockAgent.get(baseUrl); + if (defaultContentType) { + const _intercept = dispatcher.intercept; + // because so many unit test use mock json, + // force the content-type header if a body is specified + dispatcher.intercept = (...args) => { + const interceptor = _intercept.apply(dispatcher, args); + + const _reply = interceptor.reply; + + const ensureJsonHeader = (headers = {}) => { + const hasJsonHeader = Object.keys(headers).find(k => + /content-type/i.test(k), + ); + if (!hasJsonHeader) { + headers['content-type'] = defaultContentType; + } + }; + + const reply = (...args) => { + if (typeof args[0] === 'function') { + // call the function + // in the resulting object, set the headers + const response = _reply.apply(interceptor, args); + if (response.body) { + response.headers ??= {}; + ensureJsonHeader(response.headers); + } + return response; + } else { + const [code, data, options = {}] = args; + if (data) { + options.headers ??= {}; + ensureJsonHeader(options.headers); + } + return _reply.call(interceptor, code, data, options); + } + }; + + interceptor.reply = reply; + + return interceptor; + }; + } + + if (!agents.has(key)) { + agents.set(key, mockAgent); + } + return dispatcher; +}; + +const assertOK = async (response, errorMap, fullUrl, method, startTime) => { + if (errorMap === false) { + return; + } + + const errMapMessage = errorMap[response.statusCode]; + + const isError = + typeof errMapMessage === 'boolean' + ? errMapMessage + : errMapMessage || response.statusCode >= 400; + + if (isError) { + const body = await readResponseBody(response); + + const statusText = getReasonPhrase(response.statusCode); + const defaultErrorMessage = `${method} to ${fullUrl} returned ${response.statusCode}: ${statusText}`; + + const duration = Date.now() - startTime; + + const errMessage = + typeof errMapMessage === 'function' + ? errMapMessage(response) + : errMapMessage || defaultErrorMessage; + + const error = new Error(errMessage); + error.statusCode = response.statusCode; + error.statusMessage = statusText; + error.url = fullUrl; + error.duration = duration; + error.method = method; + error.body = body; + error.headers = response.headers; + throw error; + } +}; + +export const ERROR_ABSOLUTE_URL = 'Absolute URLs not supported'; + +// throws if a path is absolute +export const assertRelativeUrl = path => { + if (/https?:\/\//.test(path)) { + const e = new Error('UNEXPECTED_ABSOLUTE_URL'); + e.code = 'UNEXPECTED_ABSOLUTE_URL'; + e.description = + 'An absolute URL was provided (https://...) but only a path (/a/b/c) is supported'; + e.url = path; + e.fix = + 'Remove the protocol, domain and origin from the provided URL. Maybe you need to use the generic HTTP helper functions instead?'; + throw e; + } +}; + +export const ERROR_URL_MISMATCH = 'Target origin does not match baseUrl origin'; + +export const parseUrl = (pathOrUrl = '', baseUrl) => { + let fullUrl; + + // We handle our own URL parsing rather than leaning on node:url + // because we are non-strict about the baseURL (ie, we do not ignore the path) + if (/https?:\/\//.test(pathOrUrl)) { + fullUrl = new URL(pathOrUrl); + + // If the url is absolute, and there's a basePath, ensure they point to the same origin + if (baseUrl) { + const base = new URL(baseUrl); + if (fullUrl.origin !== base.origin) { + const e = new Error(ERROR_URL_MISMATCH); + e.code = 'BASE_URL_MISMATCH'; + e.description = `A request was attempted to an absolute URL, but a different base URL was specified. This is a potential security violation.`; + e.target = pathOrUrl; + e.baseUrl = baseUrl; + e.fix = 'Try using a generic HTTP function to access the target URL'; + throw e; + } + } + } else if (baseUrl) { + // Note: we use path.join here because our "baseUrl" may not be a stict base url + // Ie it may be https://example.com/api/v1 + // Doing new URl(path, base) will chop off the "base path" so to speak, and break stuff + // Technically path.join will produce an invalid URL, but the URL parser handles it safely + fullUrl = new URL(path.posix.join(baseUrl, pathOrUrl)); + } else { + // let this throw + new URL(pathOrUrl); + } + return { + url: fullUrl.toString(), + baseUrl: fullUrl.origin, + path: fullUrl.pathname, + query: querystring.parse(fullUrl.searchParams.toString()), + }; +}; + +/** + * `request` is a helper function that sends HTTP requests and returns the response + * body, headers, and status code. + * Use the error map to provide custom error messages or get hold of the response in case of errors. + * @param method - The HTTP method to use for the request (e.g., "GET", "POST", "PUT", "DELETE", etc.). + * @param fullUrlOrPath - The full or partial URL for the request. + * @param [options] - The `options` parameter is an object that contains additional configuration + * options for the request. + * @returns an object with the following properties: + * - method: the request method + * - url: the request url + * - code: the status code of the response + * - headers: the headers of the response + * - body: the body of the response + * - message: the status text of the response + * - duration: the response time + */ +export async function request(method, fullUrlOrPath, options = {}) { + const startTime = Date.now(); + const { + url, + baseUrl, + path, + query: urlQuery, + } = parseUrl(fullUrlOrPath, options.baseUrl); + const { + headers = {}, + query: optionQuery = {}, + body, + errors = {}, + timeout = 300e3, // Default to 300 seconds + tls = {}, + parseAs = 'auto', + maxRedirections, + throwOnUnhandledRedirect = true, // Internal use only + } = options; + + const dispatcher = getDispatcher(baseUrl, { tls, maxRedirections }); + + const queryParams = { + ...optionQuery, + ...urlQuery, + }; + + const response = await dispatcher.request({ + path, + query: queryParams, + method, + headers, + body: encodeRequestBody(body), + bodyTimeout: timeout, + headersTimeout: timeout, + // If the request is redirected, undici requires the origin to be set (this affects commcare) + origin: baseUrl, + }); + + const statusText = getReasonPhrase(response.statusCode); + + await assertOK(response, errors, url, method, startTime); + + // redirect codes https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status#redirection_messages + const hasRedirectStatus = [300, 301, 302, 303, 304, 305, 307, 308].includes( + response.statusCode, + ); + + if ( + hasRedirectStatus && + maxRedirections === undefined && + throwOnUnhandledRedirect + ) { + throwError(response.statusCode, { + statusMessage: statusText, + description: `Response has redirect status, but 'maxRedirections' is not set`, + fix: + `Set 'maxRedirections' to enable auto-redirect.` + + `Example: request('GET', '${fullUrlOrPath}', { maxRedirections: 5 })`, + }); + } + + const responseBody = await readResponseBody(response, parseAs); + const endTime = Date.now(); + const duration = endTime - startTime; + + const requestResponse = { + url, + method, + statusCode: response.statusCode, + statusMessage: statusText, + headers: response.headers, + body: responseBody, + duration, + }; + if (Object.keys(queryParams).length > 0) { + requestResponse.query = queryParams; + } + return requestResponse; +} + +function encodeRequestBody(body) { + if (!body) { + return undefined; + } + + if ( + Buffer.isBuffer(body) || + body instanceof Readable || + typeof body === 'string' + ) { + return body; + } + + if (typeof body === 'object') { + if ( + Symbol.asyncIterator in Object(body) || + Symbol.iterator in Object(body) || + body instanceof FormData + ) { + return body; + } + return JSON.stringify(body); + } + + throw new Error('Unsupported body type'); +} + +async function readResponseBody(response, parseAs) { + let contentLength = -1; + if ('content-length' in response.headers) { + contentLength = parseInt(response.headers['content-length']); + } + const contentType = response.headers['content-type']; + + // Try to work out if the response is empty + // HTTP spec says content type must be defined if there's a body + if (contentLength === 0 || !contentType || response.statusCode === 204) { + return; + } + + try { + switch (parseAs) { + case 'json': + return await response.body.json(); + case 'text': + return response.body.text(); + case 'stream': + return response.body; + case 'base64': + const arrayBuffer = await response.body.arrayBuffer(); + return encode(arrayBuffer, { parseJson: false }); + default: + return contentType && contentType.includes('application/json') + ? await response.body.json() + : response.body.text(); + } + } catch (error) { + throwError(response.statusCode, { + description: 'Error parsing the response body', + parseAs, + contentType, + bodyLength: contentLength, + error: error.message, + }); + } +} + +export const get = (url, options) => request('GET', url, options); + +export const post = (url, body, options) => + request('POST', url, { body, ...options }); + +export const put = (url, body, options) => + request('PUT', url, { body, ...options }); + +export const del = (url, body, options) => + request('DELETE', url, { body, ...options }); diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/util/index.js b/tools/adaptor-apis/.adaptors/common@latest/src/util/index.js new file mode 100644 index 0000000000..b7f805fb5a --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/util/index.js @@ -0,0 +1,7 @@ +export * from './http.js'; +export * from './references.js'; + +export { default as parseDate } from './parse-date.js'; +export { default as throwError } from './throw-error.js'; +export { encode, decode } from './base64.js'; +export { uuid } from './uuid.js'; diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/util/parse-date.js b/tools/adaptor-apis/.adaptors/common@latest/src/util/parse-date.js new file mode 100644 index 0000000000..6a0072d39b --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/util/parse-date.js @@ -0,0 +1,34 @@ +import { startOfToday, startOfYesterday, subHours, subDays, startOfDay } from 'date-fns' + +// Helper function to parse a natural-language date string into an ISO date +export default (d, startDate) => { + try { + if (d === 'start') { + return startDate; + } else if (d === 'now' || d === 'end') { + return new Date() + } + else if (d === 'today') { + return startOfToday() + } + else if (d === 'yesterday') { + return startOfYesterday() + } + else if (/(hours? ago)$/.test(d)) { + // return the same minute n hours ago + const [diff] = d.match(/\d+/) + return subHours(new Date(), diff) + } + else if (/(days? ago)$/.test(d)) { + // return the start of today - n days + const [diff] = d.match(/\d+/) + return startOfDay(subDays(new Date(), diff)) + } + } catch(e) { + console.log(`Error converting ${d} into a date`) + console.log(e) + } + + // Just return the value if we couldn't parse it + return d; +} diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/util/references.js b/tools/adaptor-apis/.adaptors/common@latest/src/util/references.js new file mode 100644 index 0000000000..b890f77b42 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/util/references.js @@ -0,0 +1,65 @@ +import { Readable, Writable } from 'node:stream'; + +// TODO this doesn't currently support skip +export function expandReferences(state, ...args) { + return args.map(value => expandReference(state, value)); +} + +const isStream = value => { + if (value && typeof value == 'object') { + if (value instanceof Readable || value instanceof Writable) { + return true; + } + // This should catch streams returned by fetch (which for some reason aren't proper streams?) + if (value.pipeTo || value.pipe) { + return true; + } + } + return false; +}; + +function expandReference(state, value) { + if ( + Buffer.isBuffer(value) || + // Note: there is a weird identity thing in the VM where typeof RegExp will be false ¯\_(ツ)_/¯ + value?.constructor?.name === 'RegExp' + ) { + return value; + } + + if (Array.isArray(value)) { + return value.map(v => expandReference(state, v)); + } + + if (typeof value == 'object' && !!value && !isStream(value)) { + return Object.keys(value).reduce((acc, key) => { + return { ...acc, [key]: expandReference(state, value[key]) }; + }, {}); + } + + if (typeof value == 'function') { + return expandReference(state, value(state)); + } + return value; +} + +export function normalizeOauthConfig(configuration) { + const { access_token, accessToken } = configuration; + + if (access_token && accessToken) + throw new Error( + 'Both "accessToken" & "access_token" keys found in configuration; ' + + 'please use only "access_token" for OAuth2 credentials.' + ); + + if (access_token) return { ...configuration, accessToken: access_token }; + + console.log( + 'Key "access_token" not found in state.configuration;', + 'is this a standard OAuth 2.0 JSON credential?' + ); + + if (accessToken) console.log('Using "accessToken" from state.configuration'); + + return configuration; +} diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/util/throw-error.js b/tools/adaptor-apis/.adaptors/common@latest/src/util/throw-error.js new file mode 100644 index 0000000000..51161ec35d --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/util/throw-error.js @@ -0,0 +1,16 @@ +export default (code, { description, fix, ...extras } = {}) => { + const message = description ? `${code}: ${description}` : code; + const e = new Error(message); + e.code = code; + + if (description) { + e.description = description; + } + if (fix) { + e.fix = fix; + } + for (const key in extras) { + e[key] = extras[key]; + } + throw e; +}; diff --git a/tools/adaptor-apis/.adaptors/common@latest/src/util/uuid.js b/tools/adaptor-apis/.adaptors/common@latest/src/util/uuid.js new file mode 100644 index 0000000000..68c7ed7ff3 --- /dev/null +++ b/tools/adaptor-apis/.adaptors/common@latest/src/util/uuid.js @@ -0,0 +1,13 @@ +import { randomUUID } from 'node:crypto'; + +/** + * Generates a UUID (Universally Unique Identifier) + * @function + * @public + * @namespace util + * @returns {string} - A newly generated UUID + * @example Generate a UUID + * const id = util.uuid(); + * console.log(id); // Output:'3f4e254e-8f6f-4f8b-9651-1c1c262cc83f' + */ +export const uuid = () => randomUUID();