<?xml-model href="http://hl7.org/fhir/STU3/structuredefinition.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<StructureDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir http://hl7.org/fhir/STU3/structuredefinition.xsd" xmlns="http://hl7.org/fhir">
  <id value="images-Media" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/images-Media" />
  <version value="1.0.0" />
  <name value="images-Media" />
  <title value="Images Media" />
  <status value="active" />
  <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 Media to support sending images from patient/PHR to a healtcare provider/XIS.&#xD;&#xA;&#xD;&#xA;A number of elements are made mandatory to accomodate succesfull entries in a XDS network. Mappings to the IHE MHD profile on DocumentReference and XDS DocumentEntry are provided to assists in this." />
  <copyright value="CC0" />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="ihe-mhd-documentreference-xds-on-fhir" />
    <uri value="https://simplifier.net/search?canonical=http://ihe.net/fhir/structuredefinition/ihe.mhd.provide.comprehensive.documentreference" />
    <name value="IHE MHD DocumentReference (XDS-on-FHIR)" />
    <comment value="Profile for IHE MHD DocumentReference a.k.a. XDS-on-FHIR" />
  </mapping>
  <mapping>
    <identity value="xds" />
    <uri value="https://wiki.ihe.net/index.php/Cross-Enterprise_Document_Sharing" />
    <name value="XDS metadata equivalent" />
  </mapping>
  <mapping>
    <identity value="art-decor-beelden" />
    <uri value="https://decor.nictiz.nl/art-decor/decor-datasets--bd-?id=2.16.840.1.113883.2.4.3.11.60.54.1.1&amp;effectiveDate=2019-01-29T11:40:51&amp;language=nl-NL" />
    <name value="ART-DECOR Dataset Beelden" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Media" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Media" />
  <derivation value="constraint" />
  <snapshot>
    <element id="Media">
      <path value="Media" />
      <short value="A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference" />
      <definition value="A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference." />
      <alias value="Beeld" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Resource" />
        <min value="0" />
        <max value="*" />
      </base>
      <constraint>
        <key value="dom-2" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources" />
        <expression value="contained.contained.empty()" />
        <xpath value="not(parent::f:contained and f:contained)" />
        <source value="DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-1" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL NOT contain any narrative" />
        <expression value="contained.text.empty()" />
        <xpath value="not(parent::f:contained and f:text)" />
        <source value="DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-4" />
        <severity value="error" />
        <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" />
        <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" />
        <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" />
        <source value="DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-3" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource" />
        <expression value="contained.where(('#'+id in %resource.descendants().reference).not()).empty()" />
        <xpath value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))" />
        <source value="DomainResource" />
      </constraint>
      <constraint>
        <key value="mda-1" />
        <severity value="error" />
        <human value="Height can only be used for a photo or video" />
        <expression value="height.empty() or type != 'audio'" />
        <xpath value="not(f:type/@value='audio') or not(f:height)" />
      </constraint>
      <constraint>
        <key value="mda-2" />
        <severity value="error" />
        <human value="Width can only be used for a photo or video" />
        <expression value="width.empty() or type != 'audio'" />
        <xpath value="not(f:type/@value='audio') or not(f:width)" />
      </constraint>
      <constraint>
        <key value="mda-3" />
        <severity value="error" />
        <human value="Frames can only be used for a photo" />
        <expression value="frames.empty() or type = 'photo'" />
        <xpath value="(f:type/@value='photo') or not(f:frames)" />
      </constraint>
      <constraint>
        <key value="mda-4" />
        <severity value="error" />
        <human value="Duration can only be used for an audio or a video" />
        <expression value="duration.empty() or type != 'photo'" />
        <xpath value="not(f:type/@value='photo') or not(f:duration)" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="Entity. Role, or Act" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Act[classCode=&quot;DGIMG&quot;, moodCode=&quot;EVN&quot;]" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="infrastructure.structure" />
      </mapping>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-1" />
        <comment value="Beeld" />
      </mapping>
    </element>
    <element id="Media.id">
      <path value="Media.id" />
      <short value="Logical id of this artifact" />
      <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." />
      <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="id" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="Media.meta">
      <path value="Media.meta" />
      <short value="Metadata about the resource" />
      <definition value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.meta" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Meta" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="Media.meta.id">
      <path value="Media.meta.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Media.meta.extension">
      <path value="Media.meta.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Media.meta.versionId">
      <path value="Media.meta.versionId" />
      <short value="Version specific identifier" />
      <definition value="The version specific identifier, as it appears in the version portion of the URL. This values changes when the resource is created, updated, or deleted." />
      <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Meta.versionId" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="id" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="Media.meta.lastUpdated">
      <path value="Media.meta.lastUpdated" />
      <short value="When the resource version last changed" />
      <definition value="When the resource last changed - e.g. when the version changed." />
      <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Meta.lastUpdated" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="instant" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="Media.meta.profile">
      <path value="Media.meta.profile" />
      <short value="Profiles this resource claims to conform to" />
      <definition value="A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url]()." />
      <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Meta.profile" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="Media.meta.security">
      <path value="Media.meta.security" />
      <short value="Security Labels applied to this resource" />
      <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure." />
      <comment value="The security labels can be updated without changing the stated version of the resource  The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Meta.security" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SecurityLabels" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="extensible" />
        <description value="Security Labels from the Healthcare Privacy and Security Classification System." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/security-labels" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.securityLabel" />
        <comment value="If no value is present 'normal' as default" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.confidentialityCode" />
        <comment value="If no value is present 'normal' as default" />
      </mapping>
    </element>
    <element id="Media.meta.tag">
      <path value="Media.meta.tag" />
      <short value="Tags applied to this resource" />
      <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource." />
      <comment value="The tags can be updated without changing the stated version of the resource.  The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Meta.tag" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Tags" />
        </extension>
        <strength value="example" />
        <description value="Codes that represent various types of tags, commonly workflow-related; e.g. &quot;Needs review by Dr. Jones&quot;" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/common-tags" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Media.implicitRules">
      <path value="Media.implicitRules" />
      <short value="A set of rules under which this content was created" />
      <definition value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content." />
      <comment value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. &#xA;&#xA;This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.implicitRules" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <isModifier value="true" />
      <isSummary value="true" />
    </element>
    <element id="Media.language">
      <path value="Media.language" />
      <short value="Language of the resource content" />
      <definition value="The base language in which the resource is written." />
      <comment value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.language" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages" />
          </valueReference>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="extensible" />
        <description value="A human language." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Media.text">
      <path value="Media.text" />
      <short value="Text summary of the resource, for human interpretation" />
      <definition value="A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." />
      <comment value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a &quot;text blob&quot; or where text is additionally entered raw or narrated and encoded in formation is added later." />
      <alias value="narrative" />
      <alias value="html" />
      <alias value="xhtml" />
      <alias value="display" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="DomainResource.text" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Narrative" />
      </type>
      <condition value="dom-1" />
      <mapping>
        <identity value="rim" />
        <map value="Act.text?" />
      </mapping>
    </element>
    <element id="Media.contained">
      <path value="Media.contained" />
      <short value="Contained, inline Resources" />
      <definition value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." />
      <comment value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again." />
      <alias value="inline resources" />
      <alias value="anonymous resources" />
      <alias value="contained resources" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.contained" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Resource" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Media.extension">
      <path value="Media.extension" />
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Media.modifierExtension">
      <path value="Media.modifierExtension" />
      <short value="Extensions that cannot be ignored" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <isModifier value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Media.identifier">
      <path value="Media.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="Identifier(s) for the image" />
      <definition value="Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers." />
      <comment value="The identifier label and use can be used to determine what kind of identifier it is." />
      <alias value="Identifier" />
      <min value="1" />
      <max value="*" />
      <base>
        <path value="Media.identifier" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".id" />
      </mapping>
      <mapping>
        <identity value="dicom" />
        <map value="0008,0018 | ~0008,0050 | 0020,000D | 0020,000E" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="id" />
      </mapping>
    </element>
    <element id="Media.identifier:masterIdentifier">
      <path value="Media.identifier" />
      <sliceName value="masterIdentifier" />
      <short value="Master Version Specific Identifier" />
      <definition value="Image identifier as assigned by the source of the image / Media. This identifier is specific to this version of the image. This unique identifier may be used elsewhere to identify this version of the image." />
      <comment value="The identifier label and use can be used to determine what kind of identifier it is." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Media.identifier" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".id" />
      </mapping>
      <mapping>
        <identity value="dicom" />
        <map value="0008,0018 | ~0008,0050 | 0020,000D | 0020,000E" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="id" />
      </mapping>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.masterIdentifier" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.uniqueId" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-40" />
        <comment value="Identificatie" />
      </mapping>
    </element>
    <element id="Media.identifier:masterIdentifier.id">
      <path value="Media.identifier.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Media.identifier:masterIdentifier.extension">
      <path value="Media.identifier.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Media.identifier:masterIdentifier.use">
      <path value="Media.identifier.use" />
      <short value="usual | official | temp | secondary (If known)" />
      <definition value="The purpose of this identifier." />
      <comment value="This is labeled as &quot;Is Modifier&quot; because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary." />
      <requirements value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Identifier.use" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <isModifier value="true" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="IdentifierUse" />
        </extension>
        <strength value="required" />
        <description value="Identifies the purpose for this identifier, if known ." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/identifier-use" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Role.code or implied by context" />
      </mapping>
    </element>
    <element id="Media.identifier:masterIdentifier.type">
      <path value="Media.identifier.type" />
      <short value="Description of identifier" />
      <definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." />
      <comment value="This element deals only with general categories of identifiers.  It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. &#xA;&#xA;Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type." />
      <requirements value="Allows users to make use of identifiers when the identifier system is not known." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Identifier.type" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="IdentifierType" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="extensible" />
        <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/identifier-type" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="CX.5" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Role.code or implied by context" />
      </mapping>
    </element>
    <element id="Media.identifier:masterIdentifier.system">
      <path value="Media.identifier.system" />
      <short value="The namespace for the identifier value" />
      <definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique." />
      <requirements value="There are many sets  of identifiers.  To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Identifier.system" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <example>
        <label value="General" />
        <valueUri value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri" />
      </example>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="CX.4 / EI-2-4" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="II.root or Role.id.root" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./IdentifierType" />
      </mapping>
    </element>
    <element id="Media.identifier:masterIdentifier.value">
      <path value="Media.identifier.value" />
      <short value="The value that is unique" />
      <definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
      <comment value="If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.  The value's primary purpose is computational mapping.  As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.)  A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html)." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Identifier.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <example>
        <label value="General" />
        <valueString value="123456" />
      </example>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="CX.1 / EI.1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Value" />
      </mapping>
    </element>
    <element id="Media.identifier:masterIdentifier.period">
      <path value="Media.identifier.period" />
      <short value="Time period when id is/was valid for use" />
      <definition value="Time period during which identifier is/was valid for use." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Identifier.period" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Period" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="CX.7 + CX.8" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Role.effectiveTime or implied by context" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./StartDate and ./EndDate" />
      </mapping>
    </element>
    <element id="Media.identifier:masterIdentifier.assigner">
      <path value="Media.identifier.assigner" />
      <short value="Organization that issued id (may be just text)" />
      <definition value="Organization that issued/manages the identifier." />
      <comment value="The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Identifier.assigner" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="CX.4 / (CX.4,CX.9,CX.10)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./IdentifierIssuingAuthority" />
      </mapping>
    </element>
    <element id="Media.basedOn">
      <path value="Media.basedOn" />
      <short value="Procedure that caused this media to be created" />
      <definition value="A procedure that is fulfilled in whole or in part by the creation of this media." />
      <requirements value="Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon." />
      <alias value="fulfills" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Media.basedOn" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-ProcedureRequest" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[typeCode=FLFS].target" />
      </mapping>
    </element>
    <element id="Media.type">
      <path value="Media.type" />
      <short value="photo | video | audio" />
      <definition value="Whether the media is a photo (still image), an audio recording, or a video recording." />
      <comment value="The profile's use cases allows only sending images hence the fixed value 'photo'. This is value is mapped to XDS DocumentEntry.type with a fixed LOINC code: 72170-4 Photographic image Unspecified body region Document." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Media.type" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <fixedCode value="photo" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="DigitalMediaType" />
        </extension>
        <strength value="required" />
        <description value="Whether the media is a photo, video, or audio" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/digital-media-type" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value=".code" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="class" />
      </mapping>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.type" />
        <comment value="Fixed LOINC code: 72170-4 Photographic image" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.type" />
        <comment value="Fixed LOINC code: 72170-4 Photographic image" />
      </mapping>
    </element>
    <element id="Media.subtype">
      <path value="Media.subtype" />
      <short value="The type of acquisition equipment/process" />
      <definition value="Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Media.subtype" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="DigitalMediaSubtype" />
        </extension>
        <strength value="example" />
        <description value="Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/digital-media-subtype" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;LIST&quot;, moodCode=&quot;EVN&quot;].code" />
      </mapping>
      <mapping>
        <identity value="dicom" />
        <map value="0008,0060 | 0008,1032" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="class" />
      </mapping>
    </element>
    <element id="Media.view">
      <path value="Media.view" />
      <short value="Imaging view, e.g. Lateral or Antero-posterior" />
      <definition value="The name of the imaging view e.g. Lateral or Antero-posterior (AP)." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Media.view" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MediaView" />
        </extension>
        <strength value="example" />
        <description value="Imaging view (projection) used when collecting an image" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/media-view" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="DiagnosticImage.subjectOrientationCode" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="class" />
      </mapping>
    </element>
    <element id="Media.subject">
      <path value="Media.subject" />
      <short value="Who this Media is a record of" />
      <definition value="Who this Media is a record of." />
      <comment value="A reference to the Patient resource who is the subject of the Media resource. Not a contained resource. URL Points to an existing Patient Resource representing the XDS Affinity Domain Patient." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Media.subject" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
        <aggregation value="bundled" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=&quot;SUBJ&quot;]???" />
      </mapping>
      <mapping>
        <identity value="dicom" />
        <map value="~0010,0020" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="who.focus" />
      </mapping>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.subject" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.patientId" />
      </mapping>
    </element>
    <element id="Media.context">
      <path value="Media.context" />
      <short value="Encounter / Episode associated with media" />
      <definition value="The encounter or episode of care that establishes the context for this media." />
      <comment value="This will typically be the encounter the media occurred within." />
      <requirements value="Links the media to the Encounter context." />
      <alias value="encounter" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Media.context" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".inboundRelationship(typeCode=COMP].source[classCode&lt;=PCPR, moodCode=EVN]" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="context" />
      </mapping>
    </element>
    <element id="Media.occurrence[x]:occurrenceDateTime">
      <path value="Media.occurrenceDateTime" />
      <sliceName value="occurrenceDateTime" />
      <short value="When Media was collected" />
      <definition value="The date and time at which the media was collected." />
      <alias value="timing" />
      <alias value="MaakDatumTijd" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Media.occurrence[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="when.done" />
      </mapping>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.indexed" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.submissionTime" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-4" />
        <comment value="MaakDatumTijd" />
      </mapping>
    </element>
    <element id="Media.operator">
      <path value="Media.operator" />
      <short value="The person who generated the image" />
      <definition value="The person who administered the collection of the image." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Media.operator" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner" />
        <aggregation value="bundled" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=&quot;PERF&quot;]???" />
      </mapping>
      <mapping>
        <identity value="dicom" />
        <map value="0008,1060?" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="who.actor" />
      </mapping>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.author" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.author" />
      </mapping>
    </element>
    <element id="Media.operator.id">
      <path value="Media.operator.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Media.operator.extension">
      <path value="Media.operator.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Media.operator.extension:practitionerRole">
      <path value="Media.operator.extension" />
      <sliceName value="practitionerRole" />
      <short value="Optional Extensions Element" />
      <definition value="Optional Extension Element - found in all resources." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Media.operator.reference">
      <path value="Media.operator.reference" />
      <short value="Literal reference, Relative, internal or absolute URL" />
      <definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources." />
      <comment value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure &quot;/[type]/[id]&quot; then it should be assumed that the reference is to a FHIR RESTful server." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Reference.reference" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ref-1" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Media.operator.identifier">
      <path value="Media.operator.identifier" />
      <short value="Logical reference, when literal reference is not known" />
      <definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference." />
      <comment value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. &#xA;&#xA;When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference&#xA;&#xA;Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Reference.identifier" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".identifier" />
      </mapping>
    </element>
    <element id="Media.operator.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Media.operator.display" />
      <short value="Text alternative for the resource" />
      <definition value="Plain text narrative that identifies the resource in addition to the resource reference." />
      <comment value="This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Reference.display" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Media.reasonCode">
      <path value="Media.reasonCode" />
      <short value="Why was event performed?" />
      <definition value="Describes why the event occurred in coded or textual form." />
      <comment value="Textual reasons can be caprued using reasonCode.text." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Media.reasonCode" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MediaReason" />
        </extension>
        <strength value="example" />
        <description value="The reason for the media" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/procedure-reason" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value=".reasonCode" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="why" />
      </mapping>
    </element>
    <element id="Media.bodySite">
      <path value="Media.bodySite" />
      <short value="Body part in media" />
      <definition value="Indicates the site on the subject's body where the media was collected (i.e. the target site)." />
      <comment value="If the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use The standard extension[ body-site-instance](extension-body-site-instance.html)." />
      <alias value="AnatomischeLocatie" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Media.bodySite" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BodySite" />
        </extension>
        <strength value="example" />
        <description value="Codes describing anatomical locations. May include laterality." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/body-site" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="sct-concept" />
        <map value="&lt; 123037004 |Body structure|" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="targetSiteCode" />
      </mapping>
      <mapping>
        <identity value="sct-attr" />
        <map value="718497002 |Inherent location|" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-23" />
        <comment value="AnatomischeLocatie" />
      </mapping>
    </element>
    <element id="Media.device">
      <path value="Media.device" />
      <short value="Observing Device" />
      <definition value="The device used to collect the media." />
      <comment value="An extension should be used if further typing of the device is needed.  Scondary devices used to support collecting a media can be represented using either extension or through the Observation.related element." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Media.device" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceMetric" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="sct-concept" />
        <map value="&lt; 49062001 |Device|" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="participation[typeCode=DEV]" />
      </mapping>
      <mapping>
        <identity value="sct-attr" />
        <map value="424226004 |Using device|" />
      </mapping>
    </element>
    <element id="Media.height">
      <path value="Media.height" />
      <short value="Height of the image in pixels (photo/video)" />
      <definition value="Height of the image in pixels (photo/video)." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Media.height" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="positiveInt" />
      </type>
      <condition value="mda-1" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;EVN&quot;,code=&quot;&lt;CODE&gt;&quot;].value" />
      </mapping>
      <mapping>
        <identity value="dicom" />
        <map value="0028,0010" />
      </mapping>
    </element>
    <element id="Media.width">
      <path value="Media.width" />
      <short value="Width of the image in pixels (photo/video)" />
      <definition value="Width of the image in pixels (photo/video)." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Media.width" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="positiveInt" />
      </type>
      <condition value="mda-2" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;EVN&quot;,code=&quot;&lt;CODE&gt;&quot;].value" />
      </mapping>
      <mapping>
        <identity value="dicom" />
        <map value="0028,0011" />
      </mapping>
    </element>
    <element id="Media.frames">
      <path value="Media.frames" />
      <short value="Number of frames if &gt; 1 (photo)" />
      <definition value="The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Media.frames" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="positiveInt" />
      </type>
      <defaultValuePositiveInt value="1" />
      <condition value="mda-3" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;EVN&quot;,code=&quot;&lt;CODE&gt;&quot;].value" />
      </mapping>
    </element>
    <element id="Media.duration">
      <path value="Media.duration" />
      <short value="Length in seconds (audio / video)" />
      <definition value="The duration of the recording in seconds - for audio and video." />
      <comment value="The duration might differ from occurrencePeriod if recording was paused." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Media.duration" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="unsignedInt" />
      </type>
      <condition value="mda-4" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;EVN&quot;,code=&quot;&lt;CODE&gt;&quot;].value" />
      </mapping>
      <mapping>
        <identity value="dicom" />
        <map value="~0028,0002" />
      </mapping>
    </element>
    <element id="Media.content">
      <path value="Media.content" />
      <short value="Actual Media - reference or data" />
      <definition value="The actual content of the media - inline or by direct reference to the media source file." />
      <comment value="Recommended content types: image/jpeg, image/png, image/tiff, video/mpeg, audio/mp4, application/dicom. Application/dicom can contain the transfer syntax as a parameter.  For an media that covers a period of time (video/sound), the content.creationTime is the end time. Creation time is used for tracking, organizing versions and searching." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Media.content" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Attachment" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".text" />
      </mapping>
    </element>
    <element id="Media.content.id">
      <path value="Media.content.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Media.content.extension">
      <path value="Media.content.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Media.content.contentType">
      <path value="Media.content.contentType" />
      <short value="Mime type of the image" />
      <definition value="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. &#xD;&#xA;Shall be one of the following: jpeg, gif, png, jp2." />
      <requirements value="Processors of the data need to be able to know how to interpret the data." />
      <alias value="Beeldformaat" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Attachment.contentType" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <example>
        <label value="General" />
        <valueCode value="text/plain; charset=UTF-8, image/png" />
      </example>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MimeType" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="MediaContentTypeCodelijst based on Dicom's Web Services rendered Media Types for single frame images." />
        <valueSetReference>
          <reference value="http://nictiz.nl/fhir/ValueSet/images-MediaContentTypeCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./mediaType, ./charset" />
      </mapping>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.content.attachment.contentType" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.mimeType" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-18" />
        <comment value="Beeldformaat" />
      </mapping>
    </element>
    <element id="Media.content.language">
      <path value="Media.content.language" />
      <short value="Human language of the content (BCP-47)" />
      <definition value="The human language of the content. The value can be any valid value according to BCP 47." />
      <requirements value="Users need to be able to choose between the languages in a set of attachments." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Attachment.language" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <example>
        <label value="General" />
        <valueCode value="en-AU" />
      </example>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages" />
          </valueReference>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="extensible" />
        <description value="A human language." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="./language" />
      </mapping>
    </element>
    <element id="Media.content.data">
      <path value="Media.content.data" />
      <short value="Data inline, base64ed" />
      <definition value="The actual data of the attachment - a sequence of bytes. In XML, represented using base64." />
      <comment value="The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON." />
      <requirements value="The data needs to able to be transmitted inline." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Attachment.data" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="base64Binary" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="ED.5" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./data" />
      </mapping>
    </element>
    <element id="Media.content.url">
      <path value="Media.content.url" />
      <short value="Uri where the data can be found" />
      <definition value="An alternative location where the data can be accessed." />
      <comment value="The Media.content.url points at the image content, which shall be in the Bundle as a Binary resource.  &#xD;&#xA;&#xD;&#xA;If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data." />
      <requirements value="The data needs to be transmitted by reference." />
      <alias value="Beeldbestand" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Attachment.url" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <example>
        <label value="General" />
        <valueUri value="http://www.acme.com/logo-small.png" />
      </example>
      <example>
        <label value="Reference to Binary" />
        <valueUri value="Binary/eczeem-detail-acuut" />
      </example>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="RP.1+RP.2 - if they refer to a URL (see v2.6)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./reference/literal" />
      </mapping>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.content.attachment.url" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.URI" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-37" />
        <comment value="Beeldbestand - provided in a Binary Resource" />
      </mapping>
    </element>
    <element id="Media.content.size">
      <path value="Media.content.size" />
      <short value="Number of bytes of content (if url provided)" />
      <definition value="The number of bytes of data that make up this attachment (before base64 encoding, if that is done)." />
      <comment value="The size is calculated on the data prior to base64 encoding, if the data is base64 encoded." />
      <requirements value="Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all." />
      <alias value="Grootte" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Attachment.size" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="unsignedInt" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A (needs data type R3 proposal)" />
      </mapping>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.content.attachment.size" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.size" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-19" />
        <comment value="Grootte" />
      </mapping>
    </element>
    <element id="Media.content.hash">
      <path value="Media.content.hash" />
      <short value="Hash of the data (sha-1, base64ed)" />
      <definition value="The calculated hash of the data using SHA-1. Represented using base64." />
      <comment value="The IHE Document Sharing metadata element hash holds the SHA1 hash of the document. The hash is encoded in FHIR in base64Binary, whereas in XDS hexbinary is used. The hash is calculated on the data prior to base64 encoding, if the data is base64 encoded." />
      <requirements value="Included so that applications can verify that the contents of a location have not changed and so that a signature of the content can implicitly sign the content of an image without having to include the data in the instance or reference the url in the signature." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Attachment.hash" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="base64Binary" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value=".integrityCheck[parent::ED/integrityCheckAlgorithm=&quot;SHA-1&quot;]" />
      </mapping>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.content.attachment.hash" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.hash" />
      </mapping>
    </element>
    <element id="Media.content.title">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Media.content.title" />
      <short value="Label to display in place of the data" />
      <definition value="A label or set of text to display in place of the data." />
      <requirements value="Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer." />
      <alias value="Titel" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Attachment.title" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <example>
        <label value="General" />
        <valueString value="Official Corporate Logo" />
      </example>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="./title/data" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.title" />
      </mapping>
    </element>
    <element id="Media.content.creation">
      <path value="Media.content.creation" />
      <short value="Date attachment was first created" />
      <definition value="The date that the attachment was first created." />
      <comment value="This HL7 FHIR STU3 element is not used in IHE MHD XDS, therefore would not be present." />
      <requirements value="This is often tracked as an integrity issue for use of the attachment." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Attachment.creation" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A (needs data type R3 proposal)" />
      </mapping>
    </element>
    <element id="Media.note">
      <path value="Media.note" />
      <short value="Comments made about the media" />
      <definition value="Comments made about the media by the performer, subject or other participants." />
      <alias value="Toelichting" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Media.note" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Annotation" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="NTE" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]" />
      </mapping>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.description" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.description" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-21" />
        <comment value="Toelichting" />
      </mapping>
    </element>
    <element id="Media.note.id">
      <path value="Media.note.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Media.note.extension">
      <path value="Media.note.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional Content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Media.note.author[x]">
      <path value="Media.note.author[x]" />
      <short value="Individual responsible for the annotation" />
      <definition value="The individual responsible for making the annotation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Annotation.author[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <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://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson" />
      </type>
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Act.participant[typeCode=AUT].role" />
      </mapping>
    </element>
    <element id="Media.note.time">
      <path value="Media.note.time" />
      <short value="When the annotation was made" />
      <definition value="Indicates when this particular annotation was made." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Annotation.time" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Act.effectiveTime" />
      </mapping>
    </element>
    <element id="Media.note.text">
      <path value="Media.note.text" />
      <short value="The annotation  - text content" />
      <definition value="The text of the annotation." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Annotation.text" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Act.text" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="Media">
      <path value="Media" />
      <alias value="Beeld" />
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-1" />
        <comment value="Beeld" />
      </mapping>
    </element>
    <element id="Media.meta.security">
      <path value="Media.meta.security" />
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.securityLabel" />
        <comment value="If no value is present 'normal' as default" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.confidentialityCode" />
        <comment value="If no value is present 'normal' as default" />
      </mapping>
    </element>
    <element id="Media.identifier">
      <path value="Media.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <alias value="Identifier" />
      <min value="1" />
    </element>
    <element id="Media.identifier:masterIdentifier">
      <path value="Media.identifier" />
      <sliceName value="masterIdentifier" />
      <short value="Master Version Specific Identifier" />
      <definition value="Image identifier as assigned by the source of the image / Media. This identifier is specific to this version of the image. This unique identifier may be used elsewhere to identify this version of the image." />
      <min value="1" />
      <max value="1" />
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.masterIdentifier" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.uniqueId" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-40" />
        <comment value="Identificatie" />
      </mapping>
    </element>
    <element id="Media.identifier:masterIdentifier.system">
      <path value="Media.identifier.system" />
      <min value="1" />
    </element>
    <element id="Media.identifier:masterIdentifier.value">
      <path value="Media.identifier.value" />
      <min value="1" />
    </element>
    <element id="Media.basedOn">
      <path value="Media.basedOn" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-ProcedureRequest" />
      </type>
    </element>
    <element id="Media.type">
      <path value="Media.type" />
      <comment value="The profile's use cases allows only sending images hence the fixed value 'photo'. This is value is mapped to XDS DocumentEntry.type with a fixed LOINC code: 72170-4 Photographic image Unspecified body region Document." />
      <fixedCode value="photo" />
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.type" />
        <comment value="Fixed LOINC code: 72170-4 Photographic image" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.type" />
        <comment value="Fixed LOINC code: 72170-4 Photographic image" />
      </mapping>
    </element>
    <element id="Media.subject">
      <path value="Media.subject" />
      <short value="Who this Media is a record of" />
      <definition value="Who this Media is a record of." />
      <comment value="A reference to the Patient resource who is the subject of the Media resource. Not a contained resource. URL Points to an existing Patient Resource representing the XDS Affinity Domain Patient." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
        <aggregation value="bundled" />
      </type>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.subject" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.patientId" />
      </mapping>
    </element>
    <element id="Media.occurrence[x]:occurrenceDateTime">
      <path value="Media.occurrenceDateTime" />
      <sliceName value="occurrenceDateTime" />
      <definition value="The date and time at which the media was collected." />
      <alias value="MaakDatumTijd" />
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.indexed" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.submissionTime" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-4" />
        <comment value="MaakDatumTijd" />
      </mapping>
    </element>
    <element id="Media.operator">
      <path value="Media.operator" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner" />
        <aggregation value="bundled" />
      </type>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.author" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.author" />
      </mapping>
    </element>
    <element id="Media.operator.extension">
      <path value="Media.operator.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Media.operator.extension:practitionerRole">
      <path value="Media.operator.extension" />
      <sliceName value="practitionerRole" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference" />
      </type>
    </element>
    <element id="Media.bodySite">
      <path value="Media.bodySite" />
      <alias value="AnatomischeLocatie" />
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-23" />
        <comment value="AnatomischeLocatie" />
      </mapping>
    </element>
    <element id="Media.content.contentType">
      <path value="Media.content.contentType" />
      <short value="Mime type of the image" />
      <definition value="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. &#xD;&#xA;Shall be one of the following: jpeg, gif, png, jp2." />
      <alias value="Beeldformaat" />
      <min value="1" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MimeType" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="MediaContentTypeCodelijst based on Dicom's Web Services rendered Media Types for single frame images." />
        <valueSetReference>
          <reference value="http://nictiz.nl/fhir/ValueSet/images-MediaContentTypeCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.content.attachment.contentType" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.mimeType" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-18" />
        <comment value="Beeldformaat" />
      </mapping>
    </element>
    <element id="Media.content.url">
      <path value="Media.content.url" />
      <comment value="The Media.content.url points at the image content, which shall be in the Bundle as a Binary resource.  &#xD;&#xA;&#xD;&#xA;If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data." />
      <alias value="Beeldbestand" />
      <min value="1" />
      <example>
        <label value="Reference to Binary" />
        <valueUri value="Binary/eczeem-detail-acuut" />
      </example>
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.content.attachment.url" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.URI" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-37" />
        <comment value="Beeldbestand - provided in a Binary Resource" />
      </mapping>
    </element>
    <element id="Media.content.size">
      <path value="Media.content.size" />
      <comment value="The size is calculated on the data prior to base64 encoding, if the data is base64 encoded." />
      <alias value="Grootte" />
      <min value="1" />
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.content.attachment.size" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.size" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-19" />
        <comment value="Grootte" />
      </mapping>
    </element>
    <element id="Media.content.hash">
      <path value="Media.content.hash" />
      <comment value="The IHE Document Sharing metadata element hash holds the SHA1 hash of the document. The hash is encoded in FHIR in base64Binary, whereas in XDS hexbinary is used. The hash is calculated on the data prior to base64 encoding, if the data is base64 encoded." />
      <min value="1" />
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.content.attachment.hash" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.hash" />
      </mapping>
    </element>
    <element id="Media.content.title">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Media.content.title" />
      <alias value="Titel" />
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.title" />
      </mapping>
    </element>
    <element id="Media.content.creation">
      <path value="Media.content.creation" />
      <comment value="This HL7 FHIR STU3 element is not used in IHE MHD XDS, therefore would not be present." />
    </element>
    <element id="Media.note">
      <path value="Media.note" />
      <alias value="Toelichting" />
      <mapping>
        <identity value="ihe-mhd-documentreference-xds-on-fhir" />
        <map value="DocumentReference.description" />
      </mapping>
      <mapping>
        <identity value="xds" />
        <map value="DocumentEntry.description" />
      </mapping>
      <mapping>
        <identity value="art-decor-beelden" />
        <map value="bd-dataelement-21" />
        <comment value="Toelichting" />
      </mapping>
    </element>
    <element id="Media.note.author[x]">
      <path value="Media.note.author[x]" />
      <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://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson" />
      </type>
      <type>
        <code value="string" />
      </type>
    </element>
  </differential>
</StructureDefinition>