SGHI FHIR Profile Implementation Guide
0.1.0 - ci-build

SGHI FHIR Profile Implementation Guide, published by Kathurima Kimathi. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/savannahghi/sil_fhir_profile_ig/ and changes regularly. See the Directory of published versions

## Resource Profile: SGHI Condition

Official URL: https://fhir.slade360.co.ke/fhir/StructureDefinition/condition | Version: 0.1.0
Draft as of 2026-04-27 | Computable Name: SGHICondition

A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern.

Usages:

- Refer to this Profile: SGHI Appointment Profile, SGHI Encounter, SGHI MedicationRequest, SGHI Procedure... Show 2 more, SGHI RiskAssessment and SGHI ServiceRequest
- Examples for this Profile: Condition/ExampleSGHICondition

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Condition | C | 0..* | Condition | Detailed information about conditions, problems or diagnoses Constraints: con-2, con-3
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 1..* | Identifier | External Ids for this condition
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type | Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system | Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 1..1 | string | The value that is unique Example General: 123456
assigner | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
clinicalStatus | ?!Σ C | 1..1 | SGHICodeableConcept | active | recurrence | relapse | inactive | remission | resolved | unknown Binding: ConditionClinicalStatusCodes (required): The clinical status of the condition or diagnosis.
verificationStatus | ?!Σ | 1..1 | SGHICodeableConcept | unconfirmed | provisional | differential | confirmed | refuted | entered-in-error Binding: ConditionVerificationStatus (required): The verification status to support or decline the clinical status of the condition or diagnosis.
category | C | 1..* | SGHICodeableConcept | problem-list-item | encounter-diagnosis Binding: ConditionCategoryCodes (preferred): A category assigned to the condition.
severity |  | 1..1 | SGHICodeableConcept | Subjective severity of condition Binding: AdverseEventSeverity (required): Custom severity values intentionally override the HL7 preferred ConditionSeverity ValueSet.
code | Σ | 1..1 | SGHICodeableConcept | Identification of the condition, problem or diagnosis Binding: All ICD-11 codes (required)
bodySite | Σ | 0..* | SGHICodeableConcept | Anatomical location, if relevant Binding: All ICD-11 codes (required)
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Who has the condition?
encounter | Σ | 1..1 | SGHIReference(SGHI Encounter) | The Encounter during which this Condition was created
onset[x] | Σ | 0..1 | dateTime | Estimated or actual date, date-time, or age
abatement[x] | C | 0..1 | dateTime | When in resolution/remission
recordedDate | Σ | 1..1 | dateTime | Date condition was first recorded
participant | Σ | 1..* | BackboneElement | Who or what participated in the activities related to the condition and how they were involved
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
actor | Σ | 1..1 | SGHIReference(SGHI Patient | SGHI Organization) | Who or what participated in the activities related to the condition
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Condition.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
Condition.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
Condition.clinicalStatus | Base | required | Condition Clinical Status Codes | 📍5.0.0 | FHIR Std.
Condition.verificationStatus | Base | required | Condition Verification Status | 📍5.0.0 | FHIR Std.
Condition.category | Base | preferred | Condition Category Codes | 📍5.0.0 | FHIR Std.
Condition.severity | Base | required | AdverseEventSeverity | 📦2.0.0 | THO v7.1
Condition.code | Base | required | All ICD-11 codes | 📦0.1.0 | This IG
Condition.bodySite | Base | required | All ICD-11 codes | 📦0.1.0 | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
con-2 | warning | Condition | If category is problems list item, the clinicalStatus should not be unknown | `category.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-category' and code='problem-list-item').exists() implies clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and code='unknown').exists().not()`
con-3 | error | Condition | If condition is abated, then clinicalStatus must be either inactive, resolved, or remission. | `abatement.exists() implies (clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='inactive' or code='resolved' or code='remission')).exists())`
dom-2 | error | Condition | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Condition | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Condition | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from Condition

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Condition |  | 0..* | Condition | Detailed information about conditions, problems or diagnoses
identifier |  | 1..* | Identifier | External Ids for this condition
use |  | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type |  | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system |  | 1..1 | uri | The namespace for the identifier value
value |  | 1..1 | string | The value that is unique
assigner |  | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
clinicalStatus |  | 1..1 | SGHICodeableConcept | active | recurrence | relapse | inactive | remission | resolved | unknown
verificationStatus |  | 1..1 | SGHICodeableConcept | unconfirmed | provisional | differential | confirmed | refuted | entered-in-error
category |  | 1..* | SGHICodeableConcept | problem-list-item | encounter-diagnosis
severity |  | 1..1 | SGHICodeableConcept | Subjective severity of condition Binding: AdverseEventSeverity (required): Custom severity values intentionally override the HL7 preferred ConditionSeverity ValueSet.
code |  | 1..1 | SGHICodeableConcept | Identification of the condition, problem or diagnosis Binding: All ICD-11 codes (required)
bodySite |  | 0..* | SGHICodeableConcept | Anatomical location, if relevant Binding: All ICD-11 codes (required)
subject |  | 1..1 | SGHIReference(SGHI Patient) | Who has the condition?
encounter |  | 1..1 | SGHIReference(SGHI Encounter) | The Encounter during which this Condition was created
onset[x] |  | 0..1 | dateTime | Estimated or actual date, date-time, or age
abatement[x] |  | 0..1 | dateTime | When in resolution/remission
recordedDate |  | 1..1 | dateTime | Date condition was first recorded
participant |  | 1..* | BackboneElement | Who or what participated in the activities related to the condition and how they were involved
actor |  | 1..1 | SGHIReference(SGHI Patient | SGHI Organization) | Who or what participated in the activities related to the condition
stage |  |  |  |
assessment |  | 0..* | SGHIReference(SGHI DiagnosticReport | SGHI Observation) | Formal record of assessment
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
Condition.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
Condition.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
Condition.severity | Base | required | AdverseEventSeverity | 📦2.0.0 | THO v7.1
Condition.code | Base | required | All ICD-11 codes | 📦0.1.0 | This IG
Condition.bodySite | Base | required | All ICD-11 codes | 📦0.1.0 | This IG

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Condition | C | 0..* | Condition | Detailed information about conditions, problems or diagnoses Constraints: con-2, con-3
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 1..* | Identifier | External Ids for this condition
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type | Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system | Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 1..1 | string | The value that is unique Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
clinicalStatus | ?!Σ C | 1..1 | SGHICodeableConcept | active | recurrence | relapse | inactive | remission | resolved | unknown Binding: ConditionClinicalStatusCodes (required): The clinical status of the condition or diagnosis.
verificationStatus | ?!Σ | 1..1 | SGHICodeableConcept | unconfirmed | provisional | differential | confirmed | refuted | entered-in-error Binding: ConditionVerificationStatus (required): The verification status to support or decline the clinical status of the condition or diagnosis.
category | C | 1..* | SGHICodeableConcept | problem-list-item | encounter-diagnosis Binding: ConditionCategoryCodes (preferred): A category assigned to the condition.
severity |  | 1..1 | SGHICodeableConcept | Subjective severity of condition Binding: AdverseEventSeverity (required): Custom severity values intentionally override the HL7 preferred ConditionSeverity ValueSet.
code | Σ | 1..1 | SGHICodeableConcept | Identification of the condition, problem or diagnosis Binding: All ICD-11 codes (required)
bodySite | Σ | 0..* | SGHICodeableConcept | Anatomical location, if relevant Binding: All ICD-11 codes (required)
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Who has the condition?
encounter | Σ | 1..1 | SGHIReference(SGHI Encounter) | The Encounter during which this Condition was created
onset[x] | Σ | 0..1 | dateTime | Estimated or actual date, date-time, or age
abatement[x] | C | 0..1 | dateTime | When in resolution/remission
recordedDate | Σ | 1..1 | dateTime | Date condition was first recorded
participant | Σ | 1..* | BackboneElement | Who or what participated in the activities related to the condition and how they were involved
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
function | Σ | 0..1 | CodeableConcept | Type of involvement Binding: ParticipationRoleType (extensible)
actor | Σ | 1..1 | SGHIReference(SGHI Patient | SGHI Organization) | Who or what participated in the activities related to the condition
stage | C | 0..* | BackboneElement | Stage/grade, usually assessed formally Constraints: con-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
summary | C | 0..1 | CodeableConcept | Simple summary (disease specific) Binding: ConditionStage (example): Codes describing condition stages (e.g. Cancer stages).
assessment | C | 0..* | SGHIReference(SGHI DiagnosticReport | SGHI Observation) | Formal record of assessment
type |  | 0..1 | CodeableConcept | Kind of staging Binding: ConditionStageType (example): Codes describing the kind of condition staging (e.g. clinical or pathological).
evidence | Σ | 0..* | CodeableReference(Resource) | Supporting evidence for the verification status Binding: SNOMEDCTClinicalFindings (example)
note |  | 0..* | Annotation | Additional information about the Condition
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Condition.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
Condition.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
Condition.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
Condition.clinicalStatus | Base | required | Condition Clinical Status Codes | 📍5.0.0 | FHIR Std.
Condition.verificationStatus | Base | required | Condition Verification Status | 📍5.0.0 | FHIR Std.
Condition.category | Base | preferred | Condition Category Codes | 📍5.0.0 | FHIR Std.
Condition.severity | Base | required | AdverseEventSeverity | 📦2.0.0 | THO v7.1
Condition.code | Base | required | All ICD-11 codes | 📦0.1.0 | This IG
Condition.bodySite | Base | required | All ICD-11 codes | 📦0.1.0 | This IG
Condition.participant.​function | Base | extensible | Participation Role Type | 📍5.0.0 | FHIR Std.
Condition.stage.summary | Base | example | Condition Stage | 📍5.0.0 | FHIR Std.
Condition.stage.type | Base | example | Condition Stage Type | 📍5.0.0 | FHIR Std.
Condition.evidence | Base | example | SNOMED CT Clinical Findings | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
con-1 | error | Condition.stage | Stage SHALL have summary or assessment | `summary.exists() or assessment.exists()`
con-2 | warning | Condition | If category is problems list item, the clinicalStatus should not be unknown | `category.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-category' and code='problem-list-item').exists() implies clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and code='unknown').exists().not()`
con-3 | error | Condition | If condition is abated, then clinicalStatus must be either inactive, resolved, or remission. | `abatement.exists() implies (clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='inactive' or code='resolved' or code='remission')).exists())`
dom-2 | error | Condition | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Condition | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Condition | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from Condition

Summary

Mandatory: 11 elements

Structures

This structure refers to these other structures:

- SGHI CodeableConcept (https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept)
- SGHI Reference (https://fhir.slade360.co.ke/fhir/StructureDefinition/reference)
- SGHI Organization (https://fhir.slade360.co.ke/fhir/StructureDefinition/organization)
- SGHI Patient (https://fhir.slade360.co.ke/fhir/StructureDefinition/patient)
- SGHI Encounter (https://fhir.slade360.co.ke/fhir/StructureDefinition/encounter)
- SGHI DiagnosticReport (https://fhir.slade360.co.ke/fhir/StructureDefinition/diagnosticreport)
- SGHI Observation (https://fhir.slade360.co.ke/fhir/StructureDefinition/observation)

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Condition | C | 0..* | Condition | Detailed information about conditions, problems or diagnoses Constraints: con-2, con-3
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 1..* | Identifier | External Ids for this condition
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type | Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system | Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 1..1 | string | The value that is unique Example General: 123456
assigner | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
clinicalStatus | ?!Σ C | 1..1 | SGHICodeableConcept | active | recurrence | relapse | inactive | remission | resolved | unknown Binding: ConditionClinicalStatusCodes (required): The clinical status of the condition or diagnosis.
verificationStatus | ?!Σ | 1..1 | SGHICodeableConcept | unconfirmed | provisional | differential | confirmed | refuted | entered-in-error Binding: ConditionVerificationStatus (required): The verification status to support or decline the clinical status of the condition or diagnosis.
category | C | 1..* | SGHICodeableConcept | problem-list-item | encounter-diagnosis Binding: ConditionCategoryCodes (preferred): A category assigned to the condition.
severity |  | 1..1 | SGHICodeableConcept | Subjective severity of condition Binding: AdverseEventSeverity (required): Custom severity values intentionally override the HL7 preferred ConditionSeverity ValueSet.
code | Σ | 1..1 | SGHICodeableConcept | Identification of the condition, problem or diagnosis Binding: All ICD-11 codes (required)
bodySite | Σ | 0..* | SGHICodeableConcept | Anatomical location, if relevant Binding: All ICD-11 codes (required)
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Who has the condition?
encounter | Σ | 1..1 | SGHIReference(SGHI Encounter) | The Encounter during which this Condition was created
onset[x] | Σ | 0..1 | dateTime | Estimated or actual date, date-time, or age
abatement[x] | C | 0..1 | dateTime | When in resolution/remission
recordedDate | Σ | 1..1 | dateTime | Date condition was first recorded
participant | Σ | 1..* | BackboneElement | Who or what participated in the activities related to the condition and how they were involved
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
actor | Σ | 1..1 | SGHIReference(SGHI Patient | SGHI Organization) | Who or what participated in the activities related to the condition
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Condition.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
Condition.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
Condition.clinicalStatus | Base | required | Condition Clinical Status Codes | 📍5.0.0 | FHIR Std.
Condition.verificationStatus | Base | required | Condition Verification Status | 📍5.0.0 | FHIR Std.
Condition.category | Base | preferred | Condition Category Codes | 📍5.0.0 | FHIR Std.
Condition.severity | Base | required | AdverseEventSeverity | 📦2.0.0 | THO v7.1
Condition.code | Base | required | All ICD-11 codes | 📦0.1.0 | This IG
Condition.bodySite | Base | required | All ICD-11 codes | 📦0.1.0 | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
con-2 | warning | Condition | If category is problems list item, the clinicalStatus should not be unknown | `category.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-category' and code='problem-list-item').exists() implies clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and code='unknown').exists().not()`
con-3 | error | Condition | If condition is abated, then clinicalStatus must be either inactive, resolved, or remission. | `abatement.exists() implies (clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='inactive' or code='resolved' or code='remission')).exists())`
dom-2 | error | Condition | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Condition | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Condition | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

Differential View

This structure is derived from Condition

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Condition |  | 0..* | Condition | Detailed information about conditions, problems or diagnoses
identifier |  | 1..* | Identifier | External Ids for this condition
use |  | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type |  | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system |  | 1..1 | uri | The namespace for the identifier value
value |  | 1..1 | string | The value that is unique
assigner |  | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
clinicalStatus |  | 1..1 | SGHICodeableConcept | active | recurrence | relapse | inactive | remission | resolved | unknown
verificationStatus |  | 1..1 | SGHICodeableConcept | unconfirmed | provisional | differential | confirmed | refuted | entered-in-error
category |  | 1..* | SGHICodeableConcept | problem-list-item | encounter-diagnosis
severity |  | 1..1 | SGHICodeableConcept | Subjective severity of condition Binding: AdverseEventSeverity (required): Custom severity values intentionally override the HL7 preferred ConditionSeverity ValueSet.
code |  | 1..1 | SGHICodeableConcept | Identification of the condition, problem or diagnosis Binding: All ICD-11 codes (required)
bodySite |  | 0..* | SGHICodeableConcept | Anatomical location, if relevant Binding: All ICD-11 codes (required)
subject |  | 1..1 | SGHIReference(SGHI Patient) | Who has the condition?
encounter |  | 1..1 | SGHIReference(SGHI Encounter) | The Encounter during which this Condition was created
onset[x] |  | 0..1 | dateTime | Estimated or actual date, date-time, or age
abatement[x] |  | 0..1 | dateTime | When in resolution/remission
recordedDate |  | 1..1 | dateTime | Date condition was first recorded
participant |  | 1..* | BackboneElement | Who or what participated in the activities related to the condition and how they were involved
actor |  | 1..1 | SGHIReference(SGHI Patient | SGHI Organization) | Who or what participated in the activities related to the condition
stage |  |  |  |
assessment |  | 0..* | SGHIReference(SGHI DiagnosticReport | SGHI Observation) | Formal record of assessment
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
Condition.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
Condition.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
Condition.severity | Base | required | AdverseEventSeverity | 📦2.0.0 | THO v7.1
Condition.code | Base | required | All ICD-11 codes | 📦0.1.0 | This IG
Condition.bodySite | Base | required | All ICD-11 codes | 📦0.1.0 | This IG

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Condition | C | 0..* | Condition | Detailed information about conditions, problems or diagnoses Constraints: con-2, con-3
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 1..* | Identifier | External Ids for this condition
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required)
type | Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Default Identifier Types (required)
system | Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ C | 1..1 | string | The value that is unique Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text)
clinicalStatus | ?!Σ C | 1..1 | SGHICodeableConcept | active | recurrence | relapse | inactive | remission | resolved | unknown Binding: ConditionClinicalStatusCodes (required): The clinical status of the condition or diagnosis.
verificationStatus | ?!Σ | 1..1 | SGHICodeableConcept | unconfirmed | provisional | differential | confirmed | refuted | entered-in-error Binding: ConditionVerificationStatus (required): The verification status to support or decline the clinical status of the condition or diagnosis.
category | C | 1..* | SGHICodeableConcept | problem-list-item | encounter-diagnosis Binding: ConditionCategoryCodes (preferred): A category assigned to the condition.
severity |  | 1..1 | SGHICodeableConcept | Subjective severity of condition Binding: AdverseEventSeverity (required): Custom severity values intentionally override the HL7 preferred ConditionSeverity ValueSet.
code | Σ | 1..1 | SGHICodeableConcept | Identification of the condition, problem or diagnosis Binding: All ICD-11 codes (required)
bodySite | Σ | 0..* | SGHICodeableConcept | Anatomical location, if relevant Binding: All ICD-11 codes (required)
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Who has the condition?
encounter | Σ | 1..1 | SGHIReference(SGHI Encounter) | The Encounter during which this Condition was created
onset[x] | Σ | 0..1 | dateTime | Estimated or actual date, date-time, or age
abatement[x] | C | 0..1 | dateTime | When in resolution/remission
recordedDate | Σ | 1..1 | dateTime | Date condition was first recorded
participant | Σ | 1..* | BackboneElement | Who or what participated in the activities related to the condition and how they were involved
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
function | Σ | 0..1 | CodeableConcept | Type of involvement Binding: ParticipationRoleType (extensible)
actor | Σ | 1..1 | SGHIReference(SGHI Patient | SGHI Organization) | Who or what participated in the activities related to the condition
stage | C | 0..* | BackboneElement | Stage/grade, usually assessed formally Constraints: con-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
summary | C | 0..1 | CodeableConcept | Simple summary (disease specific) Binding: ConditionStage (example): Codes describing condition stages (e.g. Cancer stages).
assessment | C | 0..* | SGHIReference(SGHI DiagnosticReport | SGHI Observation) | Formal record of assessment
type |  | 0..1 | CodeableConcept | Kind of staging Binding: ConditionStageType (example): Codes describing the kind of condition staging (e.g. clinical or pathological).
evidence | Σ | 0..* | CodeableReference(Resource) | Supporting evidence for the verification status Binding: SNOMEDCTClinicalFindings (example)
note |  | 0..* | Annotation | Additional information about the Condition
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Condition.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
Condition.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
Condition.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
Condition.clinicalStatus | Base | required | Condition Clinical Status Codes | 📍5.0.0 | FHIR Std.
Condition.verificationStatus | Base | required | Condition Verification Status | 📍5.0.0 | FHIR Std.
Condition.category | Base | preferred | Condition Category Codes | 📍5.0.0 | FHIR Std.
Condition.severity | Base | required | AdverseEventSeverity | 📦2.0.0 | THO v7.1
Condition.code | Base | required | All ICD-11 codes | 📦0.1.0 | This IG
Condition.bodySite | Base | required | All ICD-11 codes | 📦0.1.0 | This IG
Condition.participant.​function | Base | extensible | Participation Role Type | 📍5.0.0 | FHIR Std.
Condition.stage.summary | Base | example | Condition Stage | 📍5.0.0 | FHIR Std.
Condition.stage.type | Base | example | Condition Stage Type | 📍5.0.0 | FHIR Std.
Condition.evidence | Base | example | SNOMED CT Clinical Findings | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
con-1 | error | Condition.stage | Stage SHALL have summary or assessment | `summary.exists() or assessment.exists()`
con-2 | warning | Condition | If category is problems list item, the clinicalStatus should not be unknown | `category.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-category' and code='problem-list-item').exists() implies clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and code='unknown').exists().not()`
con-3 | error | Condition | If condition is abated, then clinicalStatus must be either inactive, resolved, or remission. | `abatement.exists() implies (clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='inactive' or code='resolved' or code='remission')).exists())`
dom-2 | error | Condition | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Condition | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | Condition | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Condition | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from Condition

Summary

Mandatory: 11 elements

Structures

This structure refers to these other structures:

- SGHI CodeableConcept (https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept)
- SGHI Reference (https://fhir.slade360.co.ke/fhir/StructureDefinition/reference)
- SGHI Organization (https://fhir.slade360.co.ke/fhir/StructureDefinition/organization)
- SGHI Patient (https://fhir.slade360.co.ke/fhir/StructureDefinition/patient)
- SGHI Encounter (https://fhir.slade360.co.ke/fhir/StructureDefinition/encounter)
- SGHI DiagnosticReport (https://fhir.slade360.co.ke/fhir/StructureDefinition/diagnosticreport)
- SGHI Observation (https://fhir.slade360.co.ke/fhir/StructureDefinition/observation)

Other representations of profile: CSV, Excel, Schematron