<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-cr-observation" />
  <url value="https://fhir.synapxe.sg/StructureDefinition/profile-cr-observation" />
  <name value="Observation" />
  <title value="Cardiology Observation Profile" />
  <status value="active" />
  <publisher value="Synapxe" />
  <description value="Observation profile for recording cardiology measurements and findings such as vital signs, cardiac measurements, and clinical observations." />
  <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="Observations that are part of this report. Observations can be simple name/value pairs or grouping observations that include references to other members of the group." />
    </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.modifierExtension">
      <path value="Observation.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Observation.identifier">
      <path value="Observation.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-identifier" />
      </type>
    </element>
    <element id="Observation.identifier:investigationId">
      <path value="Observation.identifier" />
      <sliceName value="investigationId" />
      <short value="Business Identifier for observation" />
      <definition value="A unique identifier assigned to this observation." />
      <max value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-identifier" />
      </type>
    </element>
    <element id="Observation.identifier:investigationId.system">
      <path value="Observation.identifier.system" />
      <patternUri value="https://fhir.synapxe.sg/NamingSystem/investigation-id" />
    </element>
    <element id="Observation.identifier:sequenceNo">
      <path value="Observation.identifier" />
      <sliceName value="sequenceNo" />
      <short value="Business Identifier for observation" />
      <definition value="The sequence number assigned to the observation." />
      <max value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-identifier" />
      </type>
    </element>
    <element id="Observation.identifier:sequenceNo.system">
      <path value="Observation.identifier.system" />
      <patternUri value="https://fhir.synapxe.sg/NamingSystem/sequence-no" />
    </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="The status of the result value." />
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <max value="0" />
      <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="The name of the observation." />
      <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" />
      <max value="0" />
      <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]" />
      <max value="0" />
      <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" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-reference-organization" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-organization" />
      </type>
    </element>
    <element id="Observation.performer.display">
      <path value="Observation.performer.display" />
      <min value="1" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <definition value="Carries these NEHR XML elements of putCardiology:&#xA;&#xA;- `content/Composition/section/entry/Procedure/report/result/value/valueQuantity/value`: The measured value.&#xA;- `content/Composition/section/entry/Procedure/report/result/value/valueQuantity/comparator`: Indicates whether the actual value is greater than or less than the stated value.&#xA;- `content/Composition/section/entry/Procedure/report/result/value/valueQuantity/unit`: Unit of measurement of the observation value.&#xA;- `content/Composition/section/entry/Procedure/report/result/value/valueCodeableConcept`: The value is a coded field.&#xA;- `content/Composition/section/entry/Procedure/report/result/value/valueString`: The value is a string." />
      <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" />
      <definition value="Assessment made based on the result of the observation, often represented as an abnormal flag." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="Observation.interpretation.extension">
      <path value="Observation.interpretation.extension" />
      <max value="0" />
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <max value="1" />
      <type>
        <code value="Annotation" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-annotation" />
      </type>
    </element>
    <element id="Observation.note.text">
      <path value="Observation.note.text" />
      <definition value="Additional comments, interpretations or clarifications about the observation result." />
    </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" />
      <definition value="Mechanism or method used to produce the observation." />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="Observation.method.extension">
      <path value="Observation.method.extension" />
      <max value="0" />
    </element>
    <element id="Observation.method.coding.version">
      <path value="Observation.method.coding.version" />
      <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" />
      <definition value="Guidance on how to interpret the value by comparison to a normal or recommended range." />
    </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.value">
      <path value="Observation.referenceRange.low.value" />
      <definition value="Lower boundary of the reference range." />
    </element>
    <element id="Observation.referenceRange.high.value">
      <path value="Observation.referenceRange.high.value" />
      <definition value="Upper boundary of the reference range." />
    </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" />
      <definition value="Meaning of the reference range." />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </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" />
      <definition value="Age range to which this reference range applies." />
    </element>
    <element id="Observation.referenceRange.age.id">
      <path value="Observation.referenceRange.age.id" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.age.extension">
      <path value="Observation.referenceRange.age.extension" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange.age.low.value">
      <path value="Observation.referenceRange.age.low.value" />
      <definition value="Lower age limit." />
    </element>
    <element id="Observation.referenceRange.age.high.value">
      <path value="Observation.referenceRange.age.high.value" />
      <definition value="Upper age limit." />
    </element>
    <element id="Observation.referenceRange.text">
      <path value="Observation.referenceRange.text" />
      <definition value="Text-based reference range used when quantitative ranges are not appropriate." />
    </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">
      <path value="Observation.component" />
      <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">
      <path value="Observation.component.code" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </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]" />
      <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>