{
  "resourceType": "StructureDefinition",
  "id": "Observation",
  "url": "https://fhir.centraxx.de/StructureDefinition/Histology",
  "version": "2025.4.0",
  "name": "Histology",
  "status": "active",
  "publisher": "Kairos an IQVIA business",
  "description": "Represents a CentraXX Histology.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.meta",
        "path": "Observation.meta",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.meta.profile",
        "path": "Observation.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://fhir.centraxx.de/StructureDefinition/histology",
        "mustSupport": true
      },
      {
        "id": "Observation.meta.tag",
        "path": "Observation.meta.tag",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.meta.tag.system",
        "path": "Observation.meta.tag.system",
        "min": 1,
        "max": "1",
        "fixedString": "https://fhir.centraxx.de/system/cxxEntity",
        "mustSupport": true
      },
      {
        "id": "Observation.meta.tag.code",
        "path": "Observation.meta.tag.code",
        "min": 1,
        "max": "1",
        "fixedString": "Histology",
        "mustSupport": true
      },
      {
        "id": "Observation.extension",
        "path": "Observation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "closed"
        },
        "min": 0,
        "max": "2",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.extension:updateWithOverwrite",
        "path": "Observation.extension",
        "sliceName": "updateWithOverwrite",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.centraxx.de/extension/updateWithOverwrite"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.extension:sourceDict",
        "path": "Observation.extension",
        "sliceName": "sourceDict",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.centraxx.de/extension/histology/sourceDict"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "closed"
        },
        "min": 0,
        "max": "3",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier:histologyId",
        "path": "Observation.identifier",
        "sliceName": "histologyId",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier:histologyId.system",
        "path": "Observation.identifier.system",
        "min": 1,
        "max": "1",
        "fixedString": "https://fhir.centraxx.de/system/histology/histologyId",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier:histologyId.value",
        "path": "Observation.identifier.value",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier:cxxHistologyId",
        "path": "Observation.identifier",
        "sliceName": "cxxHistologyId",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier:cxxHistologyId.system",
        "path": "Observation.identifier.system",
        "min": 1,
        "max": "1",
        "fixedString": "https://fhir.centraxx.de/system/histology/cxxHistologyId",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier:cxxHistologyId.value",
        "path": "Observation.identifier.value",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier:xmlId",
        "path": "Observation.identifier",
        "sliceName": "xmlId",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier:xmlId.system",
        "path": "Observation.identifier.system",
        "min": 1,
        "max": "1",
        "fixedString": "https://fhir.centraxx.de/system/histology/xmlId",
        "mustSupport": true
      },
      {
        "id": "Observation.identifier:xmlId.value",
        "path": "Observation.identifier.value",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "fixedCode": "final",
        "mustSupport": true
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "22036-8"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.centraxx.de/StructureDefinition/Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.focus",
        "path": "Observation.focus",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.centraxx.de/StructureDefinition/Tumor"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.centraxx.de/StructureDefinition/Encounter"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "comment": "Represents Histology date",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "comment": "CXX creation date",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].coding",
        "path": "Observation.value[x].coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].coding.system",
        "path": "Observation.value[x].coding.system",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].coding.version",
        "path": "Observation.value[x].coding.version",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].coding.code",
        "path": "Observation.value[x].coding.code",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x].coding.display",
        "path": "Observation.value[x].coding.display",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.note",
        "path": "Observation.note",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.note.text",
        "path": "Observation.note.text",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.centraxx.de/StructureDefinition/Progress"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}