{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-02-27T14:32:05.203+00:00"
  },
  "url": "http://hl7.org/fhir/ips/StructureDefinition/condition-uv-ips",
  "version": "1.0",
  "name": "Condition-uv-ips",
  "title": "Condition",
  "status": "draft",
  "date": "2018-03-20",
  "publisher": "HL7 International",
  "contact": [
    {
      "name": "François Macary - Phast"
    },
    {
      "name": "Christof Gessner - Gematik"
    }
  ],
  "description": "This profile represents the constraints applied to the Condition resource by the International Patient Summary (IPS) FHIR Implementation Guide. A record of problem is represented in the patient summary as an instance of the Condition resource constrained by this profile.",
  "purpose": "Representation of a problem in the international patient summary",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition",
        "path": "Condition",
        "short": "Documentation of a health problem of the patient"
      },
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "max": "1"
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "min": 1,
        "defaultValueCode": "active",
        "mustSupport": true
      },
      {
        "id": "Condition.verificationStatus",
        "path": "Condition.verificationStatus",
        "comment": "This element is labeled as a modifier because the status contains the code refuted and entered-in-error that mark the Condition as not currently valid.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "definition": "A category assigned to the condition. In this profile, a health problem of the patient, therefore a 'problem-list-item'.",
        "comment": "In this profile, Condition represents a health problem of the patient. Therefore the code is fixed to the value problem-list-item.",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConditionCategory"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ips/ValueSet/problem-type-uv-ips"
          }
        }
      },
      {
        "id": "Condition.severity",
        "path": "Condition.severity",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConditionSeverity"
            }
          ],
          "strength": "preferred",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ips/ValueSet/condition-severity-uv-ips"
          }
        }
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "rules": "closed"
        },
        "definition": "Identification of the condition, problem or diagnosis or recording of \"problem absent\" or of \"problems unknown\".",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Condition.code:absentOrUnknownProblem",
        "path": "Condition.code",
        "sliceName": "absentOrUnknownProblem",
        "short": "Code for absent problem or for unknown problem",
        "definition": "Code representing the statement \"absent problem\" or the statement \"problems unknown\"",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConditionKind"
            }
          ],
          "strength": "required",
          "description": "Absent problem or unknown problem",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir//ips/ValueSet/absent-or-unknown-problems-uv-ips"
          }
        }
      },
      {
        "id": "Condition.code:absentOrUnknownProblem.coding",
        "path": "Condition.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.code:absentOrUnknownProblem.coding.system",
        "path": "Condition.code.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/ips/CodeSystem/absent-unknown"
      },
      {
        "id": "Condition.code:absentOrUnknownProblem.coding.code",
        "path": "Condition.code.coding.code",
        "min": 1
      },
      {
        "id": "Condition.code:@default",
        "path": "Condition.code",
        "sliceName": "@default",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConditionKind"
            }
          ],
          "strength": "preferred",
          "description": "Identification of the problem",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ips/ValueSet/core-problem-list-disorders-uv-ips"
          }
        }
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "BodySite"
            }
          ],
          "strength": "preferred"
        }
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.subject.identifier",
        "path": "Condition.subject.identifier",
        "max": "0"
      },
      {
        "id": "Condition.onsetDateTime:onsetDateTime",
        "path": "Condition.onsetDateTime",
        "sliceName": "onsetDateTime",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "mustSupport": true
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "definition": "Individual who is making the condition statement.\r\nInformation source."
      },
      {
        "id": "Condition.asserter.identifier",
        "path": "Condition.asserter.identifier",
        "max": "0"
      }
    ]
  }
}