Amakomaya Nepal FHIR Implementation Guide
2.0.0 - ci-build
Nepal
Amakomaya Nepal FHIR Implementation Guide - Local Development build (v2.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: https://fhir.amakomaya.com/StructureDefinition/amk-healthcare-service | Version: 2.0.0 | |||
| Active as of 2026-08-21 | Computable Name: AMKHealthcareService | |||
Copyright/Legal: Used by permission of HL7 International, all rights reserved Creative Commons License |
||||
Minimal profile for describing healthcare services provided by an organization at one or more locations.
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: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | HealthcareService | The details of a healthcare service available at a location | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Resource | Contained, inline Resources | |
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url |
![]() ![]() |
?!Σ | 1..1 | boolean | Whether this HealthcareService record is in active use Required Pattern: true |
![]() ![]() |
Σ | 1..1 | Reference(AMK Organization) | Organization that provides this service |
![]() ![]() |
Σ | 0..1 | CodeableConcept | Broad category of service being performed or delivered Binding: ServiceCategory (example): A category of the service(s) that could be provided. |
![]() ![]() ![]() |
Σ | 1..* | Coding | Code defined by a terminology system |
![]() ![]() |
Σ | 0..1 | CodeableConcept | Type of service that may be delivered or performed Binding: ServiceType (example): Additional details about where the content was created (e.g. clinical specialty). |
![]() ![]() ![]() |
Σ | 1..* | Coding | Code defined by a terminology system |
![]() ![]() |
Σ | 1..* | Reference(AMK Location) | Location(s) where service may be provided |
![]() ![]() |
Σ | 1..1 | string | Description of service as presented to a consumer while searching |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| HealthcareService.category | Base | example | Service Category | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.type | Base | example | Service Type | 📍6.0.0-ballot5 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | HealthcareService | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | HealthcareService | 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.trace('id') in %resource.descendants().select(reference | as(uri))) or descendants().where(reference='#' | as(uri)='#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | HealthcareService | 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 | HealthcareService | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | HealthcareService | 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())
|
This structure is derived from HealthcareService
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | HealthcareService | The details of a healthcare service available at a location | |
![]() ![]() |
1..1 | boolean | Whether this HealthcareService record is in active use Required Pattern: true | |
![]() ![]() |
1..1 | Reference(AMK Organization) | Organization that provides this service | |
![]() ![]() |
0..1 | CodeableConcept | Broad category of service being performed or delivered | |
![]() ![]() ![]() |
1..* | Coding | Code defined by a terminology system | |
![]() ![]() |
0..1 | CodeableConcept | Type of service that may be delivered or performed | |
![]() ![]() ![]() |
1..* | Coding | Code defined by a terminology system | |
![]() ![]() |
1..* | Reference(AMK Location) | Location(s) where service may be provided | |
![]() ![]() |
1..1 | string | Description of service as presented to a consumer while searching | |
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | HealthcareService | The details of a healthcare service available at a location | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
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 | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url | ||||
![]() ![]() |
Σ | 0..* | Identifier | External identifiers for this item | ||||
![]() ![]() |
?!Σ | 1..1 | boolean | Whether this HealthcareService record is in active use Required Pattern: true | ||||
![]() ![]() |
Σ | 1..1 | Reference(AMK Organization) | Organization that provides this service | ||||
![]() ![]() |
0..* | Reference(HealthcareService) | The service within which this service is offered | |||||
![]() ![]() |
Σ | 0..1 | CodeableConcept | Broad category of service being performed or delivered Binding: ServiceCategory (example): A category of the service(s) that could be provided. | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
Σ | 1..* | Coding | Code defined by a terminology system | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Plain text representation of the concept | ||||
![]() ![]() |
Σ | 0..1 | CodeableConcept | Type of service that may be delivered or performed Binding: ServiceType (example): Additional details about where the content was created (e.g. clinical specialty). | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
Σ | 1..* | Coding | Code defined by a terminology system | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Plain text representation of the concept | ||||
![]() ![]() |
Σ | 0..* | CodeableConcept | Specialties handled by the HealthcareService Binding: PracticeSettingCodeValueSet (example): A specialty that a healthcare service may provide. | ||||
![]() ![]() |
Σ | 1..* | Reference(AMK Location) | Location(s) where service may be provided | ||||
![]() ![]() |
Σ | 1..1 | string | Description of service as presented to a consumer while searching | ||||
![]() ![]() |
Σ | 0..1 | markdown | Additional description and/or any specific issues not covered elsewhere | ||||
![]() ![]() |
0..1 | markdown | Extra details about the service that can't be placed in the other fields | |||||
![]() ![]() |
Σ | 0..1 | Attachment | Facilitates quick identification of the service | ||||
![]() ![]() |
0..* | ExtendedContactDetail | Official contact details for the HealthcareService | |||||
![]() ![]() |
0..* | Reference(Location) | Location(s) service is intended for/available to | |||||
![]() ![]() |
0..* | CodeableConcept | Conditions under which service is available/offered Binding: ServiceProvisionConditions (example): The code(s) that detail the conditions under which the healthcare service is available/offered. | |||||
![]() ![]() |
C | 0..* | BackboneElement | Specific eligibility requirements required to use the service Constraints: hcs-1 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Slice: Unordered, Open by value:url | ||||
![]() ![]() ![]() |
C | 0..1 | CodeableConcept | Coded value for the eligibility Binding: Eligibility (example): Coded values under which a specific service is made available. | ||||
![]() ![]() ![]() |
C | 0..1 | Value associated with the eligibility code | |||||
![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() |
Reference(Any) | |||||||
![]() ![]() ![]() |
0..1 | markdown | Describes the eligibility conditions for the service | |||||
![]() ![]() ![]() |
0..1 | Period | The period this eligibility rule applies | |||||
![]() ![]() |
0..* | CodeableConcept | Programs that this service is applicable to Binding: Program (example): Government or local programs that this service applies to. | |||||
![]() ![]() |
0..* | CodeableConcept | Collection of characteristics (attributes) Binding: ServiceMode (example): A custom attribute that could be provided at a service (e.g. Wheelchair accessibility). | |||||
![]() ![]() |
0..* | CodeableConcept | The language that this service is offered in Binding: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
0..* | CodeableConcept | Ways that the service accepts referrals Binding: ReferralMethod (example): The methods of referral can be used when referring to a specific HealthcareService resource. | |||||
![]() ![]() |
0..1 | boolean | A referral is required for access to this service | |||||
![]() ![]() |
0..1 | boolean | An appointment is required for access to this service | |||||
![]() ![]() |
0..1 | Availability | Times the healthcare service is available (including exceptions) | |||||
![]() ![]() |
0..* | Reference(Endpoint) | Technical endpoints providing access to electronic services operated for the healthcare service | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| HealthcareService.language | Base | required | All Languages | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.category | Base | example | Service Category | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.type | Base | example | Service Type | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.specialty | Base | example | Practice Setting Code Value Set | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.serviceProvisionCode | Base | example | Service Provision Conditions | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.eligibility.code | Base | example | Eligibility Characteristics | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.program | Base | example | Program | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.characteristic | Base | example | Service Mode | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.communication | Base | required | All Languages | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.referralMethod | Base | example | Referral Method | 📍6.0.0-ballot5 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | HealthcareService | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | HealthcareService | 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.trace('id') in %resource.descendants().select(reference | as(uri))) or descendants().where(reference='#' | as(uri)='#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | HealthcareService | 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 | HealthcareService | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | HealthcareService | 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())
|
| hcs-1 | error | HealthcareService.eligibility | To use an eligibility value a code must also be provided to determine the type of eligibility the value applies to. |
value.exists() implies code.exists()
|
This structure is derived from HealthcareService
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | HealthcareService | The details of a healthcare service available at a location | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Resource | Contained, inline Resources | |
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url |
![]() ![]() |
?!Σ | 1..1 | boolean | Whether this HealthcareService record is in active use Required Pattern: true |
![]() ![]() |
Σ | 1..1 | Reference(AMK Organization) | Organization that provides this service |
![]() ![]() |
Σ | 0..1 | CodeableConcept | Broad category of service being performed or delivered Binding: ServiceCategory (example): A category of the service(s) that could be provided. |
![]() ![]() ![]() |
Σ | 1..* | Coding | Code defined by a terminology system |
![]() ![]() |
Σ | 0..1 | CodeableConcept | Type of service that may be delivered or performed Binding: ServiceType (example): Additional details about where the content was created (e.g. clinical specialty). |
![]() ![]() ![]() |
Σ | 1..* | Coding | Code defined by a terminology system |
![]() ![]() |
Σ | 1..* | Reference(AMK Location) | Location(s) where service may be provided |
![]() ![]() |
Σ | 1..1 | string | Description of service as presented to a consumer while searching |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| HealthcareService.category | Base | example | Service Category | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.type | Base | example | Service Type | 📍6.0.0-ballot5 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | HealthcareService | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | HealthcareService | 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.trace('id') in %resource.descendants().select(reference | as(uri))) or descendants().where(reference='#' | as(uri)='#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | HealthcareService | 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 | HealthcareService | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | HealthcareService | 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())
|
Differential View
This structure is derived from HealthcareService
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | HealthcareService | The details of a healthcare service available at a location | |
![]() ![]() |
1..1 | boolean | Whether this HealthcareService record is in active use Required Pattern: true | |
![]() ![]() |
1..1 | Reference(AMK Organization) | Organization that provides this service | |
![]() ![]() |
0..1 | CodeableConcept | Broad category of service being performed or delivered | |
![]() ![]() ![]() |
1..* | Coding | Code defined by a terminology system | |
![]() ![]() |
0..1 | CodeableConcept | Type of service that may be delivered or performed | |
![]() ![]() ![]() |
1..* | Coding | Code defined by a terminology system | |
![]() ![]() |
1..* | Reference(AMK Location) | Location(s) where service may be provided | |
![]() ![]() |
1..1 | string | Description of service as presented to a consumer while searching | |
Documentation for this format | ||||
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | HealthcareService | The details of a healthcare service available at a location | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
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 | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url | ||||
![]() ![]() |
Σ | 0..* | Identifier | External identifiers for this item | ||||
![]() ![]() |
?!Σ | 1..1 | boolean | Whether this HealthcareService record is in active use Required Pattern: true | ||||
![]() ![]() |
Σ | 1..1 | Reference(AMK Organization) | Organization that provides this service | ||||
![]() ![]() |
0..* | Reference(HealthcareService) | The service within which this service is offered | |||||
![]() ![]() |
Σ | 0..1 | CodeableConcept | Broad category of service being performed or delivered Binding: ServiceCategory (example): A category of the service(s) that could be provided. | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
Σ | 1..* | Coding | Code defined by a terminology system | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Plain text representation of the concept | ||||
![]() ![]() |
Σ | 0..1 | CodeableConcept | Type of service that may be delivered or performed Binding: ServiceType (example): Additional details about where the content was created (e.g. clinical specialty). | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
Σ | 1..* | Coding | Code defined by a terminology system | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Plain text representation of the concept | ||||
![]() ![]() |
Σ | 0..* | CodeableConcept | Specialties handled by the HealthcareService Binding: PracticeSettingCodeValueSet (example): A specialty that a healthcare service may provide. | ||||
![]() ![]() |
Σ | 1..* | Reference(AMK Location) | Location(s) where service may be provided | ||||
![]() ![]() |
Σ | 1..1 | string | Description of service as presented to a consumer while searching | ||||
![]() ![]() |
Σ | 0..1 | markdown | Additional description and/or any specific issues not covered elsewhere | ||||
![]() ![]() |
0..1 | markdown | Extra details about the service that can't be placed in the other fields | |||||
![]() ![]() |
Σ | 0..1 | Attachment | Facilitates quick identification of the service | ||||
![]() ![]() |
0..* | ExtendedContactDetail | Official contact details for the HealthcareService | |||||
![]() ![]() |
0..* | Reference(Location) | Location(s) service is intended for/available to | |||||
![]() ![]() |
0..* | CodeableConcept | Conditions under which service is available/offered Binding: ServiceProvisionConditions (example): The code(s) that detail the conditions under which the healthcare service is available/offered. | |||||
![]() ![]() |
C | 0..* | BackboneElement | Specific eligibility requirements required to use the service Constraints: hcs-1 | ||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Slice: Unordered, Open by value:url | ||||
![]() ![]() ![]() |
C | 0..1 | CodeableConcept | Coded value for the eligibility Binding: Eligibility (example): Coded values under which a specific service is made available. | ||||
![]() ![]() ![]() |
C | 0..1 | Value associated with the eligibility code | |||||
![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() |
Quantity | |||||||
![]() ![]() ![]() ![]() |
Range | |||||||
![]() ![]() ![]() ![]() |
Reference(Any) | |||||||
![]() ![]() ![]() |
0..1 | markdown | Describes the eligibility conditions for the service | |||||
![]() ![]() ![]() |
0..1 | Period | The period this eligibility rule applies | |||||
![]() ![]() |
0..* | CodeableConcept | Programs that this service is applicable to Binding: Program (example): Government or local programs that this service applies to. | |||||
![]() ![]() |
0..* | CodeableConcept | Collection of characteristics (attributes) Binding: ServiceMode (example): A custom attribute that could be provided at a service (e.g. Wheelchair accessibility). | |||||
![]() ![]() |
0..* | CodeableConcept | The language that this service is offered in Binding: AllLanguages (required): IETF language tag for a human language
| |||||
![]() ![]() |
0..* | CodeableConcept | Ways that the service accepts referrals Binding: ReferralMethod (example): The methods of referral can be used when referring to a specific HealthcareService resource. | |||||
![]() ![]() |
0..1 | boolean | A referral is required for access to this service | |||||
![]() ![]() |
0..1 | boolean | An appointment is required for access to this service | |||||
![]() ![]() |
0..1 | Availability | Times the healthcare service is available (including exceptions) | |||||
![]() ![]() |
0..* | Reference(Endpoint) | Technical endpoints providing access to electronic services operated for the healthcare service | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| HealthcareService.language | Base | required | All Languages | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.category | Base | example | Service Category | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.type | Base | example | Service Type | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.specialty | Base | example | Practice Setting Code Value Set | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.serviceProvisionCode | Base | example | Service Provision Conditions | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.eligibility.code | Base | example | Eligibility Characteristics | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.program | Base | example | Program | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.characteristic | Base | example | Service Mode | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.communication | Base | required | All Languages | 📍6.0.0-ballot5 | FHIR Std. |
| HealthcareService.referralMethod | Base | example | Referral Method | 📍6.0.0-ballot5 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | HealthcareService | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | HealthcareService | 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.trace('id') in %resource.descendants().select(reference | as(uri))) or descendants().where(reference='#' | as(uri)='#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | HealthcareService | 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 | HealthcareService | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | HealthcareService | 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())
|
| hcs-1 | error | HealthcareService.eligibility | To use an eligibility value a code must also be provided to determine the type of eligibility the value applies to. |
value.exists() implies code.exists()
|
This structure is derived from HealthcareService
Other representations of profile: CSV, Excel, Schematron