Botswana FHIR Implementation Guide
1.0.0 - ci-build
Botswana FHIR Implementation Guide, published by Jembi Health Systems. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/jembi/botswana-hie-fhir-ig/ and changes regularly. See the Directory of published versions
| Official URL: http://moh.bw.org/StructureDefinition/patient-identity-cross-reference | Version: 1.0.0 | |||
| Active as of 2026-10-13 | Computable Name: RestrictedPatient | |||
Is used by the Client Registry to re-identify the patient with his/her corresponding longitudinal clinical record.
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..* | Patient | Information about an individual or animal receiving health care services | |
![]() ![]() |
0..1 | id | Must be the same ID as the patient resource that suppplied the personal data during creation | |
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |
![]() ![]() |
0..1 | Patient | Contained patient data | |
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |
![]() ![]() |
1..* | Identifier | An identifier for this patient Slice: Unordered, Open by value:system Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
1..* | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/mpi | |
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/mrn | |
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/internalid | |
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/pims | |
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/openmrs | |
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() |
0..1 | Reference(Service Provider) | Organization that is the custodian of the patient record | |
![]() ![]() |
0..* | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual Slice: Unordered, Open by value:other.display Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | Reference(Patient | RelatedPerson) | The other patient or related person resource that the link refers to | |
![]() ![]() ![]() ![]() |
1..1 | code | replaced-by | replaces | refer | seealso Binding: LinkType (required): The type of link between this patient resource and another Patient resource, or Patient/RelatedPerson when using the seealso code | |
![]() ![]() ![]() |
0..1 | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual | |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | Reference(Patient | RelatedPerson) | The other patient or related person resource that the link refers to | |
![]() ![]() ![]() ![]() ![]() |
C | 1..1 | string | Literal reference, Relative, internal or absolute URL |
![]() ![]() ![]() ![]() ![]() |
C | 1..1 | string | Text alternative for the resource Required Pattern: Patient data provided by Client Registry |
![]() ![]() ![]() ![]() |
1..1 | code | replaced-by | replaces | refer | seealso Binding: LinkType (required): The type of link between this patient resource and another Patient resource, or Patient/RelatedPerson when using the seealso code Required Pattern: seealso | |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Patient.identifier:MasterPatientIndex.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:MRN.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:Internal.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:PIMS.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:OpenMRS.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.communication.language | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| Patient.link.type | Base | required | Link Type | 📍5.0.0 | FHIR Std. |
| Patient.link:PatientData.type | Base | required | Link Type | 📍5.0.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Patient | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Patient | 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 | Patient | 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 | Patient | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Patient | 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()
|
This structure is derived from Patient
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | Patient | Information about an individual or animal receiving health care services | |
![]() ![]() |
0..1 | id | Must be the same ID as the patient resource that suppplied the personal data during creation | |
![]() ![]() |
0..1 | Patient | Contained patient data | |
![]() ![]() |
1..* | Identifier | An identifier for this patient Slice: Unordered, Open by value:system Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
1..* | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/mpi | |
![]() ![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/mrn | |
![]() ![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/internalid | |
![]() ![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/pims | |
![]() ![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/openmrs | |
![]() ![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() |
0..0 | Whether this patient's record is in active use | ||
![]() ![]() |
0..0 | A name associated with the patient | ||
![]() ![]() |
0..0 | A contact detail for the individual | ||
![]() ![]() |
0..0 | male | female | other | unknown | ||
![]() ![]() |
0..0 | The date of birth for the individual | ||
![]() ![]() |
0..0 | Indicates if the individual is deceased or not | ||
![]() ![]() |
0..0 | An address for the individual | ||
![]() ![]() |
0..0 | Marital (civil) status of a patient | ||
![]() ![]() |
0..0 | Whether patient is part of a multiple birth | ||
![]() ![]() |
0..0 | Image of the patient | ||
![]() ![]() |
0..0 | A contact party (e.g. guardian, partner, friend) for the patient | ||
![]() ![]() |
0..0 | A language which may be used to communicate with the patient about his or her health | ||
![]() ![]() |
0..0 | Patient's nominated primary care provider | ||
![]() ![]() |
0..1 | Reference(Service Provider) | Organization that is the custodian of the patient record | |
![]() ![]() |
0..* | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual Slice: Unordered, Open by value:other.display Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
0..1 | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..1 | string | Literal reference, Relative, internal or absolute URL | |
![]() ![]() ![]() ![]() ![]() |
1..1 | string | Text alternative for the resource Required Pattern: Patient data provided by Client Registry | |
![]() ![]() ![]() ![]() |
1..1 | code | replaced-by | replaces | refer | seealso Required Pattern: seealso | |
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | Patient | Information about an individual or animal receiving health care services | |||||
![]() ![]() |
0..1 | id | Must be the same ID as the patient resource that suppplied the personal data during creation | |||||
![]() ![]() |
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..1 | Patient | Contained patient data | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |||||
![]() ![]() |
1..* | Identifier | An identifier for this patient Slice: Unordered, Open by value:system Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |||||
![]() ![]() ![]() |
1..* | Identifier | An identifier for this patient | |||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |||||
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | |||||
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/mpi | |||||
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() ![]() |
0..1 | Period | Time period when id is/was valid for use | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Organization) | Organization that issued id (may be just text) | |||||
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |||||
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | |||||
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/mrn | |||||
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() ![]() |
0..1 | Period | Time period when id is/was valid for use | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Organization) | Organization that issued id (may be just text) | |||||
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |||||
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | |||||
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/internalid | |||||
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() ![]() |
0..1 | Period | Time period when id is/was valid for use | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Organization) | Organization that issued id (may be just text) | |||||
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |||||
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | |||||
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/pims | |||||
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() ![]() |
0..1 | Period | Time period when id is/was valid for use | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Organization) | Organization that issued id (may be just text) | |||||
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |||||
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | |||||
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/openmrs | |||||
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() ![]() |
0..1 | Period | Time period when id is/was valid for use | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Organization) | Organization that issued id (may be just text) | |||||
![]() ![]() |
0..1 | Reference(Service Provider) | Organization that is the custodian of the patient record | |||||
![]() ![]() |
0..* | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual Slice: Unordered, Open by value:other.display Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |||||
![]() ![]() ![]() |
Content/Rules for all slices | |||||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | Reference(Patient | RelatedPerson) | The other patient or related person resource that the link refers to | |||||
![]() ![]() ![]() ![]() |
1..1 | code | replaced-by | replaces | refer | seealso Binding: LinkType (required): The type of link between this patient resource and another Patient resource, or Patient/RelatedPerson when using the seealso code | |||||
![]() ![]() ![]() |
0..1 | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | Reference(Patient | RelatedPerson) | The other patient or related person resource that the link refers to | |||||
![]() ![]() ![]() ![]() ![]() |
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 Required Pattern: Patient data provided by Client Registry | ||||
![]() ![]() ![]() ![]() |
1..1 | code | replaced-by | replaces | refer | seealso Binding: LinkType (required): The type of link between this patient resource and another Patient resource, or Patient/RelatedPerson when using the seealso code Required Pattern: seealso | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Patient.language | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| Patient.identifier:MasterPatientIndex.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:MasterPatientIndex.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| Patient.identifier:MRN.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:MRN.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| Patient.identifier:Internal.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:Internal.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| Patient.identifier:PIMS.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:PIMS.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| Patient.identifier:OpenMRS.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:OpenMRS.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| Patient.contact.relationship | Base | extensible | Patient Contact Relationship | 📍5.0.0 | FHIR Std. |
| Patient.contact.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std. |
| Patient.communication.language | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| Patient.link.type | Base | required | Link Type | 📍5.0.0 | FHIR Std. |
| Patient.link:PatientData.other.type | Base | extensible | Resource Types | 📍5.0.0 | FHIR Std. |
| Patient.link:PatientData.type | Base | required | Link Type | 📍5.0.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Patient | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Patient | 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 | Patient | 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 | Patient | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Patient | 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()
|
This structure is derived from Patient
Summary
Mandatory: 4 elements(10 nested mandatory elements)
Must-Support: 8 elements
Prohibited: 13 elements
Structures
This structure refers to these other structures:
Slices
This structure defines the following Slices:
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | Patient | Information about an individual or animal receiving health care services | |
![]() ![]() |
0..1 | id | Must be the same ID as the patient resource that suppplied the personal data during creation | |
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |
![]() ![]() |
0..1 | Patient | Contained patient data | |
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |
![]() ![]() |
1..* | Identifier | An identifier for this patient Slice: Unordered, Open by value:system Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
1..* | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/mpi | |
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/mrn | |
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/internalid | |
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/pims | |
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/openmrs | |
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() |
0..1 | Reference(Service Provider) | Organization that is the custodian of the patient record | |
![]() ![]() |
0..* | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual Slice: Unordered, Open by value:other.display Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | Reference(Patient | RelatedPerson) | The other patient or related person resource that the link refers to | |
![]() ![]() ![]() ![]() |
1..1 | code | replaced-by | replaces | refer | seealso Binding: LinkType (required): The type of link between this patient resource and another Patient resource, or Patient/RelatedPerson when using the seealso code | |
![]() ![]() ![]() |
0..1 | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual | |
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |
![]() ![]() ![]() ![]() |
1..1 | Reference(Patient | RelatedPerson) | The other patient or related person resource that the link refers to | |
![]() ![]() ![]() ![]() ![]() |
C | 1..1 | string | Literal reference, Relative, internal or absolute URL |
![]() ![]() ![]() ![]() ![]() |
C | 1..1 | string | Text alternative for the resource Required Pattern: Patient data provided by Client Registry |
![]() ![]() ![]() ![]() |
1..1 | code | replaced-by | replaces | refer | seealso Binding: LinkType (required): The type of link between this patient resource and another Patient resource, or Patient/RelatedPerson when using the seealso code Required Pattern: seealso | |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Patient.identifier:MasterPatientIndex.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:MRN.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:Internal.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:PIMS.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:OpenMRS.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.communication.language | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| Patient.link.type | Base | required | Link Type | 📍5.0.0 | FHIR Std. |
| Patient.link:PatientData.type | Base | required | Link Type | 📍5.0.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Patient | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Patient | 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 | Patient | 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 | Patient | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Patient | 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()
|
Differential View
This structure is derived from Patient
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | Patient | Information about an individual or animal receiving health care services | |
![]() ![]() |
0..1 | id | Must be the same ID as the patient resource that suppplied the personal data during creation | |
![]() ![]() |
0..1 | Patient | Contained patient data | |
![]() ![]() |
1..* | Identifier | An identifier for this patient Slice: Unordered, Open by value:system Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
1..* | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/mpi | |
![]() ![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/mrn | |
![]() ![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/internalid | |
![]() ![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/pims | |
![]() ![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/openmrs | |
![]() ![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() |
0..0 | Whether this patient's record is in active use | ||
![]() ![]() |
0..0 | A name associated with the patient | ||
![]() ![]() |
0..0 | A contact detail for the individual | ||
![]() ![]() |
0..0 | male | female | other | unknown | ||
![]() ![]() |
0..0 | The date of birth for the individual | ||
![]() ![]() |
0..0 | Indicates if the individual is deceased or not | ||
![]() ![]() |
0..0 | An address for the individual | ||
![]() ![]() |
0..0 | Marital (civil) status of a patient | ||
![]() ![]() |
0..0 | Whether patient is part of a multiple birth | ||
![]() ![]() |
0..0 | Image of the patient | ||
![]() ![]() |
0..0 | A contact party (e.g. guardian, partner, friend) for the patient | ||
![]() ![]() |
0..0 | A language which may be used to communicate with the patient about his or her health | ||
![]() ![]() |
0..0 | Patient's nominated primary care provider | ||
![]() ![]() |
0..1 | Reference(Service Provider) | Organization that is the custodian of the patient record | |
![]() ![]() |
0..* | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual Slice: Unordered, Open by value:other.display Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
0..1 | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..1 | string | Literal reference, Relative, internal or absolute URL | |
![]() ![]() ![]() ![]() ![]() |
1..1 | string | Text alternative for the resource Required Pattern: Patient data provided by Client Registry | |
![]() ![]() ![]() ![]() |
1..1 | code | replaced-by | replaces | refer | seealso Required Pattern: seealso | |
Documentation for this format | ||||
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | Patient | Information about an individual or animal receiving health care services | |||||
![]() ![]() |
0..1 | id | Must be the same ID as the patient resource that suppplied the personal data during creation | |||||
![]() ![]() |
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..1 | Patient | Contained patient data | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |||||
![]() ![]() |
1..* | Identifier | An identifier for this patient Slice: Unordered, Open by value:system Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |||||
![]() ![]() ![]() |
1..* | Identifier | An identifier for this patient | |||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |||||
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | |||||
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/mpi | |||||
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() ![]() |
0..1 | Period | Time period when id is/was valid for use | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Organization) | Organization that issued id (may be just text) | |||||
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |||||
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | |||||
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/mrn | |||||
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() ![]() |
0..1 | Period | Time period when id is/was valid for use | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Organization) | Organization that issued id (may be just text) | |||||
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |||||
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | |||||
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/internalid | |||||
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() ![]() |
0..1 | Period | Time period when id is/was valid for use | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Organization) | Organization that issued id (may be just text) | |||||
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |||||
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | |||||
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/pims | |||||
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() ![]() |
0..1 | Period | Time period when id is/was valid for use | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Organization) | Organization that issued id (may be just text) | |||||
![]() ![]() ![]() |
0..1 | Identifier | An identifier for this patient | |||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . | |||||
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Description of identifier Binding: IdentifierTypeCodes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose. | |||||
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value Required Pattern: http://moh.bw.org/identifier/openmrs | |||||
![]() ![]() ![]() ![]() |
C | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() ![]() |
0..1 | Period | Time period when id is/was valid for use | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Organization) | Organization that issued id (may be just text) | |||||
![]() ![]() |
0..1 | Reference(Service Provider) | Organization that is the custodian of the patient record | |||||
![]() ![]() |
0..* | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual Slice: Unordered, Open by value:other.display Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |||||
![]() ![]() ![]() |
Content/Rules for all slices | |||||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | Reference(Patient | RelatedPerson) | The other patient or related person resource that the link refers to | |||||
![]() ![]() ![]() ![]() |
1..1 | code | replaced-by | replaces | refer | seealso Binding: LinkType (required): The type of link between this patient resource and another Patient resource, or Patient/RelatedPerson when using the seealso code | |||||
![]() ![]() ![]() |
0..1 | BackboneElement | Link to a Patient or RelatedPerson resource that concerns the same actual individual | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
1..1 | Reference(Patient | RelatedPerson) | The other patient or related person resource that the link refers to | |||||
![]() ![]() ![]() ![]() ![]() |
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 Required Pattern: Patient data provided by Client Registry | ||||
![]() ![]() ![]() ![]() |
1..1 | code | replaced-by | replaces | refer | seealso Binding: LinkType (required): The type of link between this patient resource and another Patient resource, or Patient/RelatedPerson when using the seealso code Required Pattern: seealso | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Patient.language | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| Patient.identifier:MasterPatientIndex.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:MasterPatientIndex.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| Patient.identifier:MRN.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:MRN.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| Patient.identifier:Internal.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:Internal.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| Patient.identifier:PIMS.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:PIMS.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| Patient.identifier:OpenMRS.use | Base | required | IdentifierUse | 📍5.0.0 | FHIR Std. |
| Patient.identifier:OpenMRS.type | Base | extensible | Identifier Type Codes | 📍5.0.0 | FHIR Std. |
| Patient.contact.relationship | Base | extensible | Patient Contact Relationship | 📍5.0.0 | FHIR Std. |
| Patient.contact.gender | Base | required | AdministrativeGender | 📍5.0.0 | FHIR Std. |
| Patient.communication.language | Base | required | All Languages | 📍5.0.0 | FHIR Std. |
| Patient.link.type | Base | required | Link Type | 📍5.0.0 | FHIR Std. |
| Patient.link:PatientData.other.type | Base | extensible | Resource Types | 📍5.0.0 | FHIR Std. |
| Patient.link:PatientData.type | Base | required | Link Type | 📍5.0.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Patient | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Patient | 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 | Patient | 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 | Patient | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Patient | 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()
|
This structure is derived from Patient
Summary
Mandatory: 4 elements(10 nested mandatory elements)
Must-Support: 8 elements
Prohibited: 13 elements
Structures
This structure refers to these other structures:
Slices
This structure defines the following Slices:
Other representations of profile: CSV, Excel, Schematron