{
  "resourceType": "StructureDefinition",
  "id": "CASIDE-CancerTNMCategories",
  "meta": {
    "lastUpdated": "2021-07-16T08:38:39.645+00:00"
  },
  "url": "http://gradiant.org/fhir/StructureDefinition/CASIDECancerTNMCategories",
  "version": "1.0",
  "name": "CASIDECancerTNMCategories",
  "title": "Cancer TNM Categories Profile",
  "status": "draft",
  "publisher": "GRADIANT",
  "contact": [
    {
      "name": "GRADIANT",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.gradiant.org/",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Cancer stage according to TNM classification. This system is based on three properties to describe cancer: T gives information about the size and extension of the main tumor, N describes whether the cancer has spread to nearby lymph nodes, and M refers to whether the cancer has spread to parts of the body far from the main tumor as metastases.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "binding": {
          "strength": "required",
          "valueSet": "http://gradiant.org/fhir/ValueSet/CASIDECancerTNMCategoriesModifierVS"
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://gradiant.org/fhir/StructureDefinition/CASIDECancerSurvivor"
            ]
          }
        ]
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "max": "0"
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code.coding"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:TumorCategory",
        "path": "Observation.component",
        "sliceName": "TumorCategory",
        "definition": "T category: size and extent of the main tumor",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:TumorCategory.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "78873005"
            }
          ]
        }
      },
      {
        "id": "Observation.component:TumorCategory.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct"
            }
          ]
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://gradiant.org/fhir/ValueSet/CASIDECancerTCategoryVS"
        }
      },
      {
        "id": "Observation.component:TumorCategory.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:NodeCategory",
        "path": "Observation.component",
        "sliceName": "NodeCategory",
        "definition": "N category: number of nearby lymph nodes that have cancer.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:NodeCategory.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "277206009"
            }
          ]
        }
      },
      {
        "id": "Observation.component:NodeCategory.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct"
            }
          ]
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://gradiant.org/fhir/ValueSet/CASIDECancerNCategoryVS"
        }
      },
      {
        "id": "Observation.component:NodeCategory.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component:MetastasisCategory",
        "path": "Observation.component",
        "sliceName": "MetastasisCategory",
        "definition": "M category: whether the cancer has spread to other parts of the body (metastases).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:MetastasisCategory.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "277208005"
            }
          ]
        }
      },
      {
        "id": "Observation.component:MetastasisCategory.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct"
            }
          ]
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://gradiant.org/fhir/ValueSet/CASIDECancerMCategoryVS"
        }
      },
      {
        "id": "Observation.component:MetastasisCategory.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      }
    ]
  }
}