<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="nfdi4health-pr-mds-centers" />
  <url value="https://www.nfdi4health.de/fhir/metadataschema/StructureDefinition/nfdi4health-pr-mds-centers" />
  <version value="0.9" />
  <name value="NFDI4Health_PR_MDS_Centers" />
  <title value="NFDI4Health PR MDS Centers" />
  <status value="draft" />
  <publisher value="NFDI4Health" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="https://www.nfdi4health.de" />
    </telecom>
  </contact>
  <description value="Profile intended to capture information on the number of centers invovled in a study." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </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="Location" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Location" />
  <derivation value="constraint" />
  <differential>
    <element id="Location">
      <path value="Location" />
      <constraint>
        <key value="centers-a" />
        <severity value="error" />
        <human value="Cardinality: 0..1, if Design.centers == '255206009'" />
        <expression value="type.where(code = '255206009').exists() implies description.exists()" />
        <source value="https://www.nfdi4health.de/fhir/metadataschema/StructureDefinition/nfdi4health-pr-mds-centers" />
      </constraint>
      <constraint>
        <key value="centers-b" />
        <severity value="error" />
        <human value="Cardinality: 0..0, if Design.centers != '255206009'" />
        <expression value="type.where(code = '084').exists() implies description.exists().not()" />
        <source value="https://www.nfdi4health.de/fhir/metadataschema/StructureDefinition/nfdi4health-pr-mds-centers" />
      </constraint>
    </element>
    <element id="Location.description">
      <path value="Location.description" />
      <short value="Number of centers" />
      <definition value="Number of study centers involved in data collection." />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Design.centersNumber" />
      </mapping>
    </element>
    <element id="Location.type">
      <path value="Location.type" />
      <short value="Mono- or multicentric?" />
      <definition value="Specification whether the data are collected at only one or at more than one study center." />
      <comment value="0..1, if Resource.classification.type == ('C63536' OR 'C198230'); otherwise 0..0" />
      <max value="1" />
      <binding>
        <strength value="required" />
        <valueSet value="https://www.nfdi4health.de/fhir/metadataschema/ValueSet/nfdi4health-vs-mds-study-centers-snomedct-local" />
      </binding>
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Design.centers" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>