{
  "resourceType": "StructureDefinition",
  "id": "biobankcy-sd-healthproblem",
  "url": "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-healthproblem",
  "name": "CYBIOBANKSDHealthProblem",
  "title": "Profile: Health Problem (biobank.cy)",
  "status": "draft",
  "publisher": "biobank.cy",
  "contact": [
    {
      "name": "Molecular Medicine Research Center (MMRC)",
      "telecom": [
        {
          "system": "email",
          "value": "biobank@ucy.ac.cy",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Reprsents a health problem of a donor (research subject) of the biobank. The health problem can be self-reported by the patient or reported by a medical doctor or nurse.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "comment": "Not to be used for biobank.cy"
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "comment": "Under examination if it is going to be used.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Condition.clinicalStatus.coding.system",
        "path": "Condition.clinicalStatus.coding.system",
        "min": 1
      },
      {
        "id": "Condition.clinicalStatus.coding.code",
        "path": "Condition.clinicalStatus.coding.code",
        "min": 1
      },
      {
        "id": "Condition.clinicalStatus.coding.display",
        "path": "Condition.clinicalStatus.coding.display",
        "min": 1
      },
      {
        "id": "Condition.verificationStatus",
        "path": "Condition.verificationStatus",
        "comment": "Not to be used for biobank.cy",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Condition.verificationStatus.coding.system",
        "path": "Condition.verificationStatus.coding.system",
        "min": 1
      },
      {
        "id": "Condition.verificationStatus.coding.code",
        "path": "Condition.verificationStatus.coding.code",
        "min": 1
      },
      {
        "id": "Condition.verificationStatus.coding.display",
        "path": "Condition.verificationStatus.coding.display",
        "min": 1
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/condition-category",
              "code": "problem-list-item"
            }
          ]
        }
      },
      {
        "id": "Condition.category.coding.system",
        "path": "Condition.category.coding.system",
        "min": 1
      },
      {
        "id": "Condition.category.coding.code",
        "path": "Condition.category.coding.code",
        "min": 1
      },
      {
        "id": "Condition.category.coding.display",
        "path": "Condition.category.coding.display",
        "min": 1
      },
      {
        "id": "Condition.severity",
        "path": "Condition.severity",
        "comment": "Not to be used for biobank.cy"
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.code.coding",
        "path": "Condition.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Condition.code.coding.system",
        "path": "Condition.code.coding.system",
        "min": 1
      },
      {
        "id": "Condition.code.coding.code",
        "path": "Condition.code.coding.code",
        "min": 1
      },
      {
        "id": "Condition.code.coding.display",
        "path": "Condition.code.coding.display",
        "min": 1
      },
      {
        "id": "Condition.code.coding:icd10Code",
        "path": "Condition.code.coding",
        "sliceName": "icd10Code",
        "comment": "Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.\r\n\r\nCyprusEHR: To address the requirement for eHDSI MVC terminology for problems.",
        "patternCoding": {
          "system": "http://hl7.org/fhir/sid/icd-10"
        },
        "binding": {
          "strength": "required",
          "valueSet": "http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-ehdsiillnessanddisorder"
        }
      },
      {
        "id": "Condition.code.coding:icd10Code.system",
        "path": "Condition.code.coding.system",
        "min": 1
      },
      {
        "id": "Condition.code.coding:icd10Code.code",
        "path": "Condition.code.coding.code",
        "min": 1
      },
      {
        "id": "Condition.code.coding:icd10Code.display",
        "path": "Condition.code.coding.display",
        "min": 1
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "comment": "Not to be used for biobank.cy"
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-donor",
              "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-citizen"
            ]
          }
        ]
      },
      {
        "id": "Condition.subject.reference",
        "path": "Condition.subject.reference",
        "mustSupport": true
      },
      {
        "id": "Condition.subject.identifier.type",
        "path": "Condition.subject.identifier.type",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Condition.subject.identifier.type.coding.system",
        "path": "Condition.subject.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "Condition.subject.identifier.type.coding.code",
        "path": "Condition.subject.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "Condition.subject.identifier.type.coding.display",
        "path": "Condition.subject.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "Condition.encounter",
        "path": "Condition.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Encounter",
              "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-visit"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.encounter.reference",
        "path": "Condition.encounter.reference",
        "mustSupport": true
      },
      {
        "id": "Condition.encounter.identifier.type",
        "path": "Condition.encounter.identifier.type",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Condition.encounter.identifier.type.coding.system",
        "path": "Condition.encounter.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "Condition.encounter.identifier.type.coding.code",
        "path": "Condition.encounter.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "Condition.encounter.identifier.type.coding.display",
        "path": "Condition.encounter.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "Condition.onset[x]",
        "path": "Condition.onset[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "comment": "Not to be used for biobank.cy",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Condition.recorder",
        "path": "Condition.recorder",
        "comment": "For biobank.cy this shall be the nurse or any other practitioner who recorded this information."
      },
      {
        "id": "Condition.recorder.identifier.type",
        "path": "Condition.recorder.identifier.type",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Condition.recorder.identifier.type.coding.system",
        "path": "Condition.recorder.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "Condition.recorder.identifier.type.coding.code",
        "path": "Condition.recorder.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "Condition.recorder.identifier.type.coding.display",
        "path": "Condition.recorder.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "comment": "Not to be used for biobank.cy"
      },
      {
        "id": "Condition.asserter.identifier.type",
        "path": "Condition.asserter.identifier.type",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Condition.asserter.identifier.type.coding.system",
        "path": "Condition.asserter.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "Condition.asserter.identifier.type.coding.code",
        "path": "Condition.asserter.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "Condition.asserter.identifier.type.coding.display",
        "path": "Condition.asserter.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "comment": "Not to be used for biobank.cy"
      },
      {
        "id": "Condition.stage.summary",
        "path": "Condition.stage.summary",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Condition.stage.summary.coding.system",
        "path": "Condition.stage.summary.coding.system",
        "min": 1
      },
      {
        "id": "Condition.stage.summary.coding.code",
        "path": "Condition.stage.summary.coding.code",
        "min": 1
      },
      {
        "id": "Condition.stage.summary.coding.display",
        "path": "Condition.stage.summary.coding.display",
        "min": 1
      },
      {
        "id": "Condition.stage.assessment.identifier.type",
        "path": "Condition.stage.assessment.identifier.type",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Condition.stage.assessment.identifier.type.coding.system",
        "path": "Condition.stage.assessment.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "Condition.stage.assessment.identifier.type.coding.code",
        "path": "Condition.stage.assessment.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "Condition.stage.assessment.identifier.type.coding.display",
        "path": "Condition.stage.assessment.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "Condition.stage.type",
        "path": "Condition.stage.type",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Condition.stage.type.coding.system",
        "path": "Condition.stage.type.coding.system",
        "min": 1
      },
      {
        "id": "Condition.stage.type.coding.code",
        "path": "Condition.stage.type.coding.code",
        "min": 1
      },
      {
        "id": "Condition.stage.type.coding.display",
        "path": "Condition.stage.type.coding.display",
        "min": 1
      },
      {
        "id": "Condition.evidence",
        "path": "Condition.evidence",
        "comment": "Not to be used for biobank.cy"
      },
      {
        "id": "Condition.evidence.code",
        "path": "Condition.evidence.code",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Condition.evidence.code.coding.system",
        "path": "Condition.evidence.code.coding.system",
        "min": 1
      },
      {
        "id": "Condition.evidence.code.coding.code",
        "path": "Condition.evidence.code.coding.code",
        "min": 1
      },
      {
        "id": "Condition.evidence.code.coding.display",
        "path": "Condition.evidence.code.coding.display",
        "min": 1
      },
      {
        "id": "Condition.evidence.detail.identifier.type",
        "path": "Condition.evidence.detail.identifier.type",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Condition.evidence.detail.identifier.type.coding.system",
        "path": "Condition.evidence.detail.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "Condition.evidence.detail.identifier.type.coding.code",
        "path": "Condition.evidence.detail.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "Condition.evidence.detail.identifier.type.coding.display",
        "path": "Condition.evidence.detail.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "Condition.evidence.detail.identifier.assigner.identifier.type",
        "path": "Condition.evidence.detail.identifier.assigner.identifier.type",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Condition.note",
        "path": "Condition.note",
        "comment": "Not to be used for biobank.cy"
      }
    ]
  }
}