<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="images-List" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/images-List" />
  <version value="0.1.0" />
  <name value="images-List" />
  <title value="Images List" />
  <status value="draft" />
  <date value="2019-02-01" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="email" />
      <value value="info@nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Profile on List to support the MedMij Images use case where a patient/PHR sends a collection of images to a healtcare provider/XIS.&#xD;&#xA;&#xD;&#xA;A number of elements are made mandatory to accomodate succesfull entries in a XDS network.  This profile provides a mapping of the metadata attributes associated with a Document Sharing Folder object. The full Folder metadata attribute definition is in IHE ITI TF-3 Section 4.2.3.4." />
  <copyright value="CC0" />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="ihe-xds-folder-metadata-attributes" />
    <uri value="http://www.ihe.net/uploadedFiles/Documents/ITI/IHE_ITI_Suppl_MHD.pdf" />
    <name value="Folder Metadata Attributes" />
    <comment value="Table 4.2.3.4-1: Folder Metadata Attribute Definitions" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="List" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/List" />
  <derivation value="constraint" />
  <differential>
    <element id="List">
      <path value="List" />
      <mapping>
        <identity value="ihe-xds-folder-metadata-attributes" />
        <map value="Folder" />
      </mapping>
    </element>
    <element id="List.identifier">
      <path value="List.identifier" />
      <min value="1" />
      <mapping>
        <identity value="ihe-xds-folder-metadata-attributes" />
        <map value="uniqueId" />
      </mapping>
      <mapping>
        <identity value="ihe-xds-folder-metadata-attributes" />
        <map value="entryUUID" />
      </mapping>
    </element>
    <element id="List.status">
      <path value="List.status" />
      <mapping>
        <identity value="ihe-xds-folder-metadata-attributes" />
        <map value="availabilityStatus" />
      </mapping>
    </element>
    <element id="List.title">
      <path value="List.title" />
      <mapping>
        <identity value="ihe-xds-folder-metadata-attributes" />
        <map value="title" />
      </mapping>
    </element>
    <element id="List.code">
      <path value="List.code" />
      <mapping>
        <identity value="ihe-xds-folder-metadata-attributes" />
        <map value="codeList" />
      </mapping>
    </element>
    <element id="List.subject">
      <path value="List.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
      </type>
      <mapping>
        <identity value="ihe-xds-folder-metadata-attributes" />
        <map value="patientId" />
      </mapping>
    </element>
    <element id="List.date">
      <path value="List.date" />
      <mapping>
        <identity value="ihe-xds-folder-metadata-attributes" />
        <map value="lastUpdateTime" />
      </mapping>
    </element>
    <element id="List.source">
      <path value="List.source" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDeviceProduct" />
      </type>
    </element>
    <element id="List.note">
      <path value="List.note" />
      <mapping>
        <identity value="ihe-xds-folder-metadata-attributes" />
        <map value="comments" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>