<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2020-04-23T14:54:14.281+00:00" />
  </meta>
  <url value="http://interopehrate.eu/fhir/StructureDefinition/MedicalDocumentIEHR" />
  <name value="MedicalDocumentIEHR" />
  <status value="draft" />
  <date value="2020-04-23T14:54:11.2191366+00:00" />
  <fhirVersion value="4.0.0" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="fhircomposition" />
    <uri value="http://hl7.org/fhir/composition" />
    <name value="FHIR Composition" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="cda" />
    <uri value="http://hl7.org/v3/cda" />
    <name value="CDA (R2)" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="xds" />
    <uri value="http://ihe.net/xds" />
    <name value="XDS metadata equivalent" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="DocumentReference" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
  <derivation value="constraint" />
  <differential>
    <element id="DocumentReference.language">
      <path value="DocumentReference.language" />
      <min value="1" />
    </element>
    <element id="DocumentReference.identifier">
      <path value="DocumentReference.identifier" />
      <min value="1" />
    </element>
    <element id="DocumentReference.type">
      <path value="DocumentReference.type" />
      <definition value="Specifies the particular kind of document referenced  (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced.&#xD;&#xA;&#xD;&#xA;For Laboratory Report the LOINC Code 11502-2 should be used." />
      <min value="1" />
    </element>
    <element id="DocumentReference.type.coding">
      <path value="DocumentReference.type.coding" />
      <min value="1" />
    </element>
    <element id="DocumentReference.type.coding.system">
      <path value="DocumentReference.type.coding.system" />
      <fixedUri value="https://www.hl7.org/fhir/valueset-c80-doc-typecodes.html" />
    </element>
    <element id="DocumentReference.category.coding.system">
      <path value="DocumentReference.category.coding.system" />
      <fixedUri value="https://www.hl7.org/fhir/valueset-diagnostic-service-sections.html" />
    </element>
    <element id="DocumentReference.subject">
      <path value="DocumentReference.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips" />
      </type>
    </element>
    <element id="DocumentReference.date">
      <path value="DocumentReference.date" />
      <min value="1" />
    </element>
    <element id="DocumentReference.author">
      <path value="DocumentReference.author" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Practitioner-uv-ips" />
      </type>
    </element>
  </differential>
</StructureDefinition>