<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="pop-cancer-treatment-response" />
  <url value="https://simplifier.net/pop/StructureDefinition/pop-cancer-treatment-response" />
  <version value="0.0.1" />
  <name value="CancerTreatmentResponse" />
  <title value="Cancer Treatment Response" />
  <status value="draft" />
  <date value="2023-09-22T08:15:35.7518841+00:00" />
  <publisher value="Precision Oncology Project (USZ)" />
  <description value="Cancer treatment response monitoring by imaging techniques to assess and track the effectiveness of cancer therapies and their impact on tumor size and progression." />
  <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.category">
      <path value="Observation.category" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
          <code value="imaging" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="182985004" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-cancer-patient" />
      </type>
    </element>
    <element id="Observation.focus">
      <path value="Observation.focus" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-primary-cancer-condition" />
        <targetProfile value="http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-secondary-cancer-condition" />
      </type>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <short value="RECIST coded value" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <description value="RECIST coded values" />
        <valueSet value="http://loinc.org/vs/LL4721-8" />
      </binding>
    </element>
    <element id="Observation.interpretation">
      <path value="Observation.interpretation" />
      <short value="Intepretation of the RECIST value" />
      <binding>
        <strength value="required" />
        <valueSet value="https://pop.org/fhir/ValueSets/pop-treatment-response-interpretations" />
      </binding>
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <binding>
        <strength value="preferred" />
        <description value="Codes describing anatomical locations" />
        <valueSet value="http://hl7.org/fhir/us/mcode/ValueSet/mcode-radiotherapy-treatment-location-vs" />
      </binding>
    </element>
    <element id="Observation.bodySite.extension:locationQualifier">
      <path value="Observation.bodySite.extension" />
      <sliceName value="locationQualifier" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-body-location-qualifier" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Observation.bodySite.extension:lateralityQualifier">
      <path value="Observation.bodySite.extension" />
      <sliceName value="lateralityQualifier" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-laterality-qualifier" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Observation.method">
      <path value="Observation.method" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://pop.org/fhir/ValueSets/pop-cancer-treatment-response-observation-methods" />
      </binding>
    </element>
    <element id="Observation.specimen">
      <path value="Observation.specimen" />
      <max value="0" />
    </element>
    <element id="Observation.device">
      <path value="Observation.device" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange" />
      <max value="0" />
    </element>
    <element id="Observation.hasMember">
      <path value="Observation.hasMember" />
      <max value="0" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>