{
  "resourceType": "StructureDefinition",
  "id": "profile-problem",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-problem",
  "name": "Problem",
  "title": "Problem Profile",
  "status": "active",
  "publisher": "Synapxe",
  "description": "Patient health problems and conditions in a structured format.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition",
        "path": "Condition",
        "definition": "Information of each diagnosis or problem within the problem list."
      },
      {
        "id": "Condition.meta.lastUpdated",
        "path": "Condition.meta.lastUpdated",
        "definition": "Date and time the diagnosis or problem was updated."
      },
      {
        "id": "Condition.meta.source",
        "path": "Condition.meta.source",
        "definition": "Name of the healthcare institution or EMR system where the diagnosis or problem originated."
      },
      {
        "id": "Condition.extension:healthDomain",
        "path": "Condition.extension",
        "sliceName": "healthDomain",
        "definition": "Health domain to which the problem belongs.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/ext-healthDomain"
            ]
          }
        ]
      },
      {
        "id": "Condition.extension:serviceSpeciality",
        "path": "Condition.extension",
        "sliceName": "serviceSpeciality",
        "definition": "Clinical specialty treating the diagnosis or problem at the point of review.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/ext-serviceSpeciality"
            ]
          }
        ]
      },
      {
        "id": "Condition.extension:conditionType",
        "path": "Condition.extension",
        "sliceName": "conditionType",
        "definition": "Indicates whether the diagnosis is acute or chronic.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/ext-conditionType"
            ]
          }
        ]
      },
      {
        "id": "Condition.extension:lastUpdatedBy",
        "path": "Condition.extension",
        "sliceName": "lastUpdatedBy",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/ext-lastUpdatedBy"
            ]
          }
        ]
      },
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1,
        "max": "2"
      },
      {
        "id": "Condition.identifier:record-id",
        "path": "Condition.identifier",
        "sliceName": "record-id",
        "definition": "A unique identifier for this problem or diagnosis within the problem list.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-record-id"
            ]
          }
        ]
      },
      {
        "id": "Condition.identifier:sequence-no",
        "path": "Condition.identifier",
        "sliceName": "sequence-no",
        "definition": "Number or text identifying the display sequence of this problem.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-sequence-no"
            ]
          }
        ]
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "definition": "Status of the diagnosis or problem, such as Active, Inactive, Resolved, Provisional or Cancelled.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "Condition.verificationStatus",
        "path": "Condition.verificationStatus",
        "definition": "Indicates whether the diagnosis is provisional or final.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "short": "medical | nursing",
        "definition": "Type of problem categorising the item as a problem or episodic diagnosis.",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "A category assigned to the health domain.",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/healthdomain-types"
        }
      },
      {
        "id": "Condition.category.id",
        "path": "Condition.category.id",
        "max": "0"
      },
      {
        "id": "Condition.category.extension",
        "path": "Condition.category.extension",
        "max": "0"
      },
      {
        "id": "Condition.category.coding",
        "path": "Condition.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.category.coding.id",
        "path": "Condition.category.coding.id",
        "max": "0"
      },
      {
        "id": "Condition.category.coding.extension",
        "path": "Condition.category.coding.extension",
        "max": "0"
      },
      {
        "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.category.coding.userSelected",
        "path": "Condition.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.category.text",
        "path": "Condition.category.text",
        "max": "0"
      },
      {
        "id": "Condition.severity",
        "path": "Condition.severity",
        "definition": "Severity of the patient's problem or diagnosis.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "Condition.severity.extension",
        "path": "Condition.severity.extension",
        "max": "0"
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "definition": "Name of the diagnosis or problem.",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "Condition.bodySite.id",
        "path": "Condition.bodySite.id",
        "max": "0"
      },
      {
        "id": "Condition.bodySite.extension",
        "path": "Condition.bodySite.extension",
        "max": "0"
      },
      {
        "id": "Condition.bodySite.coding",
        "path": "Condition.bodySite.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Condition.bodySite.coding.id",
        "path": "Condition.bodySite.coding.id",
        "max": "0"
      },
      {
        "id": "Condition.bodySite.coding.extension",
        "path": "Condition.bodySite.coding.extension",
        "max": "0"
      },
      {
        "id": "Condition.bodySite.coding.system",
        "path": "Condition.bodySite.coding.system",
        "min": 1
      },
      {
        "id": "Condition.bodySite.coding.version",
        "path": "Condition.bodySite.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.bodySite.coding.code",
        "path": "Condition.bodySite.coding.code",
        "min": 1
      },
      {
        "id": "Condition.bodySite.coding.display",
        "path": "Condition.bodySite.coding.display",
        "min": 1
      },
      {
        "id": "Condition.bodySite.coding.userSelected",
        "path": "Condition.bodySite.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.bodySite.text",
        "path": "Condition.bodySite.text",
        "max": "0"
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-patient"
            ]
          }
        ]
      },
      {
        "id": "Condition.encounter",
        "path": "Condition.encounter",
        "max": "0"
      },
      {
        "id": "Condition.onset[x]",
        "path": "Condition.onset[x]",
        "definition": "Carries these NEHR XML elements of putPatientProblemList:\n\n- `problemList/problem/onsetAge`: Age at first appearance of signs or symptoms.\n- `problemList/problem/onsetAgeUOM`: Unit of measure for onset age.\n- `problemList/problem/onsetDate`: Date of first appearance of signs or symptoms.\n- `problemList/problem/occurenceDate`: Date indicating occurrence of the diagnosis or problem.",
        "type": [
          {
            "code": "Age"
          }
        ]
      },
      {
        "id": "Condition.onset[x].extension:dateTime",
        "path": "Condition.onset[x].extension",
        "sliceName": "dateTime",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/ext-dateTime"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "definition": "Carries these NEHR XML elements of putPatientProblemList:\n\n- `problemList/problem/abatementAge`: Age at last appearance of signs or symptoms.\n- `problemList/problem/abatementAgeUOM`: Unit of measure for abatement age.\n- `problemList/problem/abatementDate`: Date of the last occurrence of the diagnosis or problem.",
        "type": [
          {
            "code": "Age"
          }
        ]
      },
      {
        "id": "Condition.abatement[x].extension:dateTime",
        "path": "Condition.abatement[x].extension",
        "sliceName": "dateTime",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/ext-dateTime"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Condition.recordedDate",
        "path": "Condition.recordedDate",
        "definition": "Date and time the diagnosis or problem was first recorded.",
        "min": 1
      },
      {
        "id": "Condition.participant",
        "path": "Condition.participant",
        "min": 1
      },
      {
        "id": "Condition.participant.id",
        "path": "Condition.participant.id",
        "max": "0"
      },
      {
        "id": "Condition.participant.extension",
        "path": "Condition.participant.extension",
        "max": "0"
      },
      {
        "id": "Condition.participant.modifierExtension",
        "path": "Condition.participant.modifierExtension",
        "max": "0"
      },
      {
        "id": "Condition.participant.function",
        "path": "Condition.participant.function",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/problem-participant-function"
        }
      },
      {
        "id": "Condition.participant.actor",
        "path": "Condition.participant.actor",
        "short": "Who recorded the condition",
        "definition": "Who recorded the condition",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner",
              "https://fhir.synapxe.sg/StructureDefinition/profile-organization",
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitionerrole"
            ]
          }
        ]
      },
      {
        "id": "Condition.participant.actor.identifier",
        "path": "Condition.participant.actor.identifier",
        "definition": "Healthcare institution where the diagnosis or problem is reported."
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "max": "1"
      },
      {
        "id": "Condition.stage.id",
        "path": "Condition.stage.id",
        "max": "0"
      },
      {
        "id": "Condition.stage.extension",
        "path": "Condition.stage.extension",
        "max": "0"
      },
      {
        "id": "Condition.stage.modifierExtension",
        "path": "Condition.stage.modifierExtension",
        "max": "0"
      },
      {
        "id": "Condition.stage.summary",
        "path": "Condition.stage.summary",
        "definition": "Clinical grade or stage of the diagnosis or problem.",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "Condition.stage.summary.extension",
        "path": "Condition.stage.summary.extension",
        "max": "0"
      },
      {
        "id": "Condition.stage.assessment",
        "path": "Condition.stage.assessment",
        "max": "0"
      },
      {
        "id": "Condition.stage.type",
        "path": "Condition.stage.type",
        "max": "0"
      },
      {
        "id": "Condition.evidence",
        "path": "Condition.evidence",
        "max": "0"
      },
      {
        "id": "Condition.note",
        "path": "Condition.note",
        "type": [
          {
            "code": "Annotation",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-annotation"
            ]
          }
        ]
      },
      {
        "id": "Condition.note.author[x]",
        "path": "Condition.note.author[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner"
            ]
          }
        ]
      },
      {
        "id": "Condition.note.text",
        "path": "Condition.note.text",
        "definition": "Clinical notes entered by the clinician."
      }
    ]
  }
}