<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ObservationForLung" />
  <url value="https://fhir.incisive-project.eu/StructureDefinition/ObservationForLung" />
  <version value="20230718" />
  <name value="ObservationForLung" />
  <title value="Observation for Lung cancer" />
  <status value="active" />
  <publisher value="FTSS" />
  <description value="Defines the Observation structure used by Lung cancer in the INCISIVE" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <short value="Measurements, simple assertions or information about diagnosis of a patient" />
      <definition value="An measurements, simple assertions or information about diagnosis of a INCISIVE patient." />
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <short value="Status of this observation" />
      <definition value="The status of the observation information. The status can be registered | preliminary | final | amended + . For INCISIVE, this state is final, because this observation has been contained the observation information about a patient." />
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <short value="Describe classification of lung cancer type or define the timepoint that this observation was taken" />
      <definition value="Describe a code that classifies the lung cancer type of observation used coding attribute. It also can define the timepoint that this observation was taken, e.g., between 1st and 2nd dose of CT, uesd text attribute." />
      <binding>
        <strength value="preferred" />
        <description value="Cancer Type Codes" />
        <valueSet value="https://fhir.incisive-project.eu/ValueSet/CancerTypeCodes" />
      </binding>
    </element>
    <element id="Observation.category.coding">
      <path value="Observation.category.coding" />
      <short value="Code defined by INCISIVE local codes" />
      <definition value="A reference to a code defined by a terminology system. In this case, use the INCISIVE local code." />
    </element>
    <element id="Observation.category.coding.system">
      <path value="Observation.category.coding.system" />
      <short value="Identity of the INCISIVE local code system" />
      <definition value="The identification of the code system that defines the meaning of the symbol in the code. This system points to the INCISIVE local code system." />
    </element>
    <element id="Observation.category.coding.code">
      <path value="Observation.category.coding.code" />
      <short value="Cancer Type code" />
    </element>
    <element id="Observation.category.coding.display">
      <path value="Observation.category.coding.display" />
      <short value="Cancer Type description" />
    </element>
    <element id="Observation.category.text">
      <path value="Observation.category.text" />
      <short value="Indicate timepoint that this observation was taken" />
      <definition value="Define the timepoint that this observation was taken, e.g., between 1st and 2nd dose of CT." />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <short value="Describe case use of this observation or label of this observation" />
      <definition value="Describe which cancer was observed, used SNOMED CT terminology. It also can indicate label of this observation, e.g., After 1st Treatment, used INCISIVE local codes." />
      <binding>
        <strength value="preferred" />
        <description value="Label Codes" />
        <valueSet value="https://fhir.incisive-project.eu/ValueSet/LabelCodes" />
      </binding>
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <short value="Code defined by a SNOMED CT terminology or INCISIVE local codes" />
      <definition value="A reference to a code defined by a terminology system. In this case, can be SNOMED CT code or INCISIVE local code." />
    </element>
    <element id="Observation.code.coding.system">
      <path value="Observation.code.coding.system" />
      <short value="Identity of the SNOMED CT terminology system or INCISIVE local code system" />
      <definition value="The identification of the code system that defines the meaning of the symbol in the code. This system can point to the SNOMED CT terminology or INCISIVE local code system." />
    </element>
    <element id="Observation.code.coding.code">
      <path value="Observation.code.coding.code" />
      <short value="SNOMED CT code or Label Code" />
    </element>
    <element id="Observation.code.coding.display">
      <path value="Observation.code.coding.display" />
      <short value="SNOMED CT FSN or Label description" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <short value="Patient whose measurement has been made" />
      <definition value="The INCISIVE patient whose measurement has been made. Use relative reference to the Patient resource." />
    </element>
    <element id="Observation.subject.reference">
      <path value="Observation.subject.reference" />
      <short value="Use relative reference to the Patient resource" />
      <definition value="A reference to a location at which the patient is found. The reference is relative reference, in which case it is relative to the service base URL, e.g., reference value=&quot;Patient/patient00&quot;." />
    </element>
    <element id="Observation.subject.type">
      <path value="Observation.subject.type" />
      <short value="Type the resource reference refers to" />
      <definition value="In this case, the resource type is Patient." />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <short value="Describe date of this observation" />
      <definition value="The date is months from diagnosis of the INCISIVE patient." />
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <short value="Observation notes" />
      <definition value="The notes about this observation, it can be free text." />
    </element>
    <element id="Observation.note.text">
      <path value="Observation.note.text" />
      <short value="Notes content" />
      <definition value="The text of the notes in markdown format." />
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <short value="Describe observed body location" />
      <definition value="Indicate the location on the patient's body where the observation was made. e.g., brain." />
      <binding>
        <strength value="preferred" />
        <description value="Location Codes" />
        <valueSet value="https://fhir.incisive-project.eu/ValueSet/LocationCodes" />
      </binding>
    </element>
    <element id="Observation.bodySite.coding">
      <path value="Observation.bodySite.coding" />
      <short value="Code defined by INCISIVE local codes" />
      <definition value="A reference to a code defined by a terminology system. In this case, use the INCISIVE local code." />
    </element>
    <element id="Observation.bodySite.coding.system">
      <path value="Observation.bodySite.coding.system" />
      <short value="Identity of the INCISIVE local code system" />
      <definition value="The identification of the code system that defines the meaning of the symbol in the code. This system points to the INCISIVE local code system." />
    </element>
    <element id="Observation.bodySite.coding.code">
      <path value="Observation.bodySite.coding.code" />
      <short value="Location code" />
    </element>
    <element id="Observation.bodySite.coding.display">
      <path value="Observation.bodySite.coding.display" />
      <short value="Location description" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <short value="Result of measurements, simple assertions or information about diagnosis of a patient" />
      <definition value="Contain all results of measurements, simple assertions or information about diagnosis of a patient. Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes." />
    </element>
    <element id="Observation.component.code">
      <path value="Observation.component.code" />
      <short value="Classification of component observation" />
      <definition value="Describes what was observed, can be use SNOMED CT terminology or LOINC terminology. Take into account that use SNOMED CT terminology to represent clinical data and use LOINC terminology to represent laboratory data." />
    </element>
    <element id="Observation.component.code.coding">
      <path value="Observation.component.code.coding" />
      <short value="Code defined by a SNOMED CT or LOINC terminology" />
      <definition value="Use SNOMED CT terminology to represent clinical data or use LOINC terminology to represent laboratory data." />
    </element>
    <element id="Observation.component.code.coding.system">
      <path value="Observation.component.code.coding.system" />
      <short value="Identity of the SNOMED CT url or LOINC url" />
    </element>
    <element id="Observation.component.code.coding.code">
      <path value="Observation.component.code.coding.code" />
      <short value="SNOMED CT code or LOINC code" />
    </element>
    <element id="Observation.component.code.coding.display">
      <path value="Observation.component.code.coding.display" />
      <short value="Fully Specified Name defined by the SNOMED CT or name defined by the LOINC" />
    </element>
    <element id="Observation.component.value[x]">
      <path value="Observation.component.value[x]" />
      <short value="Actual observation component result" />
      <definition value="The information determined as a result of making the observation. The result can be different type of value, e.g., Quantity, CodeableConcept, string, boolean or integer. Take into account that if the value type is CodeableCocept, it can use the lung component codes to represent the value." />
      <binding>
        <strength value="preferred" />
        <description value="Lung Component Codes" />
        <valueSet value="https://fhir.incisive-project.eu/ValueSet/LungComponentCodes" />
      </binding>
    </element>
  </differential>
</StructureDefinition>