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 ServiceRequest

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

ServiceRequest represents an order or proposal or plan, as distinguished by ServiceRequest.intent to perform a diagnostic or other service on or for a patient. ServiceRequest represents a proposal or plan or order for a service to be performed that would result in a Procedure or DiagnosticReport, which in turn may reference one or more Observations, which summarize the performance of the procedures and associated documentation such as observations, images, findings that are relevant to the treatment/management of the subject. This resource may be used to share relevant information required to support a referral or a transfer of care request from one practitioner or organization to another when a patient is required to be referred to another provider for a consultation /second opinion and/or for short term or longer term management of one or more health issues or problems.

Usages:

- Refer to this Profile: SGHI Appointment Profile, SGHI DiagnosticReport, SGHI DocumentReference Profile., SGHI Encounter... Show 5 more, SGHI EpisodeOfCare, SGHI MedicationRequest, SGHI Observation, SGHI Procedure and SGHI ServiceRequest
- Examples for this Profile: ServiceRequest/ExampleSGHIServiceRequest

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
--- | --- | --- | --- | ---
ServiceRequest | C | 0..* | ServiceRequest | A request for a service to be performed Constraints: bdystr-1, prr-1
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 | Identifiers assigned to this order
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..* | SGHIReference(SGHI MedicationRequest | SGHI ServiceRequest) | What request fulfills
replaces | Σ | 0..* | SGHIReference(SGHI ServiceRequest) | What request replaces
status | ?!Σ | 1..1 | code | draft | active | on-hold | revoked | completed | entered-in-error | unknown Binding: RequestStatus (required): The status of a service order.
intent | ?!Σ | 1..1 | code | proposal | plan | directive | order + Binding: RequestIntent (required): The kind of service request.
category | Σ | 1..* | SGHICodeableConcept | Classification of service Binding: Service Request Categories (required)
priority | Σ | 1..1 | code | routine | urgent | asap | stat Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
doNotPerform | ?!Σ | 0..1 | boolean | True if service/procedure should not be performed
code | Σ C | 0..1 | SGHICodeableReference(ActivityDefinition | PlanDefinition) | What is being requested/ordered Binding: All LOINC Codes (required)
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Individual or Entity the service is ordered for
encounter | Σ | 1..1 | SGHIReference(SGHI Encounter) | Encounter in which the request was created
authoredOn | Σ | 1..1 | dateTime | Date request signed
requester | Σ | 1..1 | SGHIReference(SGHI Organization | SGHI Patient) | Who/what is requesting service
performer | Σ | 1..* | SGHIReference(SGHI Organization) | Requested performer
location | Σ | 0..* | SGHICodeableReference(SGHI Location) | Requested location Binding: ServiceDeliveryLocationRoleType (example): A location type where services are delivered.
reason | Σ | 1..* | SGHICodeableReference(SGHI Condition | SGHI Observation | SGHI DiagnosticReport) | Explanation/Justification for procedure or service Binding: All LOINC Codes (required)
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
ServiceRequest.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
ServiceRequest.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
ServiceRequest.status | Base | required | RequestStatus | 📍5.0.0 | FHIR Std.
ServiceRequest.intent | Base | required | RequestIntent | 📍5.0.0 | FHIR Std.
ServiceRequest.category | Base | required | Service Request Categories | 📦0.1.0 | This IG
ServiceRequest.priority | Base | required | RequestPriority | 📍5.0.0 | FHIR Std.
ServiceRequest.code | Base | required | All LOINC Codes | 📦0.1.0 | This IG
ServiceRequest.location | Base | example | ServiceDeliveryLocationRoleType | 📦3.0.0 | THO v7.1
ServiceRequest.reason | Base | required | All LOINC Codes | 📦0.1.0 | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
bdystr-1 | error | ServiceRequest | bodyStructure SHALL only be present if bodySite is not present | `bodySite.exists() implies bodyStructure.empty()`
dom-2 | error | ServiceRequest | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | ServiceRequest | 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 | ServiceRequest | 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 | ServiceRequest | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | ServiceRequest | 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()`
prr-1 | error | ServiceRequest | orderDetail SHALL only be present if code is present | `orderDetail.empty() or code.exists()`

This structure is derived from ServiceRequest

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ServiceRequest |  | 0..* | ServiceRequest | A request for a service to be performed
identifier |  | 1..* | Identifier | Identifiers assigned to this order
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..* | SGHIReference(SGHI MedicationRequest | SGHI ServiceRequest) | What request fulfills
replaces |  | 0..* | SGHIReference(SGHI ServiceRequest) | What request replaces
category |  | 1..* | SGHICodeableConcept | Classification of service Binding: Service Request Categories (required)
priority |  | 1..1 | code | routine | urgent | asap | stat
code |  | 0..1 | SGHICodeableReference(ActivityDefinition | PlanDefinition) | What is being requested/ordered Binding: All LOINC Codes (required)
subject |  | 1..1 | SGHIReference(SGHI Patient) | Individual or Entity the service is ordered for
encounter |  | 1..1 | SGHIReference(SGHI Encounter) | Encounter in which the request was created
authoredOn |  | 1..1 | dateTime | Date request signed
requester |  | 1..1 | SGHIReference(SGHI Organization | SGHI Patient) | Who/what is requesting service
performer |  | 1..* | SGHIReference(SGHI Organization) | Requested performer
location |  | 0..* | SGHICodeableReference(SGHI Location) | Requested location
reason |  | 1..* | SGHICodeableReference(SGHI Condition | SGHI Observation | SGHI DiagnosticReport) | Explanation/Justification for procedure or service Binding: All LOINC Codes (required)
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
ServiceRequest.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
ServiceRequest.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
ServiceRequest.category | Base | required | Service Request Categories | 📦0.1.0 | This IG
ServiceRequest.code | Base | required | All LOINC Codes | 📦0.1.0 | This IG
ServiceRequest.reason | Base | required | All LOINC Codes | 📦0.1.0 | This IG

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ServiceRequest | C | 0..* | ServiceRequest | A request for a service to be performed Constraints: bdystr-1, prr-1
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 | Identifiers assigned to this order
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)
instantiatesCanonical | Σ | 0..* | canonical(ActivityDefinition | PlanDefinition) | Instantiates FHIR protocol or definition
instantiatesUri | Σ | 0..* | uri | Instantiates external protocol or definition
basedOn | Σ | 0..* | SGHIReference(SGHI MedicationRequest | SGHI ServiceRequest) | What request fulfills
replaces | Σ | 0..* | SGHIReference(SGHI ServiceRequest) | What request replaces
requisition | Σ | 0..1 | Identifier | Composite Request ID
status | ?!Σ | 1..1 | code | draft | active | on-hold | revoked | completed | entered-in-error | unknown Binding: RequestStatus (required): The status of a service order.
intent | ?!Σ | 1..1 | code | proposal | plan | directive | order + Binding: RequestIntent (required): The kind of service request.
category | Σ | 1..* | SGHICodeableConcept | Classification of service Binding: Service Request Categories (required)
priority | Σ | 1..1 | code | routine | urgent | asap | stat Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
doNotPerform | ?!Σ | 0..1 | boolean | True if service/procedure should not be performed
code | Σ C | 0..1 | SGHICodeableReference(ActivityDefinition | PlanDefinition) | What is being requested/ordered Binding: All LOINC Codes (required)
orderDetail | Σ C | 0..* | BackboneElement | Additional order information
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
parameterFocus |  | 0..1 | CodeableReference(Device | DeviceDefinition | DeviceRequest | SupplyRequest | Medication | MedicationRequest | BiologicallyDerivedProduct | Substance) | The context of the order details by reference
parameter | Σ | 1..* | BackboneElement | The parameter details for the service being requested
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
code | Σ | 1..1 | CodeableConcept | The detail of the order being requested Binding: ServiceRequestOrderDetailParameterCode (example): Codes for order detail parameters.
value[x] | Σ | 1..1 |  | The value for the order detail
valueQuantity |  |  | Quantity |
valueRatio |  |  | Ratio |
valueRange |  |  | Range |
valueBoolean |  |  | boolean |
valueCodeableConcept |  |  | CodeableConcept |
valueString |  |  | string |
valuePeriod |  |  | Period |
quantity[x] | Σ | 0..1 |  | Service amount
quantityQuantity |  |  | Quantity |
quantityRatio |  |  | Ratio |
quantityRange |  |  | Range |
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Individual or Entity the service is ordered for
focus | Σ | 0..* | Reference(Resource) | What the service request is about, when it is not about the subject of record
encounter | Σ | 1..1 | SGHIReference(SGHI Encounter) | Encounter in which the request was created
occurrence[x] | Σ | 0..1 |  | When service should occur
occurrenceDateTime |  |  | dateTime |
occurrencePeriod |  |  | Period |
occurrenceTiming |  |  | Timing |
asNeeded[x] | Σ | 0..1 |  | Preconditions for service Binding: SNOMEDCTMedicationAsNeededReasonCodes (example): A coded concept identifying the pre-condition that should hold prior to performing a procedure. For example "pain", "on flare-up", etc.
asNeededBoolean |  |  | boolean |
asNeededCodeableConcept |  |  | CodeableConcept |
authoredOn | Σ | 1..1 | dateTime | Date request signed
requester | Σ | 1..1 | SGHIReference(SGHI Organization | SGHI Patient) | Who/what is requesting service
performerType | Σ | 0..1 | CodeableConcept | Performer role Binding: ParticipantRoles (example): Indicates specific responsibility of an individual within the care team, such as "Primary physician", "Team coordinator", "Caregiver", etc.
performer | Σ | 1..* | SGHIReference(SGHI Organization) | Requested performer
location | Σ | 0..* | SGHICodeableReference(SGHI Location) | Requested location Binding: ServiceDeliveryLocationRoleType (example): A location type where services are delivered.
reason | Σ | 1..* | SGHICodeableReference(SGHI Condition | SGHI Observation | SGHI DiagnosticReport) | Explanation/Justification for procedure or service Binding: All LOINC Codes (required)
insurance |  | 0..* | Reference(Coverage | ClaimResponse) | Associated insurance coverage
supportingInfo |  | 0..* | CodeableReference(Resource) | Additional clinical information
specimen | Σ | 0..* | Reference(Specimen) | Procedure Samples
bodySite | Σ C | 0..* | CodeableConcept | Coded location on Body Binding: SNOMEDCTBodyStructures (example): SNOMED CT Body site concepts
bodyStructure | Σ C | 0..1 | Reference(BodyStructure) | BodyStructure-based location on the body
note |  | 0..* | Annotation | Comments
patientInstruction |  | 0..* | BackboneElement | Patient or consumer-oriented instructions
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
instruction[x] | Σ | 0..1 |  | Patient or consumer-oriented instructions
instructionMarkdown |  |  | markdown |
instructionReference |  |  | Reference(DocumentReference) |
relevantHistory |  | 0..* | Reference(Provenance) | Request provenance
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
ServiceRequest.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
ServiceRequest.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
ServiceRequest.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
ServiceRequest.status | Base | required | RequestStatus | 📍5.0.0 | FHIR Std.
ServiceRequest.intent | Base | required | RequestIntent | 📍5.0.0 | FHIR Std.
ServiceRequest.category | Base | required | Service Request Categories | 📦0.1.0 | This IG
ServiceRequest.priority | Base | required | RequestPriority | 📍5.0.0 | FHIR Std.
ServiceRequest.code | Base | required | All LOINC Codes | 📦0.1.0 | This IG
ServiceRequest.orderDetail.​parameter.code | Base | example | Servicerequest OrderDetail Parameter Code | 📍5.0.0 | FHIR Std.
ServiceRequest.asNeeded[x] | Base | example | SNOMED CT Medication As Needed Reason Codes | 📍5.0.0 | FHIR Std.
ServiceRequest.performerType | Base | example | Participant Roles | 📍5.0.0 | FHIR Std.
ServiceRequest.location | Base | example | ServiceDeliveryLocationRoleType | 📦3.0.0 | THO v7.1
ServiceRequest.reason | Base | required | All LOINC Codes | 📦0.1.0 | This IG
ServiceRequest.bodySite | Base | example | SNOMED CT Body Structures | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
bdystr-1 | error | ServiceRequest | bodyStructure SHALL only be present if bodySite is not present | `bodySite.exists() implies bodyStructure.empty()`
dom-2 | error | ServiceRequest | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | ServiceRequest | 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 | ServiceRequest | 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 | ServiceRequest | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | ServiceRequest | 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()`
prr-1 | error | ServiceRequest | orderDetail SHALL only be present if code is present | `orderDetail.empty() or code.exists()`

This structure is derived from ServiceRequest

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 MedicationRequest (https://fhir.slade360.co.ke/fhir/StructureDefinition/medicationrequest)
- SGHI ServiceRequest (https://fhir.slade360.co.ke/fhir/StructureDefinition/servicerequest)
- SGHI CodeableReference (https://fhir.slade360.co.ke/fhir/StructureDefinition/codeable-reference)
- SGHI Patient (https://fhir.slade360.co.ke/fhir/StructureDefinition/patient)
- SGHI Encounter (https://fhir.slade360.co.ke/fhir/StructureDefinition/encounter)
- SGHI Location (https://fhir.slade360.co.ke/fhir/StructureDefinition/fhir-location)
- SGHI Condition (https://fhir.slade360.co.ke/fhir/StructureDefinition/condition)
- SGHI Observation (https://fhir.slade360.co.ke/fhir/StructureDefinition/observation)
- SGHI DiagnosticReport (https://fhir.slade360.co.ke/fhir/StructureDefinition/diagnosticreport)

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ServiceRequest | C | 0..* | ServiceRequest | A request for a service to be performed Constraints: bdystr-1, prr-1
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 | Identifiers assigned to this order
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..* | SGHIReference(SGHI MedicationRequest | SGHI ServiceRequest) | What request fulfills
replaces | Σ | 0..* | SGHIReference(SGHI ServiceRequest) | What request replaces
status | ?!Σ | 1..1 | code | draft | active | on-hold | revoked | completed | entered-in-error | unknown Binding: RequestStatus (required): The status of a service order.
intent | ?!Σ | 1..1 | code | proposal | plan | directive | order + Binding: RequestIntent (required): The kind of service request.
category | Σ | 1..* | SGHICodeableConcept | Classification of service Binding: Service Request Categories (required)
priority | Σ | 1..1 | code | routine | urgent | asap | stat Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
doNotPerform | ?!Σ | 0..1 | boolean | True if service/procedure should not be performed
code | Σ C | 0..1 | SGHICodeableReference(ActivityDefinition | PlanDefinition) | What is being requested/ordered Binding: All LOINC Codes (required)
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Individual or Entity the service is ordered for
encounter | Σ | 1..1 | SGHIReference(SGHI Encounter) | Encounter in which the request was created
authoredOn | Σ | 1..1 | dateTime | Date request signed
requester | Σ | 1..1 | SGHIReference(SGHI Organization | SGHI Patient) | Who/what is requesting service
performer | Σ | 1..* | SGHIReference(SGHI Organization) | Requested performer
location | Σ | 0..* | SGHICodeableReference(SGHI Location) | Requested location Binding: ServiceDeliveryLocationRoleType (example): A location type where services are delivered.
reason | Σ | 1..* | SGHICodeableReference(SGHI Condition | SGHI Observation | SGHI DiagnosticReport) | Explanation/Justification for procedure or service Binding: All LOINC Codes (required)
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
ServiceRequest.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
ServiceRequest.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
ServiceRequest.status | Base | required | RequestStatus | 📍5.0.0 | FHIR Std.
ServiceRequest.intent | Base | required | RequestIntent | 📍5.0.0 | FHIR Std.
ServiceRequest.category | Base | required | Service Request Categories | 📦0.1.0 | This IG
ServiceRequest.priority | Base | required | RequestPriority | 📍5.0.0 | FHIR Std.
ServiceRequest.code | Base | required | All LOINC Codes | 📦0.1.0 | This IG
ServiceRequest.location | Base | example | ServiceDeliveryLocationRoleType | 📦3.0.0 | THO v7.1
ServiceRequest.reason | Base | required | All LOINC Codes | 📦0.1.0 | This IG

#### Constraints

Id | Grade | Path(s) | Description | Expression
bdystr-1 | error | ServiceRequest | bodyStructure SHALL only be present if bodySite is not present | `bodySite.exists() implies bodyStructure.empty()`
dom-2 | error | ServiceRequest | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | ServiceRequest | 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 | ServiceRequest | 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 | ServiceRequest | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | ServiceRequest | 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()`
prr-1 | error | ServiceRequest | orderDetail SHALL only be present if code is present | `orderDetail.empty() or code.exists()`

Differential View

This structure is derived from ServiceRequest

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ServiceRequest |  | 0..* | ServiceRequest | A request for a service to be performed
identifier |  | 1..* | Identifier | Identifiers assigned to this order
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..* | SGHIReference(SGHI MedicationRequest | SGHI ServiceRequest) | What request fulfills
replaces |  | 0..* | SGHIReference(SGHI ServiceRequest) | What request replaces
category |  | 1..* | SGHICodeableConcept | Classification of service Binding: Service Request Categories (required)
priority |  | 1..1 | code | routine | urgent | asap | stat
code |  | 0..1 | SGHICodeableReference(ActivityDefinition | PlanDefinition) | What is being requested/ordered Binding: All LOINC Codes (required)
subject |  | 1..1 | SGHIReference(SGHI Patient) | Individual or Entity the service is ordered for
encounter |  | 1..1 | SGHIReference(SGHI Encounter) | Encounter in which the request was created
authoredOn |  | 1..1 | dateTime | Date request signed
requester |  | 1..1 | SGHIReference(SGHI Organization | SGHI Patient) | Who/what is requesting service
performer |  | 1..* | SGHIReference(SGHI Organization) | Requested performer
location |  | 0..* | SGHICodeableReference(SGHI Location) | Requested location
reason |  | 1..* | SGHICodeableReference(SGHI Condition | SGHI Observation | SGHI DiagnosticReport) | Explanation/Justification for procedure or service Binding: All LOINC Codes (required)
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
ServiceRequest.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
ServiceRequest.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
ServiceRequest.category | Base | required | Service Request Categories | 📦0.1.0 | This IG
ServiceRequest.code | Base | required | All LOINC Codes | 📦0.1.0 | This IG
ServiceRequest.reason | Base | required | All LOINC Codes | 📦0.1.0 | This IG

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
ServiceRequest | C | 0..* | ServiceRequest | A request for a service to be performed Constraints: bdystr-1, prr-1
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 | Identifiers assigned to this order
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)
instantiatesCanonical | Σ | 0..* | canonical(ActivityDefinition | PlanDefinition) | Instantiates FHIR protocol or definition
instantiatesUri | Σ | 0..* | uri | Instantiates external protocol or definition
basedOn | Σ | 0..* | SGHIReference(SGHI MedicationRequest | SGHI ServiceRequest) | What request fulfills
replaces | Σ | 0..* | SGHIReference(SGHI ServiceRequest) | What request replaces
requisition | Σ | 0..1 | Identifier | Composite Request ID
status | ?!Σ | 1..1 | code | draft | active | on-hold | revoked | completed | entered-in-error | unknown Binding: RequestStatus (required): The status of a service order.
intent | ?!Σ | 1..1 | code | proposal | plan | directive | order + Binding: RequestIntent (required): The kind of service request.
category | Σ | 1..* | SGHICodeableConcept | Classification of service Binding: Service Request Categories (required)
priority | Σ | 1..1 | code | routine | urgent | asap | stat Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
doNotPerform | ?!Σ | 0..1 | boolean | True if service/procedure should not be performed
code | Σ C | 0..1 | SGHICodeableReference(ActivityDefinition | PlanDefinition) | What is being requested/ordered Binding: All LOINC Codes (required)
orderDetail | Σ C | 0..* | BackboneElement | Additional order information
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
parameterFocus |  | 0..1 | CodeableReference(Device | DeviceDefinition | DeviceRequest | SupplyRequest | Medication | MedicationRequest | BiologicallyDerivedProduct | Substance) | The context of the order details by reference
parameter | Σ | 1..* | BackboneElement | The parameter details for the service being requested
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
code | Σ | 1..1 | CodeableConcept | The detail of the order being requested Binding: ServiceRequestOrderDetailParameterCode (example): Codes for order detail parameters.
value[x] | Σ | 1..1 |  | The value for the order detail
valueQuantity |  |  | Quantity |
valueRatio |  |  | Ratio |
valueRange |  |  | Range |
valueBoolean |  |  | boolean |
valueCodeableConcept |  |  | CodeableConcept |
valueString |  |  | string |
valuePeriod |  |  | Period |
quantity[x] | Σ | 0..1 |  | Service amount
quantityQuantity |  |  | Quantity |
quantityRatio |  |  | Ratio |
quantityRange |  |  | Range |
subject | Σ | 1..1 | SGHIReference(SGHI Patient) | Individual or Entity the service is ordered for
focus | Σ | 0..* | Reference(Resource) | What the service request is about, when it is not about the subject of record
encounter | Σ | 1..1 | SGHIReference(SGHI Encounter) | Encounter in which the request was created
occurrence[x] | Σ | 0..1 |  | When service should occur
occurrenceDateTime |  |  | dateTime |
occurrencePeriod |  |  | Period |
occurrenceTiming |  |  | Timing |
asNeeded[x] | Σ | 0..1 |  | Preconditions for service Binding: SNOMEDCTMedicationAsNeededReasonCodes (example): A coded concept identifying the pre-condition that should hold prior to performing a procedure. For example "pain", "on flare-up", etc.
asNeededBoolean |  |  | boolean |
asNeededCodeableConcept |  |  | CodeableConcept |
authoredOn | Σ | 1..1 | dateTime | Date request signed
requester | Σ | 1..1 | SGHIReference(SGHI Organization | SGHI Patient) | Who/what is requesting service
performerType | Σ | 0..1 | CodeableConcept | Performer role Binding: ParticipantRoles (example): Indicates specific responsibility of an individual within the care team, such as "Primary physician", "Team coordinator", "Caregiver", etc.
performer | Σ | 1..* | SGHIReference(SGHI Organization) | Requested performer
location | Σ | 0..* | SGHICodeableReference(SGHI Location) | Requested location Binding: ServiceDeliveryLocationRoleType (example): A location type where services are delivered.
reason | Σ | 1..* | SGHICodeableReference(SGHI Condition | SGHI Observation | SGHI DiagnosticReport) | Explanation/Justification for procedure or service Binding: All LOINC Codes (required)
insurance |  | 0..* | Reference(Coverage | ClaimResponse) | Associated insurance coverage
supportingInfo |  | 0..* | CodeableReference(Resource) | Additional clinical information
specimen | Σ | 0..* | Reference(Specimen) | Procedure Samples
bodySite | Σ C | 0..* | CodeableConcept | Coded location on Body Binding: SNOMEDCTBodyStructures (example): SNOMED CT Body site concepts
bodyStructure | Σ C | 0..1 | Reference(BodyStructure) | BodyStructure-based location on the body
note |  | 0..* | Annotation | Comments
patientInstruction |  | 0..* | BackboneElement | Patient or consumer-oriented instructions
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
instruction[x] | Σ | 0..1 |  | Patient or consumer-oriented instructions
instructionMarkdown |  |  | markdown |
instructionReference |  |  | Reference(DocumentReference) |
relevantHistory |  | 0..* | Reference(Provenance) | Request provenance
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
ServiceRequest.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
ServiceRequest.identifier.​use | Base | required | IdentifierUse | 📦5.0.0 | FHIR Std.
ServiceRequest.identifier.​type | Base | required | SGHI Default Identifier Types | 📦0.1.0 | This IG
ServiceRequest.status | Base | required | RequestStatus | 📍5.0.0 | FHIR Std.
ServiceRequest.intent | Base | required | RequestIntent | 📍5.0.0 | FHIR Std.
ServiceRequest.category | Base | required | Service Request Categories | 📦0.1.0 | This IG
ServiceRequest.priority | Base | required | RequestPriority | 📍5.0.0 | FHIR Std.
ServiceRequest.code | Base | required | All LOINC Codes | 📦0.1.0 | This IG
ServiceRequest.orderDetail.​parameter.code | Base | example | Servicerequest OrderDetail Parameter Code | 📍5.0.0 | FHIR Std.
ServiceRequest.asNeeded[x] | Base | example | SNOMED CT Medication As Needed Reason Codes | 📍5.0.0 | FHIR Std.
ServiceRequest.performerType | Base | example | Participant Roles | 📍5.0.0 | FHIR Std.
ServiceRequest.location | Base | example | ServiceDeliveryLocationRoleType | 📦3.0.0 | THO v7.1
ServiceRequest.reason | Base | required | All LOINC Codes | 📦0.1.0 | This IG
ServiceRequest.bodySite | Base | example | SNOMED CT Body Structures | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
bdystr-1 | error | ServiceRequest | bodyStructure SHALL only be present if bodySite is not present | `bodySite.exists() implies bodyStructure.empty()`
dom-2 | error | ServiceRequest | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | ServiceRequest | 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 | ServiceRequest | 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 | ServiceRequest | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | ServiceRequest | 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()`
prr-1 | error | ServiceRequest | orderDetail SHALL only be present if code is present | `orderDetail.empty() or code.exists()`

This structure is derived from ServiceRequest

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 MedicationRequest (https://fhir.slade360.co.ke/fhir/StructureDefinition/medicationrequest)
- SGHI ServiceRequest (https://fhir.slade360.co.ke/fhir/StructureDefinition/servicerequest)
- SGHI CodeableReference (https://fhir.slade360.co.ke/fhir/StructureDefinition/codeable-reference)
- SGHI Patient (https://fhir.slade360.co.ke/fhir/StructureDefinition/patient)
- SGHI Encounter (https://fhir.slade360.co.ke/fhir/StructureDefinition/encounter)
- SGHI Location (https://fhir.slade360.co.ke/fhir/StructureDefinition/fhir-location)
- SGHI Condition (https://fhir.slade360.co.ke/fhir/StructureDefinition/condition)
- SGHI Observation (https://fhir.slade360.co.ke/fhir/StructureDefinition/observation)
- SGHI DiagnosticReport (https://fhir.slade360.co.ke/fhir/StructureDefinition/diagnosticreport)

Other representations of profile: CSV, Excel, Schematron