{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2023-09-19T08:10:17.2672309+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pc"
    }
  ],
  "url": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProblemHeader-Condition-1",
  "version": "1.8.0",
  "name": "CareConnect-GPC-ProblemHeader-Condition-1",
  "status": "draft",
  "date": "2024-01-22T11:39:06.3872207+00:00",
  "publisher": "HL7 UK",
  "contact": [
    {
      "name": "INTEROPen",
      "telecom": [
        {
          "system": "email",
          "value": "admin@interopen.org",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This Condition resource records detailed information about conditions or diagnoses recognised by a clinician.",
  "purpose": "CURATED BY INTEROPen see: http://www.interopen.org/careconnect-curation-methodology/",
  "copyright": "Copyright © 2020 HL7 UK\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\r\n\r\nhttp://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\r\n\r\nHL7® FHIR® standard Copyright © 2011+ HL7\r\n\r\nThe HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at\r\n\r\nhttps://www.hl7.org/fhir/license.html",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition.meta",
        "path": "Condition.meta"
      },
      {
        "id": "Condition.meta.profile",
        "path": "Condition.meta.profile",
        "min": 1
      },
      {
        "id": "Condition.extension:actualProblem",
        "path": "Condition.extension",
        "sliceName": "actualProblem",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-ActualProblem-1"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.extension:relatedProblemHeader",
        "path": "Condition.extension",
        "sliceName": "relatedProblemHeader",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-RelatedProblemHeader-1"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.extension:relatedProblemHeader.extension",
        "path": "Condition.extension.extension",
        "min": 1
      },
      {
        "id": "Condition.extension:relatedProblemHeader.value[x]",
        "path": "Condition.extension.value[x]",
        "type": [
          {
            "code": "base64Binary"
          },
          {
            "code": "boolean"
          },
          {
            "code": "code"
          },
          {
            "code": "date"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "decimal"
          },
          {
            "code": "id"
          },
          {
            "code": "instant"
          },
          {
            "code": "integer"
          },
          {
            "code": "markdown"
          },
          {
            "code": "oid"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "time"
          },
          {
            "code": "unsignedInt"
          },
          {
            "code": "uri"
          },
          {
            "code": "Address"
          },
          {
            "code": "Age"
          },
          {
            "code": "Annotation"
          },
          {
            "code": "Attachment"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Coding"
          },
          {
            "code": "ContactPoint"
          },
          {
            "code": "Count"
          },
          {
            "code": "Distance"
          },
          {
            "code": "Duration"
          },
          {
            "code": "HumanName"
          },
          {
            "code": "Identifier"
          },
          {
            "code": "Money"
          },
          {
            "code": "Period"
          },
          {
            "code": "Quantity"
          },
          {
            "code": "Range"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "Reference"
          },
          {
            "code": "SampledData"
          },
          {
            "code": "Signature"
          },
          {
            "code": "Timing"
          },
          {
            "code": "Meta"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Immunization-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Specimen-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-AllergyIntolerance-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProcedureRequest-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1"
          }
        ]
      },
      {
        "id": "Condition.extension:problemSignificance",
        "path": "Condition.extension",
        "sliceName": "problemSignificance",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ProblemSignificance-1"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.extension:relatedClinicalContent",
        "path": "Condition.extension",
        "sliceName": "relatedClinicalContent",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-RelatedClinicalContent-1"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.extension:relatedClinicalContent.value[x]",
        "path": "Condition.extension.value[x]",
        "type": [
          {
            "code": "base64Binary"
          },
          {
            "code": "boolean"
          },
          {
            "code": "code"
          },
          {
            "code": "date"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "decimal"
          },
          {
            "code": "id"
          },
          {
            "code": "instant"
          },
          {
            "code": "integer"
          },
          {
            "code": "markdown"
          },
          {
            "code": "oid"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "time"
          },
          {
            "code": "unsignedInt"
          },
          {
            "code": "uri"
          },
          {
            "code": "Address"
          },
          {
            "code": "Age"
          },
          {
            "code": "Annotation"
          },
          {
            "code": "Attachment"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Coding"
          },
          {
            "code": "ContactPoint"
          },
          {
            "code": "Count"
          },
          {
            "code": "Distance"
          },
          {
            "code": "Duration"
          },
          {
            "code": "HumanName"
          },
          {
            "code": "Identifier"
          },
          {
            "code": "Money"
          },
          {
            "code": "Period"
          },
          {
            "code": "Quantity"
          },
          {
            "code": "Range"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "Reference"
          },
          {
            "code": "SampledData"
          },
          {
            "code": "Signature"
          },
          {
            "code": "Timing"
          },
          {
            "code": "Meta"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Immunization-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Specimen-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-AllergyIntolerance-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProcedureRequest-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1"
          }
        ]
      },
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "min": 1
      },
      {
        "id": "Condition.identifier.system",
        "path": "Condition.identifier.system",
        "min": 1
      },
      {
        "id": "Condition.identifier.value",
        "path": "Condition.identifier.value",
        "min": 1
      },
      {
        "id": "Condition.identifier.assigner",
        "path": "Condition.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"
          }
        ]
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "short": "active | inactive",
        "min": 1
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "short": "problem-list-item | encounter-diagnosis | presenting-complaint",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-ConditionCategory-1"
          }
        }
      },
      {
        "id": "Condition.category.coding.system",
        "path": "Condition.category.coding.system",
        "min": 1,
        "fixedUri": "https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-ConditionCategory-1"
      },
      {
        "id": "Condition.category.coding.code",
        "path": "Condition.category.coding.code",
        "min": 1,
        "fixedCode": "problem-list-item"
      },
      {
        "id": "Condition.category.coding.display",
        "path": "Condition.category.coding.display",
        "min": 1,
        "fixedString": "Problem List Item"
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "min": 1
      },
      {
        "id": "Condition.code.coding",
        "path": "Condition.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Condition.code.coding:snomedCT",
        "path": "Condition.code.coding",
        "sliceName": "snomedCT",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "A code from the SNOMED Clinical Terminology UK",
          "valueSetReference": {
            "reference": "https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-ConditionCode-1"
          }
        }
      },
      {
        "id": "Condition.code.coding:snomedCT.extension:snomedCTDescriptionID",
        "path": "Condition.code.coding.extension",
        "sliceName": "snomedCTDescriptionID",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"
          }
        ]
      },
      {
        "id": "Condition.code.coding:snomedCT.system",
        "path": "Condition.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Condition.code.coding:snomedCT.version",
        "path": "Condition.code.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.code.coding:snomedCT.code",
        "path": "Condition.code.coding.code",
        "min": 1
      },
      {
        "id": "Condition.code.coding:snomedCT.display",
        "path": "Condition.code.coding.display",
        "min": 1
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"
          }
        ]
      },
      {
        "id": "Condition.context",
        "path": "Condition.context",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Encounter-1"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.onset[x]",
        "path": "Condition.onset[x]",
        "mustSupport": true
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "mustSupport": true
      },
      {
        "id": "Condition.assertedDate",
        "path": "Condition.assertedDate",
        "min": 1
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
          }
        ]
      },
      {
        "id": "Condition.note",
        "path": "Condition.note",
        "mustSupport": true
      },
      {
        "id": "Condition.note.author[x]",
        "path": "Condition.note.author[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "string"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          }
        ]
      }
    ]
  }
}