{
  "resourceType": "StructureDefinition",
  "id": "1.3.6.1.4.1.38760.FHIR.1.7.1",
  "url": "https://onko.vvis.gov.lv/fhir/StructureDefinition/Condition/OncologyCardData",
  "version": "0",
  "name": "OncologyCardData",
  "title": "Oncology Card Data",
  "status": "draft",
  "experimental": false,
  "date": "2022-12-13",
  "description": "Oncology patient's disease card - contains information about a specific oncological disease of an oncology patient, including general information about the disease card, information about the diagnosis of the disease, information characterizing the tumor, as well as information about the course of the disease. If one patient is diagnosed with several oncological diseases during his lifetime, a separate card is created for each disease. If the same disease is detected in different locations during life, as separate primary tumors, a separate disease map is created for each primary tumor.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition.extension",
        "path": "Condition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Condition.extension:cardCancellationDate",
        "path": "Condition.extension",
        "sliceName": "cardCancellationDate",
        "definition": "Card cancellation date | Kartes anulēšanas datums",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://onko.vvis.gov.lv/fhir/StructureDefinition/CardCancellationDateExtension"
            ]
          }
        ],
        "mustSupport": false,
        "isModifier": false
      },
      {
        "id": "Condition.extension:cardCancellationReason",
        "path": "Condition.extension",
        "sliceName": "cardCancellationReason",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://onko.vvis.gov.lv/fhir/StructureDefinition/CardCancellationReasonExtension"
            ]
          }
        ],
        "mustSupport": false,
        "isModifier": false
      },
      {
        "id": "Condition.extension:cardCancellationReason.value[x].coding.display",
        "path": "Condition.extension.value[x].coding.display",
        "definition": "A representation of the meaning of the code in the system, following the rules of the system."
      },
      {
        "id": "Condition.extension:countryOfDiagnosis",
        "path": "Condition.extension",
        "sliceName": "countryOfDiagnosis",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://onko.vvis.gov.lv/fhir/StructureDefinition/CountryOfDiagnosisExtension"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Condition.extension:countryOfDiagnosis.value[x].coding.display",
        "path": "Condition.extension.value[x].coding.display",
        "definition": "A representation of the meaning of the code in the system, following the rules of the system."
      },
      {
        "id": "Condition.extension:deregistrationDate",
        "path": "Condition.extension",
        "sliceName": "deregistrationDate",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://onko.vvis.gov.lv/fhir/StructureDefinition/DeregistrationDateExtension"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Condition.extension:deregistrationReason",
        "path": "Condition.extension",
        "sliceName": "deregistrationReason",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://onko.vvis.gov.lv/fhir/StructureDefinition/DeregistrationReaseonExtension"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Condition.extension:deregistrationReason.value[x].coding.display",
        "path": "Condition.extension.value[x].coding.display",
        "definition": "A representation of the meaning of the code in the system, following the rules of the system."
      },
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "min": 1,
        "max": "1",
        "mustSupport": false
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "max": "0"
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "max": "0"
      },
      {
        "id": "Condition.severity",
        "path": "Condition.severity",
        "max": "0"
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "max": "0"
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "max": "0"
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Condition.encounter",
        "path": "Condition.encounter",
        "max": "0"
      },
      {
        "id": "Condition.onset[x]",
        "path": "Condition.onset[x]",
        "max": "0"
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "max": "0"
      },
      {
        "id": "Condition.recordedDate",
        "path": "Condition.recordedDate",
        "max": "0"
      },
      {
        "id": "Condition.recorder",
        "path": "Condition.recorder",
        "max": "0"
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "max": "0"
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "max": "0"
      },
      {
        "id": "Condition.evidence.code.coding.system",
        "path": "Condition.evidence.code.coding.system",
        "short": "Way of revealing the diagnosis",
        "definition": "Way of revealing the diagnosis | Diagnozes atklāšanas veids",
        "fixedUri": "https://vvis.gov.lv/fhir/StructureDefinition/ValueSet/1.3.6.1.4.1.38760.2.606"
      },
      {
        "id": "Condition.evidence.code.coding.code",
        "path": "Condition.evidence.code.coding.code",
        "binding": {
          "strength": "required",
          "description": "Way of revealing the diagnosis code",
          "valueSet": "https://vvis.gov.lv/fhir/StructureDefinition/ValueSet/1.3.6.1.4.1.38760.2.606"
        }
      },
      {
        "id": "Condition.evidence.code.coding.display",
        "path": "Condition.evidence.code.coding.display",
        "definition": "Display name | Nosaukums"
      },
      {
        "id": "Condition.evidence.detail",
        "path": "Condition.evidence.detail",
        "max": "0"
      },
      {
        "id": "Condition.note",
        "path": "Condition.note",
        "max": "0"
      }
    ]
  }
}