<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ncdhc-observation-eyes-exam" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Clinical.Diagnostics" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="patient" />
  </extension>
  <url value="http://build.fhir.org/ig/hl7au/au-fhir-childhealth/StructureDefinition/ncdhc-observation-eyes-exam" />
  <version value="current" />
  <name value="NCDHCObservationEyesExam" />
  <title value="NCDHC Observation Eyes Examination" />
  <status value="active" />
  <description value="Observation profile to record outcome of the Right and Left Eye check performed on the newborn" />
  <purpose value="Implementers conforming to the NCDHC Implementation Guide, must follow the “mustSupport” guidelines as provided in the guidance page" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="sct-concept" />
    <uri value="http://snomed.info/conceptdomain" />
    <name value="SNOMED CT Concept Domain Binding" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="sct-attr" />
    <uri value="http://snomed.org/attributebinding" />
    <name value="SNOMED CT Attribute Binding" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://build.fhir.org/ig/hl7au/au-fhir-childhealth/StructureDefinition/ncdhc-observation-clinical-base" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.status">
      <path value="Observation.status" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.code.coding:eyesExamSNOMED-CT">
      <path value="Observation.code.coding" />
      <sliceName value="eyesExamSNOMED-CT" />
      <min value="1" />
      <max value="1" />
      <patternCoding>
        <system value="http://snomed.info/sct" />
        <code value="363926002" />
      </patternCoding>
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://build.fhir.org/ig/hl7au/au-fhir-childhealth/StructureDefinition/ncdhc-patient-child" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <short value="Examination Date" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.effective[x].extension">
      <path value="Observation.effective[x].extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.effective[x].extension:data-absent-reason">
      <path value="Observation.effective[x].extension" />
      <sliceName value="data-absent-reason" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/data-absent-reason" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.performer:examiner">
      <path value="Observation.performer" />
      <sliceName value="examiner" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.performer:legalOrg">
      <path value="Observation.performer" />
      <sliceName value="legalOrg" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <max value="0" />
    </element>
    <element id="Observation.dataAbsentReason">
      <path value="Observation.dataAbsentReason" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="code" />
        </discriminator>
        <description value="Slice on component based on the code pattern" />
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.component:outcomeRight">
      <path value="Observation.component" />
      <sliceName value="outcomeRight" />
      <short value="Eyes Outcome (Right)" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Observation.component:outcomeRight.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="18944008" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:outcomeRight.value[x]">
      <path value="Observation.component.value[x]" />
      <max value="0" />
    </element>
    <element id="Observation.component:outcomeRight.interpretation">
      <path value="Observation.component.interpretation" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://build.fhir.org/ig/hl7au/au-fhir-childhealth/ValueSet/ncdhc-observation-interpretation-1" />
      </binding>
    </element>
    <element id="Observation.component:outcomeLeft">
      <path value="Observation.component" />
      <sliceName value="outcomeLeft" />
      <short value="Eyes Outcome (Left)" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Observation.component:outcomeLeft.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="8966001" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:outcomeLeft.value[x]">
      <path value="Observation.component.value[x]" />
      <max value="0" />
    </element>
    <element id="Observation.component:outcomeLeft.interpretation">
      <path value="Observation.component.interpretation" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://build.fhir.org/ig/hl7au/au-fhir-childhealth/ValueSet/ncdhc-observation-interpretation-1" />
      </binding>
    </element>
  </differential>
</StructureDefinition>