<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Profile-nNGM-Observation-Histologie" />
  <url value="http://uk-koeln.de/fhir/StructureDefinition/Observation/nNGM/histologie" />
  <version value="1.0.0" />
  <name value="Profile_nNGM_Observation_Histologie" />
  <title value="Profile - nNGM - Observation - Histologie" />
  <status value="active" />
  <description value="Dieses Profil beschreibt die Klassifikation (Morphologie), Topographie und die Histopathologische Differenzierung (Grading) der Tumorerkankung innerhalb des nNGM Projektes." />
  <fhirVersion value="4.0.1" />
  <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" />
      <fixedCode value="final" />
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
          <code value="laboratory" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.code.coding:loinc">
      <path value="Observation.code.coding" />
      <sliceName value="loinc" />
      <min value="1" />
      <patternCoding>
        <system value="http://loinc.org" />
        <code value="59847-4" />
      </patternCoding>
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <label value="Patient" />
      <short value="Ein Bezug zum Patienten muss stets gegeben sein" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://uk-koeln.de/fhir/StructureDefinition/Patient/nNGM/pseudonymisiert" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <label value="Klassifikation" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://uk-koeln.de/fhir/ValueSet/nNGM/histologie-klassifikation" />
      </binding>
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <label value="Lokalisation" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://uk-koeln.de/fhir/ValueSet/icd-o-3-topologie" />
      </binding>
    </element>
    <element id="Observation.specimen">
      <path value="Observation.specimen" />
      <label value="Tumormaterial" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://uk-koeln.de/fhir/StructureDefinition/nNGM/Specimen" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="code.coding.code" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.component:grading">
      <path value="Observation.component" />
      <sliceName value="grading" />
      <max value="1" />
    </element>
    <element id="Observation.component:grading.code.coding.system">
      <path value="Observation.component.code.coding.system" />
      <fixedUri value="http://loinc.org" />
    </element>
    <element id="Observation.component:grading.code.coding.code">
      <path value="Observation.component.code.coding.code" />
      <fixedCode value="59542-1" />
    </element>
    <element id="Observation.component:grading.value[x]">
      <path value="Observation.component.value[x]" />
      <label value="Grading" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://uk-koeln.de/fhir/ValueSet/nNGM/grading" />
      </binding>
    </element>
    <element id="Observation.component:grading.referenceRange">
      <path value="Observation.component.referenceRange" />
      <contentReference value="http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaLepidic">
      <path value="Observation.component" />
      <sliceName value="growthPatternInAdenocarcinomaLepidic" />
      <max value="1" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaLepidic.code.coding.system">
      <path value="Observation.component.code.coding.system" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaLepidic.code.coding.code">
      <path value="Observation.component.code.coding.code" />
      <fixedCode value="112677002" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaLepidic.value[x]">
      <path value="Observation.component.value[x]" />
      <label value="Wachstumsmuster bei Adenokarzinom lepidisch" />
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaLepidic.value[x].value">
      <path value="Observation.component.value[x].value" />
      <min value="1" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaLepidic.value[x].unit">
      <path value="Observation.component.value[x].unit" />
      <min value="1" />
      <fixedString value="%" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaLepidic.value[x].system">
      <path value="Observation.component.value[x].system" />
      <min value="1" />
      <fixedUri value="http://unitsofmeasure.org" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaLepidic.referenceRange">
      <path value="Observation.component.referenceRange" />
      <contentReference value="http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaAcinar">
      <path value="Observation.component" />
      <sliceName value="growthPatternInAdenocarcinomaAcinar" />
      <max value="1" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaAcinar.code.coding.system">
      <path value="Observation.component.code.coding.system" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaAcinar.code.coding.code">
      <path value="Observation.component.code.coding.code" />
      <fixedCode value="128703004" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaAcinar.value[x]">
      <path value="Observation.component.value[x]" />
      <label value="Wachstumsmuster bei Adenokarzinom azinär" />
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaAcinar.value[x].value">
      <path value="Observation.component.value[x].value" />
      <min value="1" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaAcinar.value[x].unit">
      <path value="Observation.component.value[x].unit" />
      <min value="1" />
      <fixedString value="%" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaAcinar.value[x].system">
      <path value="Observation.component.value[x].system" />
      <min value="1" />
      <fixedUri value="http://unitsofmeasure.org" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaAcinar.referenceRange">
      <path value="Observation.component.referenceRange" />
      <contentReference value="http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaPapillary">
      <path value="Observation.component" />
      <sliceName value="growthPatternInAdenocarcinomaPapillary" />
      <max value="1" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaPapillary.code.coding.system">
      <path value="Observation.component.code.coding.system" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaPapillary.code.coding.code">
      <path value="Observation.component.code.coding.code" />
      <fixedCode value="4797003" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaPapillary.value[x]">
      <path value="Observation.component.value[x]" />
      <label value="Wachstumsmuster bei Adenokarzinom papillär" />
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaPapillary.value[x].value">
      <path value="Observation.component.value[x].value" />
      <min value="1" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaPapillary.value[x].unit">
      <path value="Observation.component.value[x].unit" />
      <min value="1" />
      <fixedString value="%" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaPapillary.value[x].system">
      <path value="Observation.component.value[x].system" />
      <min value="1" />
      <fixedUri value="http://unitsofmeasure.org" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaPapillary.referenceRange">
      <path value="Observation.component.referenceRange" />
      <contentReference value="http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaMicropapillary">
      <path value="Observation.component" />
      <sliceName value="growthPatternInAdenocarcinomaMicropapillary" />
      <max value="1" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaMicropapillary.code.coding.system">
      <path value="Observation.component.code.coding.system" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaMicropapillary.code.coding.code">
      <path value="Observation.component.code.coding.code" />
      <fixedCode value="450895005" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaMicropapillary.value[x]">
      <path value="Observation.component.value[x]" />
      <label value="Wachstumsmuster bei Adenokarzinom mikropapillär" />
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaMicropapillary.value[x].value">
      <path value="Observation.component.value[x].value" />
      <min value="1" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaMicropapillary.value[x].unit">
      <path value="Observation.component.value[x].unit" />
      <min value="1" />
      <fixedString value="%" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaMicropapillary.value[x].system">
      <path value="Observation.component.value[x].system" />
      <min value="1" />
      <fixedUri value="http://unitsofmeasure.org" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaMicropapillary.referenceRange">
      <path value="Observation.component.referenceRange" />
      <contentReference value="http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaSolid">
      <path value="Observation.component" />
      <sliceName value="growthPatternInAdenocarcinomaSolid" />
      <max value="1" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaSolid.code.coding.system">
      <path value="Observation.component.code.coding.system" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaSolid.code.coding.code">
      <path value="Observation.component.code.coding.code" />
      <fixedCode value="81920005" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaSolid.value[x]">
      <path value="Observation.component.value[x]" />
      <label value="Wachstumsmuster bei Adenokarzinom solide" />
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaSolid.value[x].value">
      <path value="Observation.component.value[x].value" />
      <min value="1" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaSolid.value[x].unit">
      <path value="Observation.component.value[x].unit" />
      <min value="1" />
      <fixedString value="%" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaSolid.value[x].system">
      <path value="Observation.component.value[x].system" />
      <min value="1" />
      <fixedUri value="http://unitsofmeasure.org" />
    </element>
    <element id="Observation.component:growthPatternInAdenocarcinomaSolid.referenceRange">
      <path value="Observation.component.referenceRange" />
      <contentReference value="http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange" />
    </element>
    <element id="Observation.component:percentageOfSignetRingCellCarcinoma">
      <path value="Observation.component" />
      <sliceName value="percentageOfSignetRingCellCarcinoma" />
      <max value="1" />
    </element>
    <element id="Observation.component:percentageOfSignetRingCellCarcinoma.code.coding.system">
      <path value="Observation.component.code.coding.system" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Observation.component:percentageOfSignetRingCellCarcinoma.code.coding.code">
      <path value="Observation.component.code.coding.code" />
      <fixedCode value="87737001" />
    </element>
    <element id="Observation.component:percentageOfSignetRingCellCarcinoma.value[x]">
      <path value="Observation.component.value[x]" />
      <label value="Anteil an Siegelringzellkarzinomen" />
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:percentageOfSignetRingCellCarcinoma.value[x].value">
      <path value="Observation.component.value[x].value" />
      <min value="1" />
    </element>
    <element id="Observation.component:percentageOfSignetRingCellCarcinoma.value[x].unit">
      <path value="Observation.component.value[x].unit" />
      <min value="1" />
      <fixedString value="%" />
    </element>
    <element id="Observation.component:percentageOfSignetRingCellCarcinoma.value[x].system">
      <path value="Observation.component.value[x].system" />
      <min value="1" />
      <fixedUri value="http://unitsofmeasure.org" />
    </element>
    <element id="Observation.component:percentageOfSignetRingCellCarcinoma.referenceRange">
      <path value="Observation.component.referenceRange" />
      <contentReference value="http://hl7.org/fhir/StructureDefinition/Observation#Observation.referenceRange" />
    </element>
  </differential>
</StructureDefinition>