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 RiskAssessment

Official URL: https://fhir.slade360.co.ke/fhir/StructureDefinition/riskassessment | Version: 0.1.0
Draft as of 2026-05-21 | Computable Name: SGHIRiskAssessment

An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome.

Usages:

- Examples for this Profile: RiskAssessment/ExampleSGHIRiskAssessment

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
--- | --- | --- | --- | ---
RiskAssessment |  | 0..* | RiskAssessment | Potential outcomes for a subject with likelihood
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 | Unique identifier for the assessment
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)
basedOn |  | 0..1 | SGHIReference(Resource) | Request fulfilled by this assessment
status | Σ | 1..1 | code | registered | preliminary | final | amended + Binding: ObservationStatus (required): The status of the risk assessment; e.g. preliminary, final, amended, etc.
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Who/what does assessment apply to?
encounter | Σ | 1..1 | SGHIReference(SGHI Encounter) | Where was assessment performed?
condition | Σ | 0..1 | SGHIReference(SGHI Condition) | Condition assessed
performer | Σ | 0..1 | SGHIReference(SGHI Patient | Practitioner) | Who did assessment?
reason |  | 0..* | SGHICodeableReference(SGHI Condition | SGHI Observation | SGHI DiagnosticReport) | Why the assessment was necessary?
basis |  | 0..* | SGHIReference(QuestionnaireResponse) | Information used in assessment
prediction | C | 1..* | BackboneElement | Outcome predicted Constraints: ras-2
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
qualitativeRisk |  | 1..1 | SGHICodeableConcept | Likelihood of specified outcome as a qualitative value Binding: RiskProbability (example): The likelihood of the occurrence of a specified outcome.
note |  | 0..* | SGHIAnnotation | Comments on the risk assessment
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
RiskAssessment.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
RiskAssessment.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
RiskAssessment.status | Base | required | Observation Status | 📍5.0.0 | FHIR Std.
RiskAssessment.prediction.​qualitativeRisk | Base | example | Risk Probability | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | RiskAssessment | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | RiskAssessment | 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 | RiskAssessment | 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 | RiskAssessment | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | RiskAssessment | 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()`
ras-2 | error | RiskAssessment.prediction | Probability as a deciml must be <= 100 | `probability.empty() or ((probability is decimal) implies ((probability as decimal) <= 100))`

This structure is derived from RiskAssessment

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
RiskAssessment |  | 0..* | RiskAssessment | Potential outcomes for a subject with likelihood
identifier |  | 1..* | Identifier | Unique identifier for the assessment
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)
basedOn |  | 0..1 | SGHIReference(Resource) | Request fulfilled by this assessment
subject |  | 1..1 | SGHIReference(SGHI Patient) | Who/what does assessment apply to?
encounter |  | 1..1 | SGHIReference(SGHI Encounter) | Where was assessment performed?
condition |  | 0..1 | SGHIReference(SGHI Condition) | Condition assessed
performer |  | 0..1 | SGHIReference(SGHI Patient | Practitioner) | Who did assessment?
reason |  | 0..* | SGHICodeableReference(SGHI Condition | SGHI Observation | SGHI DiagnosticReport) | Why the assessment was necessary?
basis |  | 0..* | SGHIReference(QuestionnaireResponse) | Information used in assessment
prediction |  | 1..* | BackboneElement | Outcome predicted
qualitativeRisk |  | 1..1 | SGHICodeableConcept | Likelihood of specified outcome as a qualitative value
note |  | 0..* | SGHIAnnotation | Comments on the risk assessment
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
RiskAssessment.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
RiskAssessment.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
RiskAssessment |  | 0..* | RiskAssessment | Potential outcomes for a subject with likelihood
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 | Unique identifier for the assessment
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)
basedOn |  | 0..1 | SGHIReference(Resource) | Request fulfilled by this assessment
parent |  | 0..1 | Reference(Resource) | Part of this occurrence
status | Σ | 1..1 | code | registered | preliminary | final | amended + Binding: ObservationStatus (required): The status of the risk assessment; e.g. preliminary, final, amended, etc.
method | Σ | 0..1 | CodeableConcept | Evaluation mechanism Binding Description: (example): The mechanism or algorithm used to make the assessment; e.g. TIMI, PRISM, Cardiff Type 2 diabetes, etc.
code | Σ | 0..1 | CodeableConcept | Type of assessment
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Who/what does assessment apply to?
encounter | Σ | 1..1 | SGHIReference(SGHI Encounter) | Where was assessment performed?
occurrence[x] | Σ | 0..1 |  | When was assessment made?
occurrenceDateTime |  |  | dateTime |
occurrencePeriod |  |  | Period |
condition | Σ | 0..1 | SGHIReference(SGHI Condition) | Condition assessed
performer | Σ | 0..1 | SGHIReference(SGHI Patient | Practitioner) | Who did assessment?
reason |  | 0..* | SGHICodeableReference(SGHI Condition | SGHI Observation | SGHI DiagnosticReport) | Why the assessment was necessary?
basis |  | 0..* | SGHIReference(QuestionnaireResponse) | Information used in assessment
prediction | C | 1..* | BackboneElement | Outcome predicted Constraints: ras-2
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
outcome |  | 0..1 | CodeableConcept | Possible outcome for the subject Binding Description: (example): The condition or other outcome; e.g. death, remission, amputation, infection, etc.
probability[x] | C | 0..1 |  | Likelihood of specified outcome Constraints: ras-1
probabilityDecimal |  |  | decimal |
probabilityRange |  |  | Range |
qualitativeRisk |  | 1..1 | SGHICodeableConcept | Likelihood of specified outcome as a qualitative value Binding: RiskProbability (example): The likelihood of the occurrence of a specified outcome.
relativeRisk |  | 0..1 | decimal | Relative likelihood
when[x] |  | 0..1 |  | Timeframe or age range
whenPeriod |  |  | Period |
whenRange |  |  | Range |
rationale |  | 0..1 | string | Explanation of prediction
mitigation |  | 0..1 | string | How to reduce risk
note |  | 0..* | SGHIAnnotation | Comments on the risk assessment
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
RiskAssessment.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
RiskAssessment.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
RiskAssessment.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
RiskAssessment.status | Base | required | Observation Status | 📍5.0.0 | FHIR Std.
RiskAssessment.method | Base | example |  | Not State | Unknown
RiskAssessment.prediction.​outcome | Base | example |  | Not State | Unknown
RiskAssessment.prediction.​qualitativeRisk | Base | example | Risk Probability | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | RiskAssessment | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | RiskAssessment | 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 | RiskAssessment | 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 | RiskAssessment | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | RiskAssessment | 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()`
ras-1 | error | RiskAssessment.prediction.probability[x] | low and high must be percentages, if present | `(low.empty() or ((low.code = '%') and (low.system = %ucum))) and (high.empty() or ((high.code = '%') and (high.system = %ucum)))`
ras-2 | error | RiskAssessment.prediction | Probability as a deciml must be <= 100 | `probability.empty() or ((probability is decimal) implies ((probability as decimal) <= 100))`

This structure is derived from RiskAssessment

Summary

Mandatory: 7 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 Condition (https://fhir.slade360.co.ke/fhir/StructureDefinition/condition)
- SGHI CodeableReference (https://fhir.slade360.co.ke/fhir/StructureDefinition/codeable-reference)
- SGHI Observation (https://fhir.slade360.co.ke/fhir/StructureDefinition/observation)
- SGHI DiagnosticReport (https://fhir.slade360.co.ke/fhir/StructureDefinition/diagnosticreport)
- SGHI Annotation (https://fhir.slade360.co.ke/fhir/StructureDefinition/annotation)

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
RiskAssessment |  | 0..* | RiskAssessment | Potential outcomes for a subject with likelihood
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 | Unique identifier for the assessment
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)
basedOn |  | 0..1 | SGHIReference(Resource) | Request fulfilled by this assessment
status | Σ | 1..1 | code | registered | preliminary | final | amended + Binding: ObservationStatus (required): The status of the risk assessment; e.g. preliminary, final, amended, etc.
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Who/what does assessment apply to?
encounter | Σ | 1..1 | SGHIReference(SGHI Encounter) | Where was assessment performed?
condition | Σ | 0..1 | SGHIReference(SGHI Condition) | Condition assessed
performer | Σ | 0..1 | SGHIReference(SGHI Patient | Practitioner) | Who did assessment?
reason |  | 0..* | SGHICodeableReference(SGHI Condition | SGHI Observation | SGHI DiagnosticReport) | Why the assessment was necessary?
basis |  | 0..* | SGHIReference(QuestionnaireResponse) | Information used in assessment
prediction | C | 1..* | BackboneElement | Outcome predicted Constraints: ras-2
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
qualitativeRisk |  | 1..1 | SGHICodeableConcept | Likelihood of specified outcome as a qualitative value Binding: RiskProbability (example): The likelihood of the occurrence of a specified outcome.
note |  | 0..* | SGHIAnnotation | Comments on the risk assessment
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
RiskAssessment.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
RiskAssessment.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
RiskAssessment.status | Base | required | Observation Status | 📍5.0.0 | FHIR Std.
RiskAssessment.prediction.​qualitativeRisk | Base | example | Risk Probability | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | RiskAssessment | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | RiskAssessment | 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 | RiskAssessment | 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 | RiskAssessment | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | RiskAssessment | 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()`
ras-2 | error | RiskAssessment.prediction | Probability as a deciml must be <= 100 | `probability.empty() or ((probability is decimal) implies ((probability as decimal) <= 100))`

Differential View

This structure is derived from RiskAssessment

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
RiskAssessment |  | 0..* | RiskAssessment | Potential outcomes for a subject with likelihood
identifier |  | 1..* | Identifier | Unique identifier for the assessment
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)
basedOn |  | 0..1 | SGHIReference(Resource) | Request fulfilled by this assessment
subject |  | 1..1 | SGHIReference(SGHI Patient) | Who/what does assessment apply to?
encounter |  | 1..1 | SGHIReference(SGHI Encounter) | Where was assessment performed?
condition |  | 0..1 | SGHIReference(SGHI Condition) | Condition assessed
performer |  | 0..1 | SGHIReference(SGHI Patient | Practitioner) | Who did assessment?
reason |  | 0..* | SGHICodeableReference(SGHI Condition | SGHI Observation | SGHI DiagnosticReport) | Why the assessment was necessary?
basis |  | 0..* | SGHIReference(QuestionnaireResponse) | Information used in assessment
prediction |  | 1..* | BackboneElement | Outcome predicted
qualitativeRisk |  | 1..1 | SGHICodeableConcept | Likelihood of specified outcome as a qualitative value
note |  | 0..* | SGHIAnnotation | Comments on the risk assessment
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
RiskAssessment.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
RiskAssessment.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
RiskAssessment |  | 0..* | RiskAssessment | Potential outcomes for a subject with likelihood
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 | Unique identifier for the assessment
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)
basedOn |  | 0..1 | SGHIReference(Resource) | Request fulfilled by this assessment
parent |  | 0..1 | Reference(Resource) | Part of this occurrence
status | Σ | 1..1 | code | registered | preliminary | final | amended + Binding: ObservationStatus (required): The status of the risk assessment; e.g. preliminary, final, amended, etc.
method | Σ | 0..1 | CodeableConcept | Evaluation mechanism Binding Description: (example): The mechanism or algorithm used to make the assessment; e.g. TIMI, PRISM, Cardiff Type 2 diabetes, etc.
code | Σ | 0..1 | CodeableConcept | Type of assessment
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Who/what does assessment apply to?
encounter | Σ | 1..1 | SGHIReference(SGHI Encounter) | Where was assessment performed?
occurrence[x] | Σ | 0..1 |  | When was assessment made?
occurrenceDateTime |  |  | dateTime |
occurrencePeriod |  |  | Period |
condition | Σ | 0..1 | SGHIReference(SGHI Condition) | Condition assessed
performer | Σ | 0..1 | SGHIReference(SGHI Patient | Practitioner) | Who did assessment?
reason |  | 0..* | SGHICodeableReference(SGHI Condition | SGHI Observation | SGHI DiagnosticReport) | Why the assessment was necessary?
basis |  | 0..* | SGHIReference(QuestionnaireResponse) | Information used in assessment
prediction | C | 1..* | BackboneElement | Outcome predicted Constraints: ras-2
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
outcome |  | 0..1 | CodeableConcept | Possible outcome for the subject Binding Description: (example): The condition or other outcome; e.g. death, remission, amputation, infection, etc.
probability[x] | C | 0..1 |  | Likelihood of specified outcome Constraints: ras-1
probabilityDecimal |  |  | decimal |
probabilityRange |  |  | Range |
qualitativeRisk |  | 1..1 | SGHICodeableConcept | Likelihood of specified outcome as a qualitative value Binding: RiskProbability (example): The likelihood of the occurrence of a specified outcome.
relativeRisk |  | 0..1 | decimal | Relative likelihood
when[x] |  | 0..1 |  | Timeframe or age range
whenPeriod |  |  | Period |
whenRange |  |  | Range |
rationale |  | 0..1 | string | Explanation of prediction
mitigation |  | 0..1 | string | How to reduce risk
note |  | 0..* | SGHIAnnotation | Comments on the risk assessment
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
RiskAssessment.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
RiskAssessment.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
RiskAssessment.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
RiskAssessment.status | Base | required | Observation Status | 📍5.0.0 | FHIR Std.
RiskAssessment.method | Base | example |  | Not State | Unknown
RiskAssessment.prediction.​outcome | Base | example |  | Not State | Unknown
RiskAssessment.prediction.​qualitativeRisk | Base | example | Risk Probability | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | RiskAssessment | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | RiskAssessment | 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 | RiskAssessment | 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 | RiskAssessment | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | RiskAssessment | 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()`
ras-1 | error | RiskAssessment.prediction.probability[x] | low and high must be percentages, if present | `(low.empty() or ((low.code = '%') and (low.system = %ucum))) and (high.empty() or ((high.code = '%') and (high.system = %ucum)))`
ras-2 | error | RiskAssessment.prediction | Probability as a deciml must be <= 100 | `probability.empty() or ((probability is decimal) implies ((probability as decimal) <= 100))`

This structure is derived from RiskAssessment

Summary

Mandatory: 7 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 Condition (https://fhir.slade360.co.ke/fhir/StructureDefinition/condition)
- SGHI CodeableReference (https://fhir.slade360.co.ke/fhir/StructureDefinition/codeable-reference)
- SGHI Observation (https://fhir.slade360.co.ke/fhir/StructureDefinition/observation)
- SGHI DiagnosticReport (https://fhir.slade360.co.ke/fhir/StructureDefinition/diagnosticreport)
- SGHI Annotation (https://fhir.slade360.co.ke/fhir/StructureDefinition/annotation)

Other representations of profile: CSV, Excel, Schematron