{
  "resourceType": "StructureDefinition",
  "id": "profile-sn-condition",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-sn-condition",
  "version": "1.0.0",
  "name": "Condition",
  "title": "Condition Profile",
  "status": "active",
  "date": "2025-11-22",
  "publisher": "Synapxe",
  "description": "Profile for Condition resource used in diagnosis with mandatory elements.",
  "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": "Used to record detailed information about conditions, problems or diagnoses recognized by a clinician."
      },
      {
        "id": "Condition.modifierExtension",
        "path": "Condition.modifierExtension",
        "max": "0"
      },
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "definition": "A record identifier associated with this condition.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier"
            ]
          }
        ]
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "definition": "Clinical status of the condition.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "definition": "Category assigned to the condition.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "Condition.severity",
        "path": "Condition.severity",
        "definition": "Subjective assessment of the severity of the condition."
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "definition": "Identification of the condition, problem or diagnosis.",
        "min": 1
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "definition": "Body site where the condition manifests.",
        "max": "1"
      },
      {
        "id": "Condition.bodySite.extension:subSite",
        "path": "Condition.bodySite.extension",
        "sliceName": "subSite",
        "definition": "Sub-location where the condition manifests.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/ext-subSite"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-patient"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-patient"
            ]
          }
        ]
      },
      {
        "id": "Condition.subject.display",
        "path": "Condition.subject.display",
        "max": "0"
      },
      {
        "id": "Condition.encounter.id",
        "path": "Condition.encounter.id",
        "max": "0"
      },
      {
        "id": "Condition.encounter.extension",
        "path": "Condition.encounter.extension",
        "max": "0"
      },
      {
        "id": "Condition.encounter.reference",
        "path": "Condition.encounter.reference",
        "max": "0"
      },
      {
        "id": "Condition.encounter.type",
        "path": "Condition.encounter.type",
        "min": 1,
        "patternUri": "Encounter"
      },
      {
        "id": "Condition.encounter.identifier",
        "path": "Condition.encounter.identifier",
        "definition": "Encounter identifier.",
        "min": 1,
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier"
            ]
          }
        ]
      },
      {
        "id": "Condition.encounter.display",
        "path": "Condition.encounter.display",
        "max": "0"
      },
      {
        "id": "Condition.onset[x]",
        "path": "Condition.onset[x]",
        "definition": "Carries these NEHR XML elements of putComposition:\n\n- `composition/section/content/condition/onset/date`: Estimated or actual onset date.\n- `composition/section/content/condition/onset/age/low/value`: Lower age value.\n- `composition/section/content/condition/onset/age/low/units`: Unit of measure for lower age.\n- `composition/section/content/condition/onset/age/high/value`: Upper age value.\n- `composition/section/content/condition/onset/age/high/units`: Unit of measure for upper age.",
        "type": [
          {
            "code": "Range"
          }
        ]
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "definition": "Carries these NEHR XML elements of putComposition:\n\n- `composition/section/content/condition/abatement/date`: Estimated or actual abatement date.\n- `composition/section/content/condition/abatement/age/low/value`: Lower age value.\n- `composition/section/content/condition/abatement/age/low/units`: Unit of measure for lower age.\n- `composition/section/content/condition/abatement/age/high/value`: Upper age value.\n- `composition/section/content/condition/abatement/age/high/units`: Unit of measure for upper age.",
        "type": [
          {
            "code": "Range"
          }
        ]
      },
      {
        "id": "Condition.recordedDate",
        "path": "Condition.recordedDate",
        "definition": "Estimated or actual date the condition was first detected or suspected."
      },
      {
        "id": "Condition.participant.actor",
        "path": "Condition.participant.actor",
        "definition": "Practitioner asserting the condition."
      },
      {
        "id": "Condition.participant.actor.identifier",
        "path": "Condition.participant.actor.identifier",
        "definition": "Registration identifier of the practitioner."
      },
      {
        "id": "Condition.participant.actor.display",
        "path": "Condition.participant.actor.display",
        "definition": "Name of the practitioner."
      },
      {
        "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": "Simple summary of the stage such as Stage 3.",
        "min": 1
      },
      {
        "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",
        "max": "1",
        "type": [
          {
            "code": "Annotation",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-annotation"
            ]
          }
        ]
      },
      {
        "id": "Condition.note.text",
        "path": "Condition.note.text",
        "definition": "Additional information about the condition, diagnosis or prognosis."
      }
    ]
  }
}