<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="nfdi4health-pr-mds-affiliation" />
  <url value="https://www.nfdi4health.de/fhir/metadataschema/StructureDefinition/nfdi4health-pr-mds-affiliation" />
  <version value="0.9" />
  <name value="NFDI4Health_PR_MDS_Affiliation" />
  <title value="NFDI4Health PR MDS Affiliation" />
  <status value="draft" />
  <publisher value="NFDI4Health" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="https://www.nfdi4health.de" />
    </telecom>
  </contact>
  <description value="Group of items providing further information about the affiliated organisation(s) associated with the contributor." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="servd" />
    <uri value="http://www.omg.org/spec/ServD/1.0/" />
    <name value="ServD" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="NFDI4Health" />
    <name value="NFDI4Health to FHIR Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Organization" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Organization" />
  <derivation value="constraint" />
  <differential>
    <element id="Organization">
      <path value="Organization" />
      <short value="Organisation(s) associated with the contributor" />
      <definition value="Resource.contributors.affiliation: Group of items providing further information about the organisation(s) associated with the contributor." />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.contributors.affiliations" />
      </mapping>
    </element>
    <element id="Organization.identifier">
      <path value="Organization.identifier" />
      <short value="Digital identifier(s)" />
      <definition value="Group of items providing information about digital identifiers of the organisation associated with the contributor." />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.contributors.affiliation.identifiers" />
      </mapping>
    </element>
    <element id="Organization.identifier.type">
      <path value="Organization.identifier.type" />
      <short value="Scheme" />
      <definition value="Type of the identifier scheme." />
      <min value="1" />
      <example>
        <label value="Identifier type" />
        <valueCodeableConcept>
          <text value="ROR" />
        </valueCodeableConcept>
      </example>
      <binding>
        <strength value="required" />
        <description value="Value set defining codes to specify the identifier scheme of an affiliation identifier." />
        <valueSet value="https://www.nfdi4health.de/fhir/metadataschema/ValueSet/nfdi4health-vs-mds-role-affiliation-identifier-scheme-local" />
      </binding>
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.contributors.affiliation.identifiers.scheme" />
      </mapping>
    </element>
    <element id="Organization.identifier.type.coding">
      <path value="Organization.identifier.type.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Organization.identifier.value">
      <path value="Organization.identifier.value" />
      <short value="Identifier" />
      <definition value="Digital identifier according to a specific scheme that uniquely identifies the organisation." />
      <comment value="Short input help: Preferably, provide an identifier from ROR (https://ror.org/search)." />
      <min value="1" />
      <example>
        <label value="Example of ROR Identifier" />
        <valueString value="0259fwx54" />
      </example>
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.contributors.affiliation.identifiers.identifier" />
      </mapping>
    </element>
    <element id="Organization.name">
      <path value="Organization.name" />
      <short value="Name" />
      <definition value="Name of the organisation associated with the contributor." />
      <comment value="If you have already entered the name of the organistion in the field 'Name of the organisation/institution/group', please repeat it here." />
      <min value="1" />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.contributors.affiliation.name" />
      </mapping>
    </element>
    <element id="Organization.telecom">
      <path value="Organization.telecom" />
      <short value="Web page" />
      <definition value="Web page of the organisation associated with the contributor." />
      <max value="1" />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.contributors.affiliation.webpage" />
      </mapping>
    </element>
    <element id="Organization.telecom.system">
      <path value="Organization.telecom.system" />
      <min value="1" />
      <fixedCode value="url" />
    </element>
    <element id="Organization.telecom.value">
      <path value="Organization.telecom.value" />
      <min value="1" />
    </element>
    <element id="Organization.telecom.use">
      <path value="Organization.telecom.use" />
      <patternCode value="work" />
    </element>
    <element id="Organization.address">
      <path value="Organization.address" />
      <short value="Address" />
      <definition value="Address of the organisation associated with the contributor." />
      <comment value="Short Input Help: Please preferably use the following address format: Street name and number [comma] post code [comma] city [comma] country." />
      <max value="1" />
      <example>
        <label value="Example of an organisation address" />
        <valueString value="Gleueler Straße 60, 50931, Cologne, Germany" />
      </example>
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Resource.contributors.affiliation.address" />
      </mapping>
    </element>
    <element id="Organization.address.use">
      <path value="Organization.address.use" />
      <patternCode value="work" />
    </element>
    <element id="Organization.address.text">
      <path value="Organization.address.text" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>