<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://dktk.dkfz.de/fhir/StructureDefinition/onco-core-Observation-Fernmetastasen" />
  <version value="0.9.0" />
  <name value="Fernmetastasen" />
  <status value="active" />
  <description value="Gibt an, ob ein positiver Befund von Fernmetastasen vorliegt" />
  <fhirVersion value="4.0.0" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="sct-concept" />
    <uri value="http://snomed.info/conceptdomain" />
    <name value="SNOMED CT Concept Domain Binding" />
  </mapping>
  <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="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="sct-attr" />
    <uri value="http://snomed.org/attributebinding" />
    <name value="SNOMED CT Attribute Binding" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.status">
      <path value="Observation.status" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.category.coding.system">
      <path value="Observation.category.coding.system" />
      <fixedUri value="http://hl7.org/fhir/observation-category" />
    </element>
    <element id="Observation.category.coding.code">
      <path value="Observation.category.coding.code" />
      <fixedCode value="laboratory" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <mustSupport value="false" />
    </element>
    <element id="Observation.code.coding.system">
      <path value="Observation.code.coding.system" />
      <fixedUri value="http://loinc.org" />
    </element>
    <element id="Observation.code.coding.code">
      <path value="Observation.code.coding.code" />
      <fixedCode value="21907-1" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://dktk.dkfz.de/fhir/StructureDefinition/onco-core-Patient-Patient" />
        <targetProfile value="http://dktk.dkfz.de/fhir/StructureDefinition/onco-core-Patient-Pseudonym" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.subject.reference">
      <path value="Observation.subject.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.focus">
      <path value="Observation.focus" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
        <targetProfile value="http://dktk.dkfz.de/fhir/StructureDefinition/onco-core-Condition-Primaerdiagnose" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.encounter">
      <path value="Observation.encounter" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://dktk.dkfz.de/fhir/StructureDefinition/onco-core-Encounter-Fall" />
      </type>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <short value="Datum diagnostischer Sicherung" />
      <definition value="Gibt das Datum der Feststellung der Fernmetastase an" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="ADT-GEKID" />
        <map value="Fernmetastase:FM_Diagnosedatum" />
        <comment value="Fernmetastase:FM_Diagnosedatum" />
      </mapping>
      <mapping>
        <identity value="ISO-11179" />
        <map value="urn:dktk:dataelement:21:3" />
        <comment value="urn:dktk:dataelement:21:3" />
      </mapping>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <short value="Fernmetastasen vorhanden" />
      <definition value="Gibt an, ob ein positiver Befund von Fernmetastasen vorliegt" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Fernmetastasen vorhanden" />
        <valueSet value="http://dktk.dkfz.de/fhir/onco/core/ValueSet/JNUVS" />
      </binding>
      <mapping>
        <identity value="ADT-GEKID" />
        <map value="Verlauf:Verlauf_Tumorstatus_Fernmetastasen IN (M, T, P, N, R) OR Fernmetastase:FM_Diagnosedatum != NULL" />
      </mapping>
      <mapping>
        <identity value="ISO-11179" />
        <map value="urn:dktk:dataelement:77:1" />
        <comment value="urn:dktk:dataelement:77:1" />
      </mapping>
    </element>
    <element id="Observation.value[x].coding.code">
      <path value="Observation.value[x].coding.code" />
      <min value="1" />
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Lokalisation der Fernmetastase" />
        <valueSet value="http://dktk.dkfz.de/fhir/onco/core/ValueSet/FMLokalisationVS" />
      </binding>
    </element>
    <element id="Observation.bodySite.coding.code">
      <path value="Observation.bodySite.coding.code" />
      <short value="Lokalisation Fernmetastasen" />
      <definition value="Gibt die Lokalisation der Fernmetastase an" />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="ADT-GEKID" />
        <map value="Fernmetastase:FM_Lokalisation" />
        <comment value="Fernmetastase:FM_Lokalisation" />
      </mapping>
      <mapping>
        <identity value="ISO-11179" />
        <map value="urn:dktk:dataelement:98:1" />
        <comment value="urn:dktk:dataelement:98:1" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>