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/sghi-riskassessment Version: 0.1.0
Draft as of 2025-09-04 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:

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.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. 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
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required)
.... type Σ 0..1 SGHICodeableConcept Description of identifier
Binding: SGHI Standard 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

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
RiskAssessment.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use
From the FHIR Standard
RiskAssessment.identifier.typerequiredSGHIIdentifierTypes
https://fhir.slade360.co.ke/fhir/ValueSet/sghi-identifier-types
From this IG
RiskAssessment.statusrequiredObservationStatus
http://hl7.org/fhir/ValueSet/observation-status|5.0.0
From the FHIR Standard
RiskAssessment.prediction.qualitativeRiskexampleRiskProbability
http://hl7.org/fhir/ValueSet/risk-probability
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorRiskAssessmentIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorRiskAssessmentIf 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-4errorRiskAssessmentIf 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-5errorRiskAssessmentIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceRiskAssessmentA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ras-2errorRiskAssessment.predictionProbability as a deciml must be <= 100
: probability.empty() or ((probability is decimal) implies ((probability as decimal) <= 100))

This structure is derived from RiskAssessment

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. 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 Standard 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?
... 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

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
RiskAssessment.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use
From the FHIR Standard
RiskAssessment.identifier.typerequiredSGHIIdentifierTypes
https://fhir.slade360.co.ke/fhir/ValueSet/sghi-identifier-types
From this IG
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. 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
... 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 Standard 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

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
RiskAssessment.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
From the FHIR Standard
RiskAssessment.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use
From the FHIR Standard
RiskAssessment.identifier.typerequiredSGHIIdentifierTypes
https://fhir.slade360.co.ke/fhir/ValueSet/sghi-identifier-types
From this IG
RiskAssessment.statusrequiredObservationStatus
http://hl7.org/fhir/ValueSet/observation-status|5.0.0
From the FHIR Standard
RiskAssessment.methodexample
RiskAssessment.prediction.outcomeexample
RiskAssessment.prediction.qualitativeRiskexampleRiskProbability
http://hl7.org/fhir/ValueSet/risk-probability
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorRiskAssessmentIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorRiskAssessmentIf 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-4errorRiskAssessmentIf 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-5errorRiskAssessmentIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceRiskAssessmentA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ras-1errorRiskAssessment.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-2errorRiskAssessment.predictionProbability as a deciml must be <= 100
: probability.empty() or ((probability is decimal) implies ((probability as decimal) <= 100))

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. 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
.... use ?!Σ 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required)
.... type Σ 0..1 SGHICodeableConcept Description of identifier
Binding: SGHI Standard 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

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
RiskAssessment.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use
From the FHIR Standard
RiskAssessment.identifier.typerequiredSGHIIdentifierTypes
https://fhir.slade360.co.ke/fhir/ValueSet/sghi-identifier-types
From this IG
RiskAssessment.statusrequiredObservationStatus
http://hl7.org/fhir/ValueSet/observation-status|5.0.0
From the FHIR Standard
RiskAssessment.prediction.qualitativeRiskexampleRiskProbability
http://hl7.org/fhir/ValueSet/risk-probability
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorRiskAssessmentIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorRiskAssessmentIf 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-4errorRiskAssessmentIf 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-5errorRiskAssessmentIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceRiskAssessmentA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ras-2errorRiskAssessment.predictionProbability 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

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. 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 Standard 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?
... 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

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
RiskAssessment.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use
From the FHIR Standard
RiskAssessment.identifier.typerequiredSGHIIdentifierTypes
https://fhir.slade360.co.ke/fhir/ValueSet/sghi-identifier-types
From this IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. 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
... 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 Standard 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

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
RiskAssessment.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
From the FHIR Standard
RiskAssessment.identifier.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use
From the FHIR Standard
RiskAssessment.identifier.typerequiredSGHIIdentifierTypes
https://fhir.slade360.co.ke/fhir/ValueSet/sghi-identifier-types
From this IG
RiskAssessment.statusrequiredObservationStatus
http://hl7.org/fhir/ValueSet/observation-status|5.0.0
From the FHIR Standard
RiskAssessment.methodexample
RiskAssessment.prediction.outcomeexample
RiskAssessment.prediction.qualitativeRiskexampleRiskProbability
http://hl7.org/fhir/ValueSet/risk-probability
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorRiskAssessmentIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorRiskAssessmentIf 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-4errorRiskAssessmentIf 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-5errorRiskAssessmentIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceRiskAssessmentA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ras-1errorRiskAssessment.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-2errorRiskAssessment.predictionProbability as a deciml must be <= 100
: probability.empty() or ((probability is decimal) implies ((probability as decimal) <= 100))

 

Other representations of profile: CSV, Excel, Schematron