<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-observation" />
  <url value="https://fhir.synapxe.sg/StructureDefinition/profile-observation" />
  <name value="Observation" />
  <title value="Observation Profile" />
  <status value="active" />
  <publisher value="Synapxe" />
  <description value="This resource will be used to store measurements and simple assertions made about a patient, device or other subject." />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <definition value="Carries these NEHR XML elements:&#xA;&#xA;- `putEDNotes/content/Triage`: Triage information for the patient.&#xA;- `putEDNotes/content/Consultation`: Consultation details for the patient.&#xA;- `putEDNotes/content/VitalSigns`: Vital signs of the patient.&#xA;- `putEDNotes/content/GCS`: Glasgow Coma Scale assessment.&#xA;- `putScreeningSummary/screeningSummary/investigationResultList/investigationType/investigationResult`: Results grouped under a specific investigation type and investigation name." />
    </element>
    <element id="Observation.meta">
      <path value="Observation.meta" />
    </element>
    <element id="Observation.meta.profile">
      <path value="Observation.meta.profile" />
      <max value="1" />
    </element>
    <element id="Observation.extension:stage">
      <path value="Observation.extension" />
      <sliceName value="stage" />
      <definition value="Carries these NEHR XML elements:&#xA;&#xA;- `putEDNotes/content/VitalSigns/Stage`: Stage of visit when the vital signs were taken.&#xA;- `putScreeningSummary/screeningSummary/investigationResultList/investigationType/investigationResult/stageId`: Identifier of the screening stage within the screening episode." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/ext-stage" />
      </type>
    </element>
    <element id="Observation.modifierExtension">
      <path value="Observation.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Observation.identifier">
      <path value="Observation.identifier" />
      <definition value="Carries this NEHR XML element:&#xA;&#xA;- `putScreeningSummary/screeningSummary/investigationResultList/investigationType/investigationResult/recordIdentifier`: Unique identifier for this investigation result within the source system." />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-identifier-investigation-id" />
      </type>
    </element>
    <element id="Observation.instantiates[x]">
      <path value="Observation.instantiates[x]" />
      <max value="0" />
    </element>
    <element id="Observation.basedOn">
      <path value="Observation.basedOn" />
      <max value="0" />
    </element>
    <element id="Observation.triggeredBy">
      <path value="Observation.triggeredBy" />
      <max value="0" />
    </element>
    <element id="Observation.partOf">
      <path value="Observation.partOf" />
      <max value="0" />
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <definition value="Carries this NEHR XML element:&#xA;&#xA;- `putScreeningSummary/screeningSummary/investigationResultList/investigationType/investigationResult/resultStatus`: Status of the released investigation result group." />
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <definition value="Carries this NEHR XML element:&#xA;&#xA;- `putScreeningSummary/screeningSummary/investigationResultList/investigationType/investigationResult/name`: Name of the investigation group." />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="Observation.code.extension">
      <path value="Observation.code.extension" />
      <max value="0" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-reference-patient" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-patient" />
      </type>
    </element>
    <element id="Observation.focus">
      <path value="Observation.focus" />
      <max value="0" />
    </element>
    <element id="Observation.encounter">
      <path value="Observation.encounter" />
      <max value="0" />
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <definition value="Carries these NEHR XML elements:&#xA;&#xA;- `putEDNotes/content/EventInformation/TriageStartDateTime`: Date and time triage began.&#xA;- `putEDNotes/content/EventInformation/ConsultationStartDateTime`: Date and time consultation began.&#xA;- `putEDNotes/content/VitalSigns/TakenDateTime`: Date and time when the vital signs were taken.&#xA;- `putEDNotes/content/GCS/TakenDateTime`: Date and time when the assessment was performed.&#xA;- `putScreeningSummary/screeningSummary/investigationResultList/investigationType/investigationResult/reportDate`: Date and time at which the results group was reported." />
      <min value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation.issued">
      <path value="Observation.issued" />
      <max value="0" />
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <definition value="Carries these NEHR XML elements:&#xA;&#xA;- `putEDNotes/content/VitalSigns/CreateBy`: Person who recorded the vital signs.&#xA;- `putScreeningSummary/screeningSummary/investigationResultList/investigationType/investigationResult/institution`: Healthcare institution from where the result is reported." />
      <type>
        <code value="Reference" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-reference-practitioner" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-reference-organization" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-practitioner" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-organization" />
      </type>
    </element>
    <element id="Observation.performer.identifier">
      <path value="Observation.performer.identifier" />
      <definition value="Carries these NEHR XML elements:&#xA;&#xA;- `putEDNotes/content/VitalSigns/CreateBy/Mcr`: Medical Council Registration number.&#xA;- `putScreeningSummary/screeningSummary/investigationResultList/investigationType/investigationResult/institution/code`: Healthcare institution identifier." />
    </element>
    <element id="Observation.performer.display">
      <path value="Observation.performer.display" />
      <definition value="Carries these NEHR XML elements:&#xA;&#xA;- `putEDNotes/content/VitalSigns/CreateBy/Name`: Name of the doctor.&#xA;- `putScreeningSummary/screeningSummary/investigationResultList/investigationType/investigationResult/institution/description`: Name of the healthcare institution." />
      <min value="1" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <definition value="Carries this NEHR XML element:&#xA;&#xA;- `putEDNotes/content/GCS/Total`: Total Glasgow Coma Scale score." />
      <type>
        <code value="Quantity" />
      </type>
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Observation.dataAbsentReason">
      <path value="Observation.dataAbsentReason" />
      <max value="0" />
    </element>
    <element id="Observation.interpretation">
      <path value="Observation.interpretation" />
      <max value="0" />
    </element>
    <element id="Observation.interpretation.id">
      <path value="Observation.interpretation.id" />
      <max value="0" />
    </element>
    <element id="Observation.interpretation.extension">
      <path value="Observation.interpretation.extension" />
      <max value="0" />
    </element>
    <element id="Observation.interpretation.coding">
      <path value="Observation.interpretation.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.interpretation.coding.id">
      <path value="Observation.interpretation.coding.id" />
      <max value="0" />
    </element>
    <element id="Observation.interpretation.coding.extension">
      <path value="Observation.interpretation.coding.extension" />
      <max value="0" />
    </element>
    <element id="Observation.interpretation.coding.system">
      <path value="Observation.interpretation.coding.system" />
      <min value="1" />
    </element>
    <element id="Observation.interpretation.coding.code">
      <path value="Observation.interpretation.coding.code" />
      <min value="1" />
    </element>
    <element id="Observation.interpretation.coding.display">
      <path value="Observation.interpretation.coding.display" />
      <min value="1" />
    </element>
    <element id="Observation.interpretation.coding.userSelected">
      <path value="Observation.interpretation.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Observation.interpretation.text">
      <path value="Observation.interpretation.text" />
      <max value="0" />
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <definition value="Carries these NEHR XML elements:&#xA;&#xA;- `putEDNotes/content/Triage/TriageNotes`: Notes captured during triage.&#xA;- `putEDNotes/content/Consultation/ConsultationNotes`: Notes captured during consultation." />
    </element>
    <element id="Observation.note.id">
      <path value="Observation.note.id" />
      <max value="0" />
    </element>
    <element id="Observation.note.extension">
      <path value="Observation.note.extension" />
      <max value="0" />
    </element>
    <element id="Observation.note.author[x]">
      <path value="Observation.note.author[x]" />
      <type>
        <code value="Reference" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-reference-practitioner" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-practitioner" />
      </type>
    </element>
    <element id="Observation.note.text">
      <path value="Observation.note.text" />
      <definition value="Carries these NEHR XML elements:&#xA;&#xA;- `putEDNotes/content/VitalSigns/Remarks`: Remarks associated with the vital signs.&#xA;- `putScreeningSummary/screeningSummary/investigationResultList/investigationType/investigationResult/comments`: Additional information related to the investigation result group." />
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <max value="0" />
    </element>
    <element id="Observation.bodySite.id">
      <path value="Observation.bodySite.id" />
      <max value="0" />
    </element>
    <element id="Observation.bodySite.extension">
      <path value="Observation.bodySite.extension" />
      <max value="0" />
    </element>
    <element id="Observation.bodySite.coding">
      <path value="Observation.bodySite.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.bodySite.coding.id">
      <path value="Observation.bodySite.coding.id" />
      <max value="0" />
    </element>
    <element id="Observation.bodySite.coding.extension">
      <path value="Observation.bodySite.coding.extension" />
      <max value="0" />
    </element>
    <element id="Observation.bodySite.coding.system">
      <path value="Observation.bodySite.coding.system" />
      <min value="1" />
    </element>
    <element id="Observation.bodySite.coding.version">
      <path value="Observation.bodySite.coding.version" />
      <max value="0" />
    </element>
    <element id="Observation.bodySite.coding.code">
      <path value="Observation.bodySite.coding.code" />
      <min value="1" />
    </element>
    <element id="Observation.bodySite.coding.display">
      <path value="Observation.bodySite.coding.display" />
      <min value="1" />
    </element>
    <element id="Observation.bodySite.coding.userSelected">
      <path value="Observation.bodySite.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Observation.bodySite.text">
      <path value="Observation.bodySite.text" />
      <max value="0" />
    </element>
    <element id="Observation.bodyStructure">
      <path value="Observation.bodyStructure" />
      <max value="0" />
    </element>
    <element id="Observation.method">
      <path value="Observation.method" />
      <max value="0" />
    </element>
    <element id="Observation.method.id">
      <path value="Observation.method.id" />
      <max value="0" />
    </element>
    <element id="Observation.method.extension">
      <path value="Observation.method.extension" />
      <max value="0" />
    </element>
    <element id="Observation.method.coding">
      <path value="Observation.method.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.method.coding.id">
      <path value="Observation.method.coding.id" />
      <max value="0" />
    </element>
    <element id="Observation.method.coding.extension">
      <path value="Observation.method.coding.extension" />
      <max value="0" />
    </element>
    <element id="Observation.method.coding.system">
      <path value="Observation.method.coding.system" />
      <min value="1" />
    </element>
    <element id="Observation.method.coding.version">
      <path value="Observation.method.coding.version" />
      <max value="0" />
    </element>
    <element id="Observation.method.coding.code">
      <path value="Observation.method.coding.code" />
      <min value="1" />
    </element>
    <element id="Observation.method.coding.display">
      <path value="Observation.method.coding.display" />
      <min value="1" />
    </element>
    <element id="Observation.method.coding.userSelected">
      <path value="Observation.method.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Observation.method.text">
      <path value="Observation.method.text" />
      <max value="0" />
    </element>
    <element id="Observation.specimen">
      <path value="Observation.specimen" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-specimen" />
      </type>
    </element>
    <element id="Observation.device">
      <path value="Observation.device" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-device" />
      </type>
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.id">
      <path value="Observation.referenceRange.id" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.extension">
      <path value="Observation.referenceRange.extension" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.modifierExtension">
      <path value="Observation.referenceRange.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.low">
      <path value="Observation.referenceRange.low" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.high">
      <path value="Observation.referenceRange.high" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.normalValue">
      <path value="Observation.referenceRange.normalValue" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.type">
      <path value="Observation.referenceRange.type" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.appliesTo">
      <path value="Observation.referenceRange.appliesTo" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.age">
      <path value="Observation.referenceRange.age" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.text">
      <path value="Observation.referenceRange.text" />
      <min value="1" />
    </element>
    <element id="Observation.hasMember">
      <path value="Observation.hasMember" />
      <max value="0" />
    </element>
    <element id="Observation.derivedFrom">
      <path value="Observation.derivedFrom" />
      <max value="0" />
    </element>
    <element id="Observation.component.id">
      <path value="Observation.component.id" />
      <max value="0" />
    </element>
    <element id="Observation.component.extension">
      <path value="Observation.component.extension" />
      <max value="0" />
    </element>
    <element id="Observation.component.modifierExtension">
      <path value="Observation.component.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Observation.component.code.extension">
      <path value="Observation.component.code.extension" />
      <max value="0" />
    </element>
    <element id="Observation.component.code.coding.version">
      <path value="Observation.component.code.coding.version" />
      <max value="0" />
    </element>
    <element id="Observation.component.value[x]">
      <path value="Observation.component.value[x]" />
      <definition value="Carries these NEHR XML elements:&#xA;&#xA;- `putEDNotes/content/Triage/HistoryFrom`: Source from which triage information was obtained.&#xA;- `putEDNotes/content/Triage/TriageLanguage`: Language used during triage.&#xA;- `putEDNotes/content/Triage/TriageMobility`: Mobility status of the patient.&#xA;- `putEDNotes/content/Triage/TriagePac`: Patient acuity category.&#xA;- `putEDNotes/content/Triage/MedicalHistory`: Medical history documented during triage.&#xA;- `putEDNotes/content/Triage/Pregnancy`: Pregnancy status of the patient.&#xA;- `putEDNotes/content/Triage/Lmp`: Last menstrual period information.&#xA;- `putEDNotes/content/Consultation/HistoryFrom`: Source from which consultation information was obtained.&#xA;- `putEDNotes/content/Consultation/ConsultationLanguage`: Language used during consultation.&#xA;- `putEDNotes/content/Consultation/ConsultationPac`: Acuity scale used during consultation.&#xA;- `putEDNotes/content/VitalSigns/PulseRate`: Pulse rate of the patient.&#xA;- `putEDNotes/content/VitalSigns/BloodPressure`: Blood pressure of the patient.&#xA;- `putEDNotes/content/VitalSigns/RespiratoryRate`: Respiratory rate of the patient.&#xA;- `putEDNotes/content/VitalSigns/SAO2`: Oxygen saturation of the patient.&#xA;- `putEDNotes/content/VitalSigns/Temperature`: Body temperature of the patient.&#xA;- `putEDNotes/content/VitalSigns/Route`: Temperature measurement route.&#xA;- `putEDNotes/content/VitalSigns/PEFR`: Peak expiratory flow rate.&#xA;- `putEDNotes/content/VitalSigns/PainScore`: Pain score of the patient.&#xA;- `putEDNotes/content/GCS/E`: Eye response component.&#xA;- `putEDNotes/content/GCS/V`: Verbal response component.&#xA;- `putEDNotes/content/GCS/M`: Motor response component." />
      <min value="1" />
    </element>
    <element id="Observation.component.dataAbsentReason">
      <path value="Observation.component.dataAbsentReason" />
      <max value="0" />
    </element>
    <element id="Observation.component.interpretation">
      <path value="Observation.component.interpretation" />
      <max value="0" />
    </element>
    <element id="Observation.component.referenceRange">
      <path value="Observation.component.referenceRange" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>