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
Official URL: https://fhir.slade360.co.ke/fhir/StructureDefinition/sghi-reference | Version: 0.1.0 | |||
Draft as of 2025-09-04 | Computable Name: SGHIReference |
SGHI Reference
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Reference | A reference from one resource to another Constraints: ref-1, ref-2 |
![]() ![]() ![]() |
ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
![]() ![]() ![]() |
ΣC | 1..1 | string | Text alternative for the resource |
![]() |
Id | Grade | Path(s) | Details | Requirements |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ref-1 | error | Reference | SHALL have a contained resource if a local reference is provided : reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource)) | |
ref-2 | error | Reference | At least one of reference, identifier and display SHALL be present (unless an extension is provided). : reference.exists() or identifier.exists() or display.exists() or extension.exists() |
Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Reference | A reference from one resource to another Constraints: ref-1, ref-2 |
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). |
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known |
![]() ![]() ![]() |
ΣC | 1..1 | string | Text alternative for the resource |
![]() |
Path | Conformance | ValueSet | URI |
Reference.type | extensible | ResourceTypehttp://hl7.org/fhir/ValueSet/resource-types From the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
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() | |
ref-1 | error | Reference | SHALL have a contained resource if a local reference is provided : reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource)) | |
ref-2 | error | Reference | At least one of reference, identifier and display SHALL be present (unless an extension is provided). : reference.exists() or identifier.exists() or display.exists() or extension.exists() |
This structure is derived from Reference
Key Elements View
Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Reference | A reference from one resource to another Constraints: ref-1, ref-2 |
![]() ![]() ![]() |
ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
![]() ![]() ![]() |
ΣC | 1..1 | string | Text alternative for the resource |
![]() |
Id | Grade | Path(s) | Details | Requirements |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ref-1 | error | Reference | SHALL have a contained resource if a local reference is provided : reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource)) | |
ref-2 | error | Reference | At least one of reference, identifier and display SHALL be present (unless an extension is provided). : reference.exists() or identifier.exists() or display.exists() or extension.exists() |
Differential View
This structure is derived from Reference
Snapshot View
Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Reference | A reference from one resource to another Constraints: ref-1, ref-2 |
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
ΣC | 1..1 | string | Literal reference, Relative, internal or absolute URL |
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") - must be a resource in resources Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model). |
![]() ![]() ![]() |
ΣC | 0..1 | Identifier | Logical reference, when literal reference is not known |
![]() ![]() ![]() |
ΣC | 1..1 | string | Text alternative for the resource |
![]() |
Path | Conformance | ValueSet | URI |
Reference.type | extensible | ResourceTypehttp://hl7.org/fhir/ValueSet/resource-types From the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
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() | |
ref-1 | error | Reference | SHALL have a contained resource if a local reference is provided : reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource)) | |
ref-2 | error | Reference | At least one of reference, identifier and display SHALL be present (unless an extension is provided). : reference.exists() or identifier.exists() or display.exists() or extension.exists() |
This structure is derived from Reference
Other representations of profile: CSV, Excel, Schematron