<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="nfdi4health-ex-mds-keywords" />
  <url value="https://www.nfdi4health.de/fhir/metadataschema/StructureDefinition/nfdi4health-ex-mds-keywords" />
  <version value="0.9" />
  <name value="NFDI4Health_EX_MDS_Keywords" />
  <title value="NFDI4Health EX MDS Keyword" />
  <status value="draft" />
  <publisher value="NFDI4Health" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="https://www.nfdi4health.de" />
    </telecom>
  </contact>
  <description value="Extension storing keyword(s) describing a 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="Questionnaire" />
  </context>
  <context>
    <type value="element" />
    <expression value="DocumentReference" />
  </context>
  <context>
    <type value="element" />
    <expression value="Library" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Keywords" />
      <definition value="Group of items providing information about keywords describing the [RESOURCE]." />
      <comment value="Additional information: The findability of the [RESOURCE] can be significantly increased if proper keywords are stated." />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.keywords" />
      </mapping>
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="https://www.nfdi4health.de/fhir/metadataschema/StructureDefinition/nfdi4health-ex-mds-keywords" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Extension.value[x].coding.system">
      <path value="Extension.value[x].coding.system" />
      <short value="Code of the keyword" />
      <comment value="If known, you can provide the code of the keyword in the classification/vocabulary used." />
      <min value="1" />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.keywords.code" />
      </mapping>
    </element>
    <element id="Extension.value[x].text">
      <path value="Extension.value[x].text" />
      <short value="Keyword" />
      <definition value="Keyword(s) describing the [RESOURCE]." />
      <comment value="The use of terms from established classifications/vocabularies (e.g. SNOMED CT, MeSH, UMLS) is preferred. However, also self-assigned keywords are allowed. Preferably, use terms from SNOMED CT or MESH." />
      <min value="1" />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.keywords.label" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>