SGHI FHIR Profile Implementation Guide
0.1.0 - ci-build
SGHI FHIR Profile Implementation Guide, published by Kathurima Kimathi. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/savannahghi/sil_fhir_profile_ig/ and changes regularly. See the Directory of published versions
Official URL: https://fhir.slade360.co.ke/fhir/StructureDefinition/sghi-documentreference | Version: 0.1.0 | |||
Draft as of 2025-09-04 | Computable Name: SGHIDocumentReference |
A reference to a document of any kind for any purpose.
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | DocumentReference | A reference to a document Constraints: docRef-1, docRef-2 |
![]() ![]() ![]() |
?!Σ | 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 |
![]() ![]() ![]() |
Σ | 1..* | Identifier | Business identifiers for the document |
![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required) |
![]() ![]() ![]() ![]() |
Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Standard Identifier Types (required) |
![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient |
![]() ![]() ![]() ![]() |
ΣC | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text) |
![]() ![]() ![]() |
0..* | SGHIReference(SGHI Appointment Profile | SGHI MedicationRequest | SGHI ServiceRequest) | Procedure that caused this media to be created | |
![]() ![]() ![]() |
?!Σ | 1..1 | code | current | superseded | entered-in-error Binding: DocumentReferenceStatus (required): The status of the document reference. |
![]() ![]() ![]() |
Σ | 1..1 | code | registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown Binding: CompositionStatus (required): Status of the underlying document. |
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableConcept | Imaging modality used Binding: Modality ![]() |
![]() ![]() ![]() |
Σ | 1..1 | SGHICodeableConcept | Kind of document (LOINC if possible) Binding: FHIRDocumentTypeCodes (required) |
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableConcept | Categorization of document Binding: ReferencedItemCategoryValueSet (example): High-level kind of document at a macro level. |
![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI Patient) | Who/what is the subject of the document |
![]() ![]() ![]() |
C | 1..* | SGHIReference(SGHI Appointment Profile | SGHI Encounter | SGHI EpisodeOfCare) | Context of the document content |
![]() ![]() ![]() |
0..* | SGHICodeableReference() | Main clinical acts documented Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented. | |
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableReference(BodyStructure) | Body part included Binding: All LOINC Codes (required) |
![]() ![]() ![]() |
C | 0..1 | SGHICodeableConcept | Kind of facility where patient was seen Binding: FacilityTypeCodeValueSet (example): XDS Facility Type. |
![]() ![]() ![]() |
C | 0..1 | SGHICodeableConcept | Additional details about where the content was created (e.g. clinical specialty) Binding: PracticeSettingCodeValueSet (example): Additional details about where the content was created (e.g. clinical specialty). |
![]() ![]() ![]() |
Σ | 1..1 | instant | When this document reference was created |
![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI Organization | SGHI PractitionerRole | SGHI Practitioner | SGHI Patient) | Who and/or what authored the document |
![]() ![]() ![]() |
1..1 | SGHIReference(SGHI Organization) | Organization which maintains the document | |
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableConcept | Document security-tags Binding: SecurityLabelExamples (example): Example Security Labels from the Healthcare Privacy and Security Classification System. |
![]() ![]() ![]() |
Σ | 1..* | BackboneElement | Document referenced |
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
Σ | 1..1 | Attachment | Where to access the document |
![]() |
Path | Conformance | ValueSet | URI |
DocumentReference.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use From the FHIR Standard | |
DocumentReference.identifier.type | required | SGHIIdentifierTypeshttps://fhir.slade360.co.ke/fhir/ValueSet/sghi-identifier-types From this IG | |
DocumentReference.status | required | DocumentReferenceStatushttp://hl7.org/fhir/ValueSet/document-reference-status|5.0.0 From the FHIR Standard | |
DocumentReference.docStatus | required | CompositionStatushttp://hl7.org/fhir/ValueSet/composition-status|5.0.0 From the FHIR Standard | |
DocumentReference.modality | extensible | Modality ![]() http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_33.html | |
DocumentReference.type | required | FHIRDocumentTypeCodeshttp://hl7.org/fhir/ValueSet/doc-typecodes From the FHIR Standard | |
DocumentReference.category | example | ReferencedItemCategoryValueSethttp://hl7.org/fhir/ValueSet/referenced-item-category From the FHIR Standard | |
DocumentReference.event | example | ActCodehttp://terminology.hl7.org/ValueSet/v3-ActCode | |
DocumentReference.bodySite | required | AllLoincCodes(a valid code from LOINC)https://fhir.slade360.co.ke/fhir/ValueSet/all-loinc-codes From this IG | |
DocumentReference.facilityType | example | FacilityTypeCodeValueSethttp://hl7.org/fhir/ValueSet/c80-facilitycodes From the FHIR Standard | |
DocumentReference.practiceSetting | example | PracticeSettingCodeValueSethttp://hl7.org/fhir/ValueSet/c80-practice-codes From the FHIR Standard | |
DocumentReference.securityLabel | example | SecurityLabelExampleshttp://hl7.org/fhir/ValueSet/security-label-examples From the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
dom-2 | error | DocumentReference | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
dom-3 | error | DocumentReference | 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 | DocumentReference | 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 | DocumentReference | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | best practice | DocumentReference | A resource should have narrative for robust management : text.`div`.exists() | |
docRef-1 | warning | DocumentReference | facilityType SHALL only be present if context is not an encounter : facilityType.empty() or context.where(resolve() is Encounter).empty() | |
docRef-2 | warning | DocumentReference | practiceSetting SHALL only be present if context is not present : practiceSetting.empty() or context.where(resolve() is Encounter).empty() | |
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 DocumentReference
Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
---|---|---|---|---|
![]() ![]() |
0..* | DocumentReference | A reference to a document | |
![]() ![]() ![]() |
1..* | Identifier | Business identifiers for the document | |
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required) | |
![]() ![]() ![]() ![]() |
0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Standard Identifier Types (required) | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value | |
![]() ![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() ![]() ![]() |
1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text) | |
![]() ![]() ![]() |
0..* | SGHIReference(SGHI Appointment Profile | SGHI MedicationRequest | SGHI ServiceRequest) | Procedure that caused this media to be created | |
![]() ![]() ![]() |
1..1 | code | registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown | |
![]() ![]() ![]() |
0..* | SGHICodeableConcept | Imaging modality used | |
![]() ![]() ![]() |
1..1 | SGHICodeableConcept | Kind of document (LOINC if possible) Binding: FHIRDocumentTypeCodes (required) | |
![]() ![]() ![]() |
0..* | SGHICodeableConcept | Categorization of document | |
![]() ![]() ![]() |
1..1 | SGHIReference(SGHI Patient) | Who/what is the subject of the document | |
![]() ![]() ![]() |
1..* | SGHIReference(SGHI Appointment Profile | SGHI Encounter | SGHI EpisodeOfCare) | Context of the document content | |
![]() ![]() ![]() |
0..* | SGHICodeableReference() | Main clinical acts documented | |
![]() ![]() ![]() |
0..* | SGHICodeableReference(BodyStructure) | Body part included Binding: All LOINC Codes (required) | |
![]() ![]() ![]() |
0..1 | SGHICodeableConcept | Kind of facility where patient was seen | |
![]() ![]() ![]() |
0..1 | SGHICodeableConcept | Additional details about where the content was created (e.g. clinical specialty) | |
![]() ![]() ![]() |
1..1 | instant | When this document reference was created | |
![]() ![]() ![]() |
1..1 | SGHIReference(SGHI Organization | SGHI PractitionerRole | SGHI Practitioner | SGHI Patient) | Who and/or what authored the document | |
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
1..1 | SGHICodeableConcept | personal | professional | legal | official | |
![]() ![]() ![]() ![]() |
0..1 | SGHIReference(SGHI Patient | SGHI Organization | SGHI Practitioner | SGHI PractitionerRole) | Who attested the document | |
![]() ![]() ![]() |
1..1 | SGHIReference(SGHI Organization) | Organization which maintains the document | |
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
1..1 | SGHICodeableConcept | The relationship type with another document | |
![]() ![]() ![]() ![]() |
1..1 | SGHIReference(SGHI DocumentReference Profile.) | Target of the relationship | |
![]() ![]() ![]() |
0..* | SGHICodeableConcept | Document security-tags | |
![]() |
Path | Conformance | ValueSet | URI |
DocumentReference.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use From the FHIR Standard | |
DocumentReference.identifier.type | required | SGHIIdentifierTypeshttps://fhir.slade360.co.ke/fhir/ValueSet/sghi-identifier-types From this IG | |
DocumentReference.type | required | FHIRDocumentTypeCodeshttp://hl7.org/fhir/ValueSet/doc-typecodes From the FHIR Standard | |
DocumentReference.bodySite | required | AllLoincCodes(a valid code from LOINC)https://fhir.slade360.co.ke/fhir/ValueSet/all-loinc-codes From this IG |
Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
---|---|---|---|---|---|---|---|---|
![]() ![]() |
C | 0..* | DocumentReference | A reference to a document Constraints: docRef-1, docRef-2 | ||||
![]() ![]() ![]() |
Σ | 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 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
Σ | 1..* | Identifier | Business identifiers for the document | ||||
![]() ![]() ![]() ![]() |
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) | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Standard Identifier Types (required) | ||||
![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() ![]() |
ΣC | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
![]() ![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text) | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | An explicitly assigned identifer of a variation of the content in the DocumentReference | ||||
![]() ![]() ![]() |
0..* | SGHIReference(SGHI Appointment Profile | SGHI MedicationRequest | SGHI ServiceRequest) | Procedure that caused this media to be created | |||||
![]() ![]() ![]() |
?!Σ | 1..1 | code | current | superseded | entered-in-error Binding: DocumentReferenceStatus (required): The status of the document reference. | ||||
![]() ![]() ![]() |
Σ | 1..1 | code | registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown Binding: CompositionStatus (required): Status of the underlying document. | ||||
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableConcept | Imaging modality used Binding: Modality ![]() | ||||
![]() ![]() ![]() |
Σ | 1..1 | SGHICodeableConcept | Kind of document (LOINC if possible) Binding: FHIRDocumentTypeCodes (required) | ||||
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableConcept | Categorization of document Binding: ReferencedItemCategoryValueSet (example): High-level kind of document at a macro level. | ||||
![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI Patient) | Who/what is the subject of the document | ||||
![]() ![]() ![]() |
C | 1..* | SGHIReference(SGHI Appointment Profile | SGHI Encounter | SGHI EpisodeOfCare) | Context of the document content | ||||
![]() ![]() ![]() |
0..* | SGHICodeableReference() | Main clinical acts documented Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented. | |||||
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableReference(BodyStructure) | Body part included Binding: All LOINC Codes (required) | ||||
![]() ![]() ![]() |
C | 0..1 | SGHICodeableConcept | Kind of facility where patient was seen Binding: FacilityTypeCodeValueSet (example): XDS Facility Type. | ||||
![]() ![]() ![]() |
C | 0..1 | SGHICodeableConcept | Additional details about where the content was created (e.g. clinical specialty) Binding: PracticeSettingCodeValueSet (example): Additional details about where the content was created (e.g. clinical specialty). | ||||
![]() ![]() ![]() |
Σ | 0..1 | Period | Time of service that is being documented | ||||
![]() ![]() ![]() |
Σ | 1..1 | instant | When this document reference was created | ||||
![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI Organization | SGHI PractitionerRole | SGHI Practitioner | SGHI Patient) | Who and/or what authored the document | ||||
![]() ![]() ![]() |
0..* | BackboneElement | Attests to accuracy of the document | |||||
![]() ![]() ![]() ![]() |
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 | SGHICodeableConcept | personal | professional | legal | official Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a document. | |||||
![]() ![]() ![]() ![]() |
0..1 | dateTime | When the document was attested | |||||
![]() ![]() ![]() ![]() |
0..1 | SGHIReference(SGHI Patient | SGHI Organization | SGHI Practitioner | SGHI PractitionerRole) | Who attested the document | |||||
![]() ![]() ![]() |
1..1 | SGHIReference(SGHI Organization) | Organization which maintains the document | |||||
![]() ![]() ![]() |
Σ | 0..* | BackboneElement | Relationships to other documents | ||||
![]() ![]() ![]() ![]() |
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 | SGHICodeableConcept | The relationship type with another document Binding: DocumentRelationshipType (extensible): The type of relationship between the documents. | ||||
![]() ![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI DocumentReference Profile.) | Target of the relationship | ||||
![]() ![]() ![]() |
Σ | 0..1 | markdown | Human-readable description | ||||
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableConcept | Document security-tags Binding: SecurityLabelExamples (example): Example Security Labels from the Healthcare Privacy and Security Classification System. | ||||
![]() ![]() ![]() |
Σ | 1..* | BackboneElement | Document referenced | ||||
![]() ![]() ![]() ![]() |
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 | Attachment | Where to access the document | ||||
![]() ![]() ![]() ![]() |
Σ | 0..* | BackboneElement | Content profile rules for the document | ||||
![]() ![]() ![]() ![]() ![]() |
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 | Code|uri|canonical Binding: HL7 ValueSet of Format Codes for use with Document Sharing (preferred): Document Format Codes. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
uri | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
canonical(Any) | |||||||
![]() |
Path | Conformance | ValueSet | URI |
DocumentReference.language | required | AllLanguageshttp://hl7.org/fhir/ValueSet/all-languages|5.0.0 From the FHIR Standard | |
DocumentReference.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use From the FHIR Standard | |
DocumentReference.identifier.type | required | SGHIIdentifierTypeshttps://fhir.slade360.co.ke/fhir/ValueSet/sghi-identifier-types From this IG | |
DocumentReference.status | required | DocumentReferenceStatushttp://hl7.org/fhir/ValueSet/document-reference-status|5.0.0 From the FHIR Standard | |
DocumentReference.docStatus | required | CompositionStatushttp://hl7.org/fhir/ValueSet/composition-status|5.0.0 From the FHIR Standard | |
DocumentReference.modality | extensible | Modality ![]() http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_33.html | |
DocumentReference.type | required | FHIRDocumentTypeCodeshttp://hl7.org/fhir/ValueSet/doc-typecodes From the FHIR Standard | |
DocumentReference.category | example | ReferencedItemCategoryValueSethttp://hl7.org/fhir/ValueSet/referenced-item-category From the FHIR Standard | |
DocumentReference.event | example | ActCodehttp://terminology.hl7.org/ValueSet/v3-ActCode | |
DocumentReference.bodySite | required | AllLoincCodes(a valid code from LOINC)https://fhir.slade360.co.ke/fhir/ValueSet/all-loinc-codes From this IG | |
DocumentReference.facilityType | example | FacilityTypeCodeValueSethttp://hl7.org/fhir/ValueSet/c80-facilitycodes From the FHIR Standard | |
DocumentReference.practiceSetting | example | PracticeSettingCodeValueSethttp://hl7.org/fhir/ValueSet/c80-practice-codes From the FHIR Standard | |
DocumentReference.attester.mode | preferred | CompositionAttestationModehttp://hl7.org/fhir/ValueSet/composition-attestation-mode From the FHIR Standard | |
DocumentReference.relatesTo.code | extensible | DocumentRelationshipTypehttp://hl7.org/fhir/ValueSet/document-relationship-type From the FHIR Standard | |
DocumentReference.securityLabel | example | SecurityLabelExampleshttp://hl7.org/fhir/ValueSet/security-label-examples From the FHIR Standard | |
DocumentReference.content.profile.value[x] | preferred | HL7FormatCodeshttp://terminology.hl7.org/ValueSet/v3-HL7FormatCodes |
Id | Grade | Path(s) | Details | Requirements |
dom-2 | error | DocumentReference | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
dom-3 | error | DocumentReference | 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 | DocumentReference | 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 | DocumentReference | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | best practice | DocumentReference | A resource should have narrative for robust management : text.`div`.exists() | |
docRef-1 | warning | DocumentReference | facilityType SHALL only be present if context is not an encounter : facilityType.empty() or context.where(resolve() is Encounter).empty() | |
docRef-2 | warning | DocumentReference | practiceSetting SHALL only be present if context is not present : practiceSetting.empty() or context.where(resolve() is Encounter).empty() | |
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 DocumentReference
Summary
Mandatory: 11 elements
Structures
This structure refers to these other structures:
Key Elements View
Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | DocumentReference | A reference to a document Constraints: docRef-1, docRef-2 |
![]() ![]() ![]() |
?!Σ | 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 |
![]() ![]() ![]() |
Σ | 1..* | Identifier | Business identifiers for the document |
![]() ![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required) |
![]() ![]() ![]() ![]() |
Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Standard Identifier Types (required) |
![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient |
![]() ![]() ![]() ![]() |
ΣC | 1..1 | string | The value that is unique Example General: 123456 |
![]() ![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text) |
![]() ![]() ![]() |
0..* | SGHIReference(SGHI Appointment Profile | SGHI MedicationRequest | SGHI ServiceRequest) | Procedure that caused this media to be created | |
![]() ![]() ![]() |
?!Σ | 1..1 | code | current | superseded | entered-in-error Binding: DocumentReferenceStatus (required): The status of the document reference. |
![]() ![]() ![]() |
Σ | 1..1 | code | registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown Binding: CompositionStatus (required): Status of the underlying document. |
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableConcept | Imaging modality used Binding: Modality ![]() |
![]() ![]() ![]() |
Σ | 1..1 | SGHICodeableConcept | Kind of document (LOINC if possible) Binding: FHIRDocumentTypeCodes (required) |
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableConcept | Categorization of document Binding: ReferencedItemCategoryValueSet (example): High-level kind of document at a macro level. |
![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI Patient) | Who/what is the subject of the document |
![]() ![]() ![]() |
C | 1..* | SGHIReference(SGHI Appointment Profile | SGHI Encounter | SGHI EpisodeOfCare) | Context of the document content |
![]() ![]() ![]() |
0..* | SGHICodeableReference() | Main clinical acts documented Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented. | |
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableReference(BodyStructure) | Body part included Binding: All LOINC Codes (required) |
![]() ![]() ![]() |
C | 0..1 | SGHICodeableConcept | Kind of facility where patient was seen Binding: FacilityTypeCodeValueSet (example): XDS Facility Type. |
![]() ![]() ![]() |
C | 0..1 | SGHICodeableConcept | Additional details about where the content was created (e.g. clinical specialty) Binding: PracticeSettingCodeValueSet (example): Additional details about where the content was created (e.g. clinical specialty). |
![]() ![]() ![]() |
Σ | 1..1 | instant | When this document reference was created |
![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI Organization | SGHI PractitionerRole | SGHI Practitioner | SGHI Patient) | Who and/or what authored the document |
![]() ![]() ![]() |
1..1 | SGHIReference(SGHI Organization) | Organization which maintains the document | |
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableConcept | Document security-tags Binding: SecurityLabelExamples (example): Example Security Labels from the Healthcare Privacy and Security Classification System. |
![]() ![]() ![]() |
Σ | 1..* | BackboneElement | Document referenced |
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() |
Σ | 1..1 | Attachment | Where to access the document |
![]() |
Path | Conformance | ValueSet | URI |
DocumentReference.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use From the FHIR Standard | |
DocumentReference.identifier.type | required | SGHIIdentifierTypeshttps://fhir.slade360.co.ke/fhir/ValueSet/sghi-identifier-types From this IG | |
DocumentReference.status | required | DocumentReferenceStatushttp://hl7.org/fhir/ValueSet/document-reference-status|5.0.0 From the FHIR Standard | |
DocumentReference.docStatus | required | CompositionStatushttp://hl7.org/fhir/ValueSet/composition-status|5.0.0 From the FHIR Standard | |
DocumentReference.modality | extensible | Modality ![]() http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_33.html | |
DocumentReference.type | required | FHIRDocumentTypeCodeshttp://hl7.org/fhir/ValueSet/doc-typecodes From the FHIR Standard | |
DocumentReference.category | example | ReferencedItemCategoryValueSethttp://hl7.org/fhir/ValueSet/referenced-item-category From the FHIR Standard | |
DocumentReference.event | example | ActCodehttp://terminology.hl7.org/ValueSet/v3-ActCode | |
DocumentReference.bodySite | required | AllLoincCodes(a valid code from LOINC)https://fhir.slade360.co.ke/fhir/ValueSet/all-loinc-codes From this IG | |
DocumentReference.facilityType | example | FacilityTypeCodeValueSethttp://hl7.org/fhir/ValueSet/c80-facilitycodes From the FHIR Standard | |
DocumentReference.practiceSetting | example | PracticeSettingCodeValueSethttp://hl7.org/fhir/ValueSet/c80-practice-codes From the FHIR Standard | |
DocumentReference.securityLabel | example | SecurityLabelExampleshttp://hl7.org/fhir/ValueSet/security-label-examples From the FHIR Standard |
Id | Grade | Path(s) | Details | Requirements |
dom-2 | error | DocumentReference | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
dom-3 | error | DocumentReference | 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 | DocumentReference | 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 | DocumentReference | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | best practice | DocumentReference | A resource should have narrative for robust management : text.`div`.exists() | |
docRef-1 | warning | DocumentReference | facilityType SHALL only be present if context is not an encounter : facilityType.empty() or context.where(resolve() is Encounter).empty() | |
docRef-2 | warning | DocumentReference | practiceSetting SHALL only be present if context is not present : practiceSetting.empty() or context.where(resolve() is Encounter).empty() | |
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 DocumentReference
Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
---|---|---|---|---|
![]() ![]() |
0..* | DocumentReference | A reference to a document | |
![]() ![]() ![]() |
1..* | Identifier | Business identifiers for the document | |
![]() ![]() ![]() ![]() |
0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required) | |
![]() ![]() ![]() ![]() |
0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Standard Identifier Types (required) | |
![]() ![]() ![]() ![]() |
1..1 | uri | The namespace for the identifier value | |
![]() ![]() ![]() ![]() |
1..1 | string | The value that is unique | |
![]() ![]() ![]() ![]() |
1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text) | |
![]() ![]() ![]() |
0..* | SGHIReference(SGHI Appointment Profile | SGHI MedicationRequest | SGHI ServiceRequest) | Procedure that caused this media to be created | |
![]() ![]() ![]() |
1..1 | code | registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown | |
![]() ![]() ![]() |
0..* | SGHICodeableConcept | Imaging modality used | |
![]() ![]() ![]() |
1..1 | SGHICodeableConcept | Kind of document (LOINC if possible) Binding: FHIRDocumentTypeCodes (required) | |
![]() ![]() ![]() |
0..* | SGHICodeableConcept | Categorization of document | |
![]() ![]() ![]() |
1..1 | SGHIReference(SGHI Patient) | Who/what is the subject of the document | |
![]() ![]() ![]() |
1..* | SGHIReference(SGHI Appointment Profile | SGHI Encounter | SGHI EpisodeOfCare) | Context of the document content | |
![]() ![]() ![]() |
0..* | SGHICodeableReference() | Main clinical acts documented | |
![]() ![]() ![]() |
0..* | SGHICodeableReference(BodyStructure) | Body part included Binding: All LOINC Codes (required) | |
![]() ![]() ![]() |
0..1 | SGHICodeableConcept | Kind of facility where patient was seen | |
![]() ![]() ![]() |
0..1 | SGHICodeableConcept | Additional details about where the content was created (e.g. clinical specialty) | |
![]() ![]() ![]() |
1..1 | instant | When this document reference was created | |
![]() ![]() ![]() |
1..1 | SGHIReference(SGHI Organization | SGHI PractitionerRole | SGHI Practitioner | SGHI Patient) | Who and/or what authored the document | |
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
1..1 | SGHICodeableConcept | personal | professional | legal | official | |
![]() ![]() ![]() ![]() |
0..1 | SGHIReference(SGHI Patient | SGHI Organization | SGHI Practitioner | SGHI PractitionerRole) | Who attested the document | |
![]() ![]() ![]() |
1..1 | SGHIReference(SGHI Organization) | Organization which maintains the document | |
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
1..1 | SGHICodeableConcept | The relationship type with another document | |
![]() ![]() ![]() ![]() |
1..1 | SGHIReference(SGHI DocumentReference Profile.) | Target of the relationship | |
![]() ![]() ![]() |
0..* | SGHICodeableConcept | Document security-tags | |
![]() |
Path | Conformance | ValueSet | URI |
DocumentReference.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use From the FHIR Standard | |
DocumentReference.identifier.type | required | SGHIIdentifierTypeshttps://fhir.slade360.co.ke/fhir/ValueSet/sghi-identifier-types From this IG | |
DocumentReference.type | required | FHIRDocumentTypeCodeshttp://hl7.org/fhir/ValueSet/doc-typecodes From the FHIR Standard | |
DocumentReference.bodySite | required | AllLoincCodes(a valid code from LOINC)https://fhir.slade360.co.ke/fhir/ValueSet/all-loinc-codes From this IG |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
---|---|---|---|---|---|---|---|---|
![]() ![]() |
C | 0..* | DocumentReference | A reference to a document Constraints: docRef-1, docRef-2 | ||||
![]() ![]() ![]() |
Σ | 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 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
Σ | 1..* | Identifier | Business identifiers for the document | ||||
![]() ![]() ![]() ![]() |
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) | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | SGHICodeableConcept | Description of identifier Binding: SGHI Standard Identifier Types (required) | ||||
![]() ![]() ![]() ![]() |
Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() ![]() |
ΣC | 1..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
![]() ![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI Organization) | Organization that issued id (may be just text) | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | An explicitly assigned identifer of a variation of the content in the DocumentReference | ||||
![]() ![]() ![]() |
0..* | SGHIReference(SGHI Appointment Profile | SGHI MedicationRequest | SGHI ServiceRequest) | Procedure that caused this media to be created | |||||
![]() ![]() ![]() |
?!Σ | 1..1 | code | current | superseded | entered-in-error Binding: DocumentReferenceStatus (required): The status of the document reference. | ||||
![]() ![]() ![]() |
Σ | 1..1 | code | registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown Binding: CompositionStatus (required): Status of the underlying document. | ||||
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableConcept | Imaging modality used Binding: Modality ![]() | ||||
![]() ![]() ![]() |
Σ | 1..1 | SGHICodeableConcept | Kind of document (LOINC if possible) Binding: FHIRDocumentTypeCodes (required) | ||||
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableConcept | Categorization of document Binding: ReferencedItemCategoryValueSet (example): High-level kind of document at a macro level. | ||||
![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI Patient) | Who/what is the subject of the document | ||||
![]() ![]() ![]() |
C | 1..* | SGHIReference(SGHI Appointment Profile | SGHI Encounter | SGHI EpisodeOfCare) | Context of the document content | ||||
![]() ![]() ![]() |
0..* | SGHICodeableReference() | Main clinical acts documented Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented. | |||||
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableReference(BodyStructure) | Body part included Binding: All LOINC Codes (required) | ||||
![]() ![]() ![]() |
C | 0..1 | SGHICodeableConcept | Kind of facility where patient was seen Binding: FacilityTypeCodeValueSet (example): XDS Facility Type. | ||||
![]() ![]() ![]() |
C | 0..1 | SGHICodeableConcept | Additional details about where the content was created (e.g. clinical specialty) Binding: PracticeSettingCodeValueSet (example): Additional details about where the content was created (e.g. clinical specialty). | ||||
![]() ![]() ![]() |
Σ | 0..1 | Period | Time of service that is being documented | ||||
![]() ![]() ![]() |
Σ | 1..1 | instant | When this document reference was created | ||||
![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI Organization | SGHI PractitionerRole | SGHI Practitioner | SGHI Patient) | Who and/or what authored the document | ||||
![]() ![]() ![]() |
0..* | BackboneElement | Attests to accuracy of the document | |||||
![]() ![]() ![]() ![]() |
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 | SGHICodeableConcept | personal | professional | legal | official Binding: CompositionAttestationMode (preferred): The way in which a person authenticated a document. | |||||
![]() ![]() ![]() ![]() |
0..1 | dateTime | When the document was attested | |||||
![]() ![]() ![]() ![]() |
0..1 | SGHIReference(SGHI Patient | SGHI Organization | SGHI Practitioner | SGHI PractitionerRole) | Who attested the document | |||||
![]() ![]() ![]() |
1..1 | SGHIReference(SGHI Organization) | Organization which maintains the document | |||||
![]() ![]() ![]() |
Σ | 0..* | BackboneElement | Relationships to other documents | ||||
![]() ![]() ![]() ![]() |
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 | SGHICodeableConcept | The relationship type with another document Binding: DocumentRelationshipType (extensible): The type of relationship between the documents. | ||||
![]() ![]() ![]() ![]() |
Σ | 1..1 | SGHIReference(SGHI DocumentReference Profile.) | Target of the relationship | ||||
![]() ![]() ![]() |
Σ | 0..1 | markdown | Human-readable description | ||||
![]() ![]() ![]() |
Σ | 0..* | SGHICodeableConcept | Document security-tags Binding: SecurityLabelExamples (example): Example Security Labels from the Healthcare Privacy and Security Classification System. | ||||
![]() ![]() ![]() |
Σ | 1..* | BackboneElement | Document referenced | ||||
![]() ![]() ![]() ![]() |
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 | Attachment | Where to access the document | ||||
![]() ![]() ![]() ![]() |
Σ | 0..* | BackboneElement | Content profile rules for the document | ||||
![]() ![]() ![]() ![]() ![]() |
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 | Code|uri|canonical Binding: HL7 ValueSet of Format Codes for use with Document Sharing (preferred): Document Format Codes. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
Coding | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
uri | |||||||
![]() ![]() ![]() ![]() ![]() ![]() |
canonical(Any) | |||||||
![]() |
Path | Conformance | ValueSet | URI |
DocumentReference.language | required | AllLanguageshttp://hl7.org/fhir/ValueSet/all-languages|5.0.0 From the FHIR Standard | |
DocumentReference.identifier.use | required | IdentifierUsehttp://hl7.org/fhir/ValueSet/identifier-use From the FHIR Standard | |
DocumentReference.identifier.type | required | SGHIIdentifierTypeshttps://fhir.slade360.co.ke/fhir/ValueSet/sghi-identifier-types From this IG | |
DocumentReference.status | required | DocumentReferenceStatushttp://hl7.org/fhir/ValueSet/document-reference-status|5.0.0 From the FHIR Standard | |
DocumentReference.docStatus | required | CompositionStatushttp://hl7.org/fhir/ValueSet/composition-status|5.0.0 From the FHIR Standard | |
DocumentReference.modality | extensible | Modality ![]() http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_33.html | |
DocumentReference.type | required | FHIRDocumentTypeCodeshttp://hl7.org/fhir/ValueSet/doc-typecodes From the FHIR Standard | |
DocumentReference.category | example | ReferencedItemCategoryValueSethttp://hl7.org/fhir/ValueSet/referenced-item-category From the FHIR Standard | |
DocumentReference.event | example | ActCodehttp://terminology.hl7.org/ValueSet/v3-ActCode | |
DocumentReference.bodySite | required | AllLoincCodes(a valid code from LOINC)https://fhir.slade360.co.ke/fhir/ValueSet/all-loinc-codes From this IG | |
DocumentReference.facilityType | example | FacilityTypeCodeValueSethttp://hl7.org/fhir/ValueSet/c80-facilitycodes From the FHIR Standard | |
DocumentReference.practiceSetting | example | PracticeSettingCodeValueSethttp://hl7.org/fhir/ValueSet/c80-practice-codes From the FHIR Standard | |
DocumentReference.attester.mode | preferred | CompositionAttestationModehttp://hl7.org/fhir/ValueSet/composition-attestation-mode From the FHIR Standard | |
DocumentReference.relatesTo.code | extensible | DocumentRelationshipTypehttp://hl7.org/fhir/ValueSet/document-relationship-type From the FHIR Standard | |
DocumentReference.securityLabel | example | SecurityLabelExampleshttp://hl7.org/fhir/ValueSet/security-label-examples From the FHIR Standard | |
DocumentReference.content.profile.value[x] | preferred | HL7FormatCodeshttp://terminology.hl7.org/ValueSet/v3-HL7FormatCodes |
Id | Grade | Path(s) | Details | Requirements |
dom-2 | error | DocumentReference | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
dom-3 | error | DocumentReference | 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 | DocumentReference | 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 | DocumentReference | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | best practice | DocumentReference | A resource should have narrative for robust management : text.`div`.exists() | |
docRef-1 | warning | DocumentReference | facilityType SHALL only be present if context is not an encounter : facilityType.empty() or context.where(resolve() is Encounter).empty() | |
docRef-2 | warning | DocumentReference | practiceSetting SHALL only be present if context is not present : practiceSetting.empty() or context.where(resolve() is Encounter).empty() | |
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 DocumentReference
Summary
Mandatory: 11 elements
Structures
This structure refers to these other structures:
Other representations of profile: CSV, Excel, Schematron