<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ei-diagnostic-report" />
  <meta>
    <lastUpdated value="2017-09-25T17:42:53.792+08:00" />
  </meta>
  <url value="http://www.agfa.com/ei/fhir/StructureDefinition/ei-diagnostic-report" />
  <name value="Enterprise Imaging Diagnostic Report" />
  <status value="draft" />
  <date value="2017-09-13T15:28:27.73+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="DiagnosticReport" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
  <derivation value="constraint" />
  <differential>
    <element id="DiagnosticReport.identifier.type">
      <path value="DiagnosticReport.identifier.type" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.identifier.system">
      <path value="DiagnosticReport.identifier.system" />
      <mapping>
        <identity value="agfa-ei-model" />
        <map value="urn:ei:report-uid" />
      </mapping>
      <mapping>
        <identity value="agfa-ei-model" />
        <map value="urn:ei:report-code" />
      </mapping>
    </element>
    <element id="DiagnosticReport.identifier.value">
      <path value="DiagnosticReport.identifier.value" />
      <mapping>
        <identity value="agfa-ei-model" />
        <map value="REPORT_RESULT#REPORT_UID" />
      </mapping>
      <mapping>
        <identity value="agfa-ei-model" />
        <map value="REPORT_RESULT#REPORT_CODE" />
      </mapping>
    </element>
    <element id="DiagnosticReport.identifier.period">
      <path value="DiagnosticReport.identifier.period" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.identifier.assigner">
      <path value="DiagnosticReport.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ProcedureRequest" />
      </type>
      <type>
        <code value="Reference" />
        <profile value="http://www.agfa.com/ei/fhir/StructureDefinition/ei-procedurerequest" />
      </type>
    </element>
    <element id="DiagnosticReport.status">
      <path value="DiagnosticReport.status" />
      <mapping>
        <identity value="agfa-ei-model" />
        <map value="REPORT_RESULT#STATUS" />
      </mapping>
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <mapping>
        <identity value="agfa-ei-model" />
        <map value="REQUESTED_PROCEDURE#STUDY_UID" />
      </mapping>
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.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>
      <mapping>
        <identity value="agfa-ei-model" />
        <map value="PATIENT" />
      </mapping>
    </element>
    <element id="DiagnosticReport.issued">
      <path value="DiagnosticReport.issued" />
      <mapping>
        <identity value="agfa-ei-model" />
        <map value="REPORT_RESULT#MODIFICATION" />
      </mapping>
    </element>
    <element id="DiagnosticReport.performer.actor">
      <path value="DiagnosticReport.performer.actor" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://www.agfa.com/ei/fhir/StructureDefinition/ei-practitioner" />
      </type>
      <mapping>
        <identity value="agfa-ei-model" />
        <map value="REPORT_PARTICIPATION" />
      </mapping>
    </element>
    <element id="DiagnosticReport.specimen">
      <path value="DiagnosticReport.specimen" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
      </type>
      <type>
        <code value="Reference" />
        <profile value="http://www.agfa.com/ei/fhir/StructureDefinition/ei-observation" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://www.agfa.com/ei/fhir/StructureDefinition/ei-observation" />
      </type>
    </element>
    <element id="DiagnosticReport.codedDiagnosis">
      <path value="DiagnosticReport.codedDiagnosis" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.presentedForm">
      <path value="DiagnosticReport.presentedForm" />
      <mapping>
        <identity value="agfa-ei-model" />
        <map value="REPORT_RESULT#REPORT_BLOB" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>