<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ei-observation" />
  <meta>
    <lastUpdated value="2017-09-21T14:17:34.289+08:00" />
  </meta>
  <url value="http://www.agfa.com/ei/fhir/StructureDefinition/ei-observation" />
  <name value="Enterprise Imaging Observation" />
  <status value="draft" />
  <date value="2017-09-13T16:28:56.301+08:00" />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="agfa-ei-model" />
    <name value="Enterprise Imaging Data Model" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.identifier.use">
      <path value="Observation.identifier.use" />
      <max value="0" />
    </element>
    <element id="Observation.identifier.type">
      <path value="Observation.identifier.type" />
      <max value="0" />
    </element>
    <element id="Observation.identifier.value">
      <path value="Observation.identifier.value" />
      <mapping>
        <identity value="agfa-ei-model" />
        <map value="REPORT_RESULT#REPORT_UID + &quot;_&quot; + REPORT_SECTION#SEQUENCE" />
      </mapping>
    </element>
    <element id="Observation.identifier.period">
      <path value="Observation.identifier.period" />
      <max value="0" />
    </element>
    <element id="Observation.identifier.assigner">
      <path value="Observation.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="Observation.basedOn">
      <path value="Observation.basedOn" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://www.agfa.com/ei/fhir/StructureDefinition/ei-procedurerequest" />
      </type>
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <mapping>
        <identity value="agfa-ei-model" />
        <map value="REQUESTED_PROCEDURE#STUDY_UID" />
      </mapping>
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://www.agfa.com/ei/fhir/eipatient" />
      </type>
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://www.agfa.com/ei/fhir/StructureDefinition/ei-practitioner" />
      </type>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <type>
        <code value="Quantity" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="Attachment" />
      </type>
      <mapping>
        <identity value="agfa-ei-model" />
        <map value="REPORT_TEXT#CONTENT_BLOB" />
      </mapping>
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <max value="0" />
    </element>
    <element id="Observation.method">
      <path value="Observation.method" />
      <max value="0" />
    </element>
    <element id="Observation.specimen">
      <path value="Observation.specimen" />
      <max value="0" />
    </element>
    <element id="Observation.device">
      <path value="Observation.device" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange" />
      <max value="0" />
    </element>
    <element id="Observation.related">
      <path value="Observation.related" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>