{
  "resourceType": "StructureDefinition",
  "id": "a5c1f842-4585-4dd1-8e5c-603ed45db75c",
  "meta": {
    "lastUpdated": "2022-01-10T09:54:51.263+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/ConditionDiagnosisSe/v1",
  "name": "ConditionDiagnosisSe",
  "status": "active",
  "date": "2021-11-01T13:58:05.3198389+00:00",
  "description": "The ConditionDiagnosisSe profile handles information about diagnoses that are documented in a QuestionnaireResponseSe profile. In this profile, the diagnose code systems that are handled are ICD10 and ICD10 Prim (ksh97-p).",
  "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": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Condition.meta",
        "path": "Condition.meta"
      },
      {
        "id": "Condition.meta.profile",
        "path": "Condition.meta.profile",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.extension",
        "path": "Condition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Condition.extension:chronic",
        "path": "Condition.extension",
        "sliceName": "chronic",
        "short": "Is the condition chronic?",
        "definition": "Specifies whether the condition is chronic or not.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/condition-chronic/v1"
            ]
          }
        ]
      },
      {
        "id": "Condition.extension:subProcedure",
        "path": "Condition.extension",
        "sliceName": "subProcedure",
        "short": "Procedures related to the condition",
        "definition": "Procedures that are related to the condition.",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/common-subProcedure/v1"
            ]
          }
        ]
      },
      {
        "id": "Condition.extension:subCondition",
        "path": "Condition.extension",
        "sliceName": "subCondition",
        "short": "Sub-conditions",
        "definition": "Other conditions that are related to this condition.",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/fhir/StructureDefinition/condition-subCondition"
            ]
          }
        ]
      },
      {
        "id": "Condition.extension:typeOfDiagnosis",
        "path": "Condition.extension",
        "sliceName": "typeOfDiagnosis",
        "definition": "There should always be a main diagnosis",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/condition-typeOfDiagnosis"
            ]
          }
        ]
      },
      {
        "id": "Condition.extension:typeOfDiagnosis.value[x]",
        "path": "Condition.extension.value[x]",
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.cambio.se/ValueSet/TypeOfDiagnosis/v1"
        }
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "max": "0"
      },
      {
        "id": "Condition.verificationStatus",
        "path": "Condition.verificationStatus",
        "max": "0"
      },
      {
        "id": "Condition.severity",
        "path": "Condition.severity",
        "max": "0"
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "min": 1
      },
      {
        "id": "Condition.code.coding",
        "path": "Condition.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "closed"
        },
        "definition": "A reference to a code defined by a terminology system. In this profile, ICD10 and ICD10 Prim codes can be handled.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.code.coding:Icd10",
        "path": "Condition.code.coding",
        "sliceName": "Icd10",
        "max": "1"
      },
      {
        "id": "Condition.code.coding:Icd10.system",
        "path": "Condition.code.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/sid/icd-10"
      },
      {
        "id": "Condition.code.coding:Icd10.code",
        "path": "Condition.code.coding.code",
        "min": 1
      },
      {
        "id": "Condition.code.coding:ksh97-p",
        "path": "Condition.code.coding",
        "sliceName": "ksh97-p",
        "max": "1"
      },
      {
        "id": "Condition.code.coding:ksh97-p.system",
        "path": "Condition.code.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.116.1.3.1"
      },
      {
        "id": "Condition.code.coding:ksh97-p.code",
        "path": "Condition.code.coding.code",
        "min": 1
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "max": "0"
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "definition": "Indicates the patient who the condition record is associated with.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Condition.encounter",
        "path": "Condition.encounter",
        "comment": "The contact on which the condition is recorded."
      },
      {
        "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",
        "comment": "The date when the condition is recorded."
      },
      {
        "id": "Condition.recorder",
        "path": "Condition.recorder",
        "definition": "Healthcare professional who recorded the condition and takes responsibility for its content.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.cambio.se/StructureDefinition/PractitionerRoleLiteSe/v1"
            ]
          }
        ]
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "max": "0"
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "max": "0"
      },
      {
        "id": "Condition.evidence",
        "path": "Condition.evidence",
        "max": "0"
      },
      {
        "id": "Condition.note",
        "path": "Condition.note",
        "max": "0"
      }
    ]
  }
}