<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="nfdi4health-ex-mds-document-use-rights" />
  <url value="https://www.nfdi4health.de/fhir/metadataschema/StructureDefinition/nfdi4health-ex-mds-document-use-rights" />
  <version value="0.9" />
  <name value="NFDI4Health_EX_MDS_Document_Use_Rights" />
  <title value="NFDI4Health EX MDS Document Use Rights" />
  <status value="draft" />
  <publisher value="NFDI4Health" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="https://www.nfdi4health.de" />
    </telecom>
  </contact>
  <description value="Extension providing information about the rights to (re-)use the [RESOURCE]." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="NFDI4Health" />
    <name value="NFDI4Health to FHIR Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="DocumentReference" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Use rights" />
      <definition value="Group of items providing information about the rights to (re-)use the [RESOURCE]." />
      <max value="1" />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="1.9.3 Resource.nonStudyDetails.useRights" />
      </mapping>
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <min value="1" />
    </element>
    <element id="Extension.extension:copyrightLabelAndLink">
      <path value="Extension.extension" />
      <sliceName value="copyrightLabelAndLink" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://www.nfdi4health.de/fhir/metadataschema/StructureDefinition/nfdi4health-ex-mds-copyright-label-and-link" />
      </type>
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.nonStudyDetails.useRights.label" />
      </mapping>
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.nonStudyDetails.useRights.link" />
      </mapping>
    </element>
    <element id="Extension.extension:useRightsConfirmations">
      <path value="Extension.extension" />
      <sliceName value="useRightsConfirmations" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://www.nfdi4health.de/fhir/metadataschema/StructureDefinition/nfdi4health-ex-mds-use-rights-confirmations" />
      </type>
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.nonStudyDetails.useRights.confirmations" />
      </mapping>
    </element>
    <element id="Extension.extension:useRightsDescription">
      <path value="Extension.extension" />
      <sliceName value="useRightsDescription" />
      <short value="Additional information about use rights" />
      <definition value="Any additional descriptive information explaining terms and conditions to (re-)use the [RESOURCE]." />
      <comment value="Short Input Help: If 'Other' is selected in the field 'License', the preferred license or terms and conditions for (re-)use should be specified here." />
      <min value="0" />
      <max value="1" />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.nonStudyDetails.useRights.description" />
      </mapping>
    </element>
    <element id="Extension.extension:useRightsDescription.extension">
      <path value="Extension.extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.extension:useRightsDescription.url">
      <path value="Extension.extension.url" />
      <fixedUri value="useRightsDescription" />
    </element>
    <element id="Extension.extension:useRightsDescription.value[x]">
      <path value="Extension.extension.value[x]" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="https://www.nfdi4health.de/fhir/metadataschema/StructureDefinition/nfdi4health-ex-mds-document-use-rights" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>