{
  "resourceType": "StructureDefinition",
  "id": "condition-eu-core",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 2
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    }
  ],
  "url": "http://hl7.eu/fhir/base/StructureDefinition/condition-eu-core",
  "name": "ConditionEuCore",
  "title": "Condition (EU core)",
  "status": "active",
  "description": "This profile introduces essential constraints and extensions for the Condition resource that apply across multiple use cases.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition.language",
        "path": "Condition.language",
        "short": "Language of the condition content"
      },
      {
        "id": "Condition.text",
        "path": "Condition.text",
        "definition": "Human readable specification of the problem. This is a general notes/comments entry for description of the problem, its diagnosis and prognosis."
      },
      {
        "id": "Condition.extension",
        "path": "Condition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Condition.extension:assertedDate",
        "path": "Condition.extension",
        "sliceName": "assertedDate",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/condition-assertedDate"
            ]
          }
        ]
      },
      {
        "id": "Condition.extension:assertedDate.value[x]",
        "path": "Condition.extension.value[x]",
        "short": "Date and time of the diagnosis assertion"
      },
      {
        "id": "Condition.extension:relatedArtifact",
        "path": "Condition.extension",
        "sliceName": "relatedArtifact",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/artifact-relatedArtifact"
            ]
          }
        ]
      },
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "definition": "Globally unique identifier of this problem which remain constant as the resource is updated and propagates from server to server."
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "definition": "The problem status describes the condition of the problem:\n\r\n1.\tActive problems are problems of which the patient experiences symptoms or for which evidence exists.\n\r\n2.\tIf condition is abated, then clinicalStatus must be either inactive, resolved, or remission. \n\r\n3.\tProblems with the status 'Inactive' refer to problems that don't affect the patient anymore or that of which there is no evidence of existence anymore.",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/condition-clinical"
        }
      },
      {
        "id": "Condition.verificationStatus",
        "path": "Condition.verificationStatus",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/condition-ver-status"
        }
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "short": "Category"
      },
      {
        "id": "Condition.severity",
        "path": "Condition.severity",
        "binding": {
          "strength": "preferred",
          "valueSet": "http://hl7.org/fhir/ValueSet/condition-severity"
        }
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "definition": "The problem code specifies the problem. Depending on the setting, different code systems can be used. The ProblemCodelist provides an overview of the possible code systems.",
        "min": 1,
        "binding": {
          "strength": "preferred",
          "valueSet": "http://hl7.org/fhir/uv/ips/ValueSet/problems-uv-ips",
          "description": "Valueset to describe the actual problem experienced by the patient",
          "extension": [
            {
              "extension": [
                {
                  "url": "purpose",
                  "valueCode": "preferred"
                },
                {
                  "url": "valueSet",
                  "valueCanonical": "http://terminology.ehdsi.eu/ValueSet/eHDSIIllnessandDisorder"
                },
                {
                  "url": "documentation",
                  "valueMarkdown": "Additional conformance binding to a problem code when ICD-10 or Orphanet codes are used."
                },
                {
                  "url": "shortDoco",
                  "valueString": "For cross border data exchange"
                }
              ],
              "url": "http://hl7.org/fhir/tools/StructureDefinition/additional-binding"
            }
          ]
        }
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "constraint": [
          {
            "key": "eu-bodysite-1",
            "severity": "error",
            "human": "Either a body site code or a reference to a BodyStructure resource SHALL be used, but not both.",
            "expression": "(coding.empty() and text.empty()) or extension('http://hl7.org/fhir/StructureDefinition/bodySite').empty()",
            "source": "http://hl7.eu/fhir/base/StructureDefinition/condition-eu-core"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
        }
      },
      {
        "id": "Condition.bodySite.extension:bodySite",
        "path": "Condition.bodySite.extension",
        "sliceName": "bodySite",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/bodySite"
            ]
          }
        ]
      },
      {
        "id": "Condition.bodySite.extension:bodySite.value[x]",
        "path": "Condition.bodySite.extension.value[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.eu/fhir/base/StructureDefinition/bodyStructure-eu-core"
            ]
          }
        ]
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core"
            ]
          }
        ]
      },
      {
        "id": "Condition.onset[x]",
        "path": "Condition.onset[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Condition.onset[x]:onsetDateTime",
        "path": "Condition.onset[x]",
        "sliceName": "onsetDateTime",
        "definition": "Onset of the symptom, complaint, functional limitation, complication or date of diagnosis. A ‘vague’ date, such as only the year or the month and the year, is permitted.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Condition.abatement[x]:abatementDateTime",
        "path": "Condition.abatement[x]",
        "sliceName": "abatementDateTime",
        "definition": "The date or estimated date that the condition resolved or went into remission. A ‘vague’ date, such as only the year or the month and the year, is permitted",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Condition.recordedDate",
        "path": "Condition.recordedDate",
        "short": "Date when the condition record was created"
      },
      {
        "id": "Condition.recorder",
        "path": "Condition.recorder",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu",
              "http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu",
              "http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "short": "Who asserted the condition"
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "short": "Stage/grade"
      },
      {
        "id": "Condition.stage.summary",
        "path": "Condition.stage.summary",
        "short": "Most recent Stage Group"
      },
      {
        "id": "Condition.stage.assessment",
        "path": "Condition.stage.assessment",
        "definition": "Reference to the evidence on which the staging assessment is based."
      },
      {
        "id": "Condition.stage.type",
        "path": "Condition.stage.type",
        "short": "Staging system used."
      },
      {
        "id": "Condition.note",
        "path": "Condition.note",
        "definition": "Comment by the one who determined or updated the Problem."
      }
    ]
  }
}
