<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="nfdi4health-ex-mds-outcomemeasure-backport-r5" />
  <url value="https://www.nfdi4health.de/fhir/StructureDefinition/nfdi4health-ex-mds-outcomemeasure-backport-r5" />
  <version value="0.9" />
  <name value="NFDI4Health_EX_MDS_OutcomeMeasure_Backport_R5" />
  <title value="NFDI4Health EX MDS Outcome Measure Backport R5" />
  <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 outcome measure(s)." />
  <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="ResearchStudy" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Outcome measures" />
      <definition value="Group of items providing information about outcome measures." />
      <comment value="Additional information: The items are optional, especially for non-interventional studies. [Backport Extension from R5: ResearchStudy.outcomeMeasure; Please note that some cardinalities have been adapted and some of the elements are not relevant for NFDI4Health. We changed the DataType from description to string and added an element to capture the time frame.]" />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Design.outcomes" />
      </mapping>
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <min value="2" />
    </element>
    <element id="Extension.extension:name">
      <path value="Extension.extension" />
      <sliceName value="name" />
      <min value="1" />
      <max value="1" />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Design.outcomes.title" />
      </mapping>
    </element>
    <element id="Extension.extension:name.extension">
      <path value="Extension.extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.extension:name.url">
      <path value="Extension.extension.url" />
      <fixedUri value="name" />
    </element>
    <element id="Extension.extension:name.value[x]">
      <path value="Extension.extension.value[x]" />
      <short value="Name of the outcome measure" />
      <definition value="Name of the outcome measure. For non-interventional studies, this can be the name of specific measurement(s) or observation(s) used to describe patterns of diseases or traits or associations with exposures, risk factors or treatment." />
      <comment value="Short input help: For non-interventional studies, you can provide specific measurement(s) or observation(s) used to describe patterns of diseases or traits or associations with exposures, risk factors or treatment." />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.extension:type">
      <path value="Extension.extension" />
      <sliceName value="type" />
      <min value="1" />
      <max value="1" />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Design.outcomes.type" />
      </mapping>
    </element>
    <element id="Extension.extension:type.extension">
      <path value="Extension.extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.extension:type.url">
      <path value="Extension.extension.url" />
      <fixedUri value="type" />
    </element>
    <element id="Extension.extension:type.value[x]">
      <path value="Extension.extension.value[x]" />
      <short value="Type of the outcome measure" />
      <definition value="The type indicates the degree of importance of the outcome measure in the [RESOURCE]." />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Extension.extension:type.value[x].coding">
      <path value="Extension.extension.value[x].coding" />
      <binding>
        <strength value="required" />
        <description value="Value set defining codes to specify the type of outcome measure." />
        <valueSet value="https://www.nfdi4health.de/fhir/metadataschema/ValueSet/nfdi4health-vs-mds-study-outcome-type-nci" />
      </binding>
    </element>
    <element id="Extension.extension:type.value[x].coding.system">
      <path value="Extension.extension.value[x].coding.system" />
      <min value="1" />
    </element>
    <element id="Extension.extension:type.value[x].coding.code">
      <path value="Extension.extension.value[x].coding.code" />
      <min value="1" />
    </element>
    <element id="Extension.extension:description">
      <path value="Extension.extension" />
      <sliceName value="description" />
      <min value="0" />
      <max value="1" />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Design.outcomes.description" />
      </mapping>
    </element>
    <element id="Extension.extension:description.extension">
      <path value="Extension.extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.extension:description.url">
      <path value="Extension.extension.url" />
      <fixedUri value="description" />
    </element>
    <element id="Extension.extension:description.value[x]">
      <path value="Extension.extension.value[x]" />
      <short value="Description of the outcome measure" />
      <definition value="Additional descriptive information about the given outcome." />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.extension:reference">
      <path value="Extension.extension" />
      <sliceName value="reference" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Extension.extension:reference.url">
      <path value="Extension.extension.url" />
      <fixedUri value="reference" />
    </element>
    <element id="Extension.extension:timeFrame">
      <path value="Extension.extension" />
      <sliceName value="timeFrame" />
      <min value="0" />
      <max value="1" />
      <mapping>
        <identity value="NFDI4Health" />
        <map value="Design.outcomes.timeFrame" />
      </mapping>
    </element>
    <element id="Extension.extension:timeFrame.extension">
      <path value="Extension.extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.extension:timeFrame.url">
      <path value="Extension.extension.url" />
      <fixedUri value="timeFrame" />
    </element>
    <element id="Extension.extension:timeFrame.value[x]">
      <path value="Extension.extension.value[x]" />
      <short value="Time point(s) of assessment" />
      <definition value="Description of the time point(s) at which the measurement for the outcome is assessed, e.g. the specific duration of time over which each participant is assessed." />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="https://www.nfdi4health.de/fhir/StructureDefinition/nfdi4health-ex-mds-outcomemeasure-backport-r5" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>