0.1.7 - ci-build
EgdeEHG_IG - Local Development build (v0.1.7). See the Directory of published versions
Official URL: http://www.egde.no/StructureDefinition/ehg-no-DocumentReference | Version: 0.1.7 | |||
Draft as of 2023-03-24 | Computable Name: EhgNoDocumentReference |
Egde Health Gateway DocumentReference profile
Usage:
Description of Profiles, Differentials, Snapshots and how the different presentations work.
This structure is derived from NoBasisDocumentReference
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() | 0..* | NoBasisDocumentReference | A reference to a document | |
![]() ![]() ![]() | S | 1..1 | code | current | superseded | entered-in-error |
![]() ![]() ![]() | 0..1 | CodeableConcept | Kind of document Binding: Volven 9602 Dokumenttyper (required) | |
![]() ![]() ![]() | 0..1 | Reference(Patient - Egde Health Gateway - profile for Norwegian patients) | Who/what is the subject of the document | |
![]() ![]() ![]() | S | 0..1 | instant | When this document reference was created |
![]() ![]() ![]() | 0..* | Reference(Practitioner - Egde Health Gateway - profile for Norwegian practitioners | Organization - Egde Health Gateway - profile for domestic use | Organization - Egde Health Gateway - profile for domestic use) | Who and/or what authored the document | |
![]() ![]() ![]() | S | 0..1 | string | Human-readable description |
![]() ![]() ![]() | ||||
![]() ![]() ![]() ![]() | S | 1..1 | EhgAttachment | Content in a format defined elsewhere |
![]() |
Path | Conformance | ValueSet |
DocumentReference.type | required | Dokumentyper9602VS |
Path | Conformance | ValueSet |
DocumentReference.status | required | DocumentReferenceStatus |
DocumentReference.type | required | Dokumentyper9602VS |
Id | Grade | Path(s) | Details | Requirements |
att-1 | error | DocumentReference.content.attachment | If the Attachment has data, it SHALL have a contentType : data.empty() or contentType.exists() | |
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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(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() | |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** elements | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ref-1 | error | DocumentReference.subject, DocumentReference.author | SHALL have a contained resource if a local reference is provided : reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) |
Name | Flags | Card. | Type | Description & Constraints![]() | ||||
---|---|---|---|---|---|---|---|---|
![]() ![]() | 0..* | NoBasisDocumentReference | A reference to a document | |||||
![]() ![]() ![]() | Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() ![]() | ΣN | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() ![]() | ?!ΣN | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() ![]() | N | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| ||||
![]() ![]() ![]() | N | 0..1 | Narrative | Text summary of the resource, for human interpretation | ||||
![]() ![]() ![]() | 0..* | Resource | Contained, inline Resources | |||||
![]() ![]() ![]() | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
![]() ![]() ![]() | ?!N | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url | ||||
![]() ![]() ![]() | ΣN | 0..1 | Identifier | Master Version Specific Identifier | ||||
![]() ![]() ![]() | ΣN | 0..* | Identifier | Other identifiers for the document | ||||
![]() ![]() ![]() | ?!SΣ | 1..1 | code | current | superseded | entered-in-error Binding: DocumentReferenceStatus (required): The status of the document reference. | ||||
![]() ![]() ![]() | ΣN | 0..1 | code | preliminary | final | amended | entered-in-error Binding: CompositionStatus (required): Status of the underlying document. | ||||
![]() ![]() ![]() | Σ | 0..1 | CodeableConcept | Kind of document Binding: Volven 9602 Dokumenttyper (required) | ||||
![]() ![]() ![]() | ΣN | 0..* | CodeableConcept | Categorization of document Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level. | ||||
![]() ![]() ![]() | ΣC | 0..1 | Reference(Patient - Egde Health Gateway - profile for Norwegian patients) | Who/what is the subject of the document | ||||
![]() ![]() ![]() | SΣ | 0..1 | instant | When this document reference was created | ||||
![]() ![]() ![]() | ΣC | 0..* | Reference(Practitioner - Egde Health Gateway - profile for Norwegian practitioners | Organization - Egde Health Gateway - profile for domestic use | Organization - Egde Health Gateway - profile for domestic use) | Who and/or what authored the document | ||||
![]() ![]() ![]() | CN | 0..1 | Reference(Practitioner | PractitionerRole | Organization) | Who/what authenticated the document | ||||
![]() ![]() ![]() | CN | 0..1 | Reference(Organization) | Organization which maintains the document | ||||
![]() ![]() ![]() | ΣN | 0..* | BackboneElement | Relationships to other documents | ||||
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
![]() ![]() ![]() ![]() | ?!ΣN | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() | ΣN | 1..1 | code | replaces | transforms | signs | appends Binding: DocumentRelationshipType (required): The type of relationship between documents. | ||||
![]() ![]() ![]() ![]() | ΣCN | 1..1 | Reference(DocumentReference) | Target of the relationship | ||||
![]() ![]() ![]() | SΣ | 0..1 | string | Human-readable description | ||||
![]() ![]() ![]() | ΣN | 0..* | CodeableConcept | Document security-tags Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | ||||
![]() ![]() ![]() | ΣN | 1..* | BackboneElement | Document referenced | ||||
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
![]() ![]() ![]() ![]() | ?!ΣN | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() | SC | 1..1 | EhgAttachment | Content in a format defined elsewhere | ||||
![]() ![]() ![]() ![]() | ΣN | 0..1 | Coding | Format/content rules for the document Binding: DocumentReferenceFormatCodeSet (preferred): Document Format Codes. | ||||
![]() ![]() ![]() | ΣN | 0..1 | BackboneElement | Clinical context of document | ||||
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
![]() ![]() ![]() ![]() | ?!ΣN | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() | CN | 0..* | Reference(Encounter | EpisodeOfCare) | Context of the document content | ||||
![]() ![]() ![]() ![]() | N | 0..* | CodeableConcept | Main clinical acts documented Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented. | ||||
![]() ![]() ![]() ![]() | ΣCN | 0..1 | Period | Time of service that is being documented | ||||
![]() ![]() ![]() ![]() | N | 0..1 | CodeableConcept | Kind of facility where patient was seen Binding: FacilityTypeCodeValueSet (example): XDS Facility Type. | ||||
![]() ![]() ![]() ![]() | N | 0..1 | CodeableConcept | 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). | ||||
![]() ![]() ![]() ![]() | CN | 0..1 | Reference(Patient) | Patient demographics from source | ||||
![]() ![]() ![]() ![]() | CN | 0..* | Reference(Resource) | Related identifiers or resources | ||||
![]() |
Path | Conformance | ValueSet | ||||
DocumentReference.language | preferred | CommonLanguages
| ||||
DocumentReference.status | required | DocumentReferenceStatus | ||||
DocumentReference.docStatus | required | CompositionStatus | ||||
DocumentReference.type | required | Dokumentyper9602VS | ||||
DocumentReference.category | example | DocumentClassValueSet | ||||
DocumentReference.relatesTo.code | required | DocumentRelationshipType | ||||
DocumentReference.securityLabel | extensible | All Security Labels | ||||
DocumentReference.content.format | preferred | DocumentReferenceFormatCodeSet (a valid code from http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem ) | ||||
DocumentReference.context.event | example | ActCode | ||||
DocumentReference.context.facilityType | example | FacilityTypeCodeValueSet | ||||
DocumentReference.context.practiceSetting | example | PracticeSettingCodeValueSet |
Id | Grade | Path(s) | Details | Requirements |
att-1 | error | DocumentReference.content.attachment | If the Attachment has data, it SHALL have a contentType : data.empty() or contentType.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** elements | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
per-1 | error | DocumentReference.context.period | If present, start SHALL have a lower value than end : start.hasValue().not() or end.hasValue().not() or (start <= end) | |
ref-1 | error | DocumentReference.subject, DocumentReference.author, DocumentReference.authenticator, DocumentReference.custodian, DocumentReference.relatesTo.target, DocumentReference.context.encounter, DocumentReference.context.sourcePatientInfo, DocumentReference.context.related | SHALL have a contained resource if a local reference is provided : reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) |
This structure is derived from NoBasisDocumentReference
Summary
Must-Support: 4 elements
Structures
This structure refers to these other structures:
Differential View
This structure is derived from NoBasisDocumentReference
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() | 0..* | NoBasisDocumentReference | A reference to a document | |
![]() ![]() ![]() | S | 1..1 | code | current | superseded | entered-in-error |
![]() ![]() ![]() | 0..1 | CodeableConcept | Kind of document Binding: Volven 9602 Dokumenttyper (required) | |
![]() ![]() ![]() | 0..1 | Reference(Patient - Egde Health Gateway - profile for Norwegian patients) | Who/what is the subject of the document | |
![]() ![]() ![]() | S | 0..1 | instant | When this document reference was created |
![]() ![]() ![]() | 0..* | Reference(Practitioner - Egde Health Gateway - profile for Norwegian practitioners | Organization - Egde Health Gateway - profile for domestic use | Organization - Egde Health Gateway - profile for domestic use) | Who and/or what authored the document | |
![]() ![]() ![]() | S | 0..1 | string | Human-readable description |
![]() ![]() ![]() | ||||
![]() ![]() ![]() ![]() | S | 1..1 | EhgAttachment | Content in a format defined elsewhere |
![]() |
Path | Conformance | ValueSet |
DocumentReference.type | required | Dokumentyper9602VS |
Key Elements View
Path | Conformance | ValueSet |
DocumentReference.status | required | DocumentReferenceStatus |
DocumentReference.type | required | Dokumentyper9602VS |
Id | Grade | Path(s) | Details | Requirements |
att-1 | error | DocumentReference.content.attachment | If the Attachment has data, it SHALL have a contentType : data.empty() or contentType.exists() | |
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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(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() | |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** elements | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ref-1 | error | DocumentReference.subject, DocumentReference.author | SHALL have a contained resource if a local reference is provided : reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints![]() | ||||
---|---|---|---|---|---|---|---|---|
![]() ![]() | 0..* | NoBasisDocumentReference | A reference to a document | |||||
![]() ![]() ![]() | Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() ![]() | ΣN | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() ![]() | ?!ΣN | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() ![]() | N | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| ||||
![]() ![]() ![]() | N | 0..1 | Narrative | Text summary of the resource, for human interpretation | ||||
![]() ![]() ![]() | 0..* | Resource | Contained, inline Resources | |||||
![]() ![]() ![]() | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
![]() ![]() ![]() | ?!N | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url | ||||
![]() ![]() ![]() | ΣN | 0..1 | Identifier | Master Version Specific Identifier | ||||
![]() ![]() ![]() | ΣN | 0..* | Identifier | Other identifiers for the document | ||||
![]() ![]() ![]() | ?!SΣ | 1..1 | code | current | superseded | entered-in-error Binding: DocumentReferenceStatus (required): The status of the document reference. | ||||
![]() ![]() ![]() | ΣN | 0..1 | code | preliminary | final | amended | entered-in-error Binding: CompositionStatus (required): Status of the underlying document. | ||||
![]() ![]() ![]() | Σ | 0..1 | CodeableConcept | Kind of document Binding: Volven 9602 Dokumenttyper (required) | ||||
![]() ![]() ![]() | ΣN | 0..* | CodeableConcept | Categorization of document Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level. | ||||
![]() ![]() ![]() | ΣC | 0..1 | Reference(Patient - Egde Health Gateway - profile for Norwegian patients) | Who/what is the subject of the document | ||||
![]() ![]() ![]() | SΣ | 0..1 | instant | When this document reference was created | ||||
![]() ![]() ![]() | ΣC | 0..* | Reference(Practitioner - Egde Health Gateway - profile for Norwegian practitioners | Organization - Egde Health Gateway - profile for domestic use | Organization - Egde Health Gateway - profile for domestic use) | Who and/or what authored the document | ||||
![]() ![]() ![]() | CN | 0..1 | Reference(Practitioner | PractitionerRole | Organization) | Who/what authenticated the document | ||||
![]() ![]() ![]() | CN | 0..1 | Reference(Organization) | Organization which maintains the document | ||||
![]() ![]() ![]() | ΣN | 0..* | BackboneElement | Relationships to other documents | ||||
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
![]() ![]() ![]() ![]() | ?!ΣN | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() | ΣN | 1..1 | code | replaces | transforms | signs | appends Binding: DocumentRelationshipType (required): The type of relationship between documents. | ||||
![]() ![]() ![]() ![]() | ΣCN | 1..1 | Reference(DocumentReference) | Target of the relationship | ||||
![]() ![]() ![]() | SΣ | 0..1 | string | Human-readable description | ||||
![]() ![]() ![]() | ΣN | 0..* | CodeableConcept | Document security-tags Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | ||||
![]() ![]() ![]() | ΣN | 1..* | BackboneElement | Document referenced | ||||
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
![]() ![]() ![]() ![]() | ?!ΣN | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() | SC | 1..1 | EhgAttachment | Content in a format defined elsewhere | ||||
![]() ![]() ![]() ![]() | ΣN | 0..1 | Coding | Format/content rules for the document Binding: DocumentReferenceFormatCodeSet (preferred): Document Format Codes. | ||||
![]() ![]() ![]() | ΣN | 0..1 | BackboneElement | Clinical context of document | ||||
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
![]() ![]() ![]() ![]() | ?!ΣN | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
![]() ![]() ![]() ![]() | CN | 0..* | Reference(Encounter | EpisodeOfCare) | Context of the document content | ||||
![]() ![]() ![]() ![]() | N | 0..* | CodeableConcept | Main clinical acts documented Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented. | ||||
![]() ![]() ![]() ![]() | ΣCN | 0..1 | Period | Time of service that is being documented | ||||
![]() ![]() ![]() ![]() | N | 0..1 | CodeableConcept | Kind of facility where patient was seen Binding: FacilityTypeCodeValueSet (example): XDS Facility Type. | ||||
![]() ![]() ![]() ![]() | N | 0..1 | CodeableConcept | 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). | ||||
![]() ![]() ![]() ![]() | CN | 0..1 | Reference(Patient) | Patient demographics from source | ||||
![]() ![]() ![]() ![]() | CN | 0..* | Reference(Resource) | Related identifiers or resources | ||||
![]() |
Path | Conformance | ValueSet | ||||
DocumentReference.language | preferred | CommonLanguages
| ||||
DocumentReference.status | required | DocumentReferenceStatus | ||||
DocumentReference.docStatus | required | CompositionStatus | ||||
DocumentReference.type | required | Dokumentyper9602VS | ||||
DocumentReference.category | example | DocumentClassValueSet | ||||
DocumentReference.relatesTo.code | required | DocumentRelationshipType | ||||
DocumentReference.securityLabel | extensible | All Security Labels | ||||
DocumentReference.content.format | preferred | DocumentReferenceFormatCodeSet (a valid code from http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem ) | ||||
DocumentReference.context.event | example | ActCode | ||||
DocumentReference.context.facilityType | example | FacilityTypeCodeValueSet | ||||
DocumentReference.context.practiceSetting | example | PracticeSettingCodeValueSet |
Id | Grade | Path(s) | Details | Requirements |
att-1 | error | DocumentReference.content.attachment | If the Attachment has data, it SHALL have a contentType : data.empty() or contentType.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** elements | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
per-1 | error | DocumentReference.context.period | If present, start SHALL have a lower value than end : start.hasValue().not() or end.hasValue().not() or (start <= end) | |
ref-1 | error | DocumentReference.subject, DocumentReference.author, DocumentReference.authenticator, DocumentReference.custodian, DocumentReference.relatesTo.target, DocumentReference.context.encounter, DocumentReference.context.sourcePatientInfo, DocumentReference.context.related | SHALL have a contained resource if a local reference is provided : reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) |
This structure is derived from NoBasisDocumentReference
Summary
Must-Support: 4 elements
Structures
This structure refers to these other structures:
Other representations of profile: CSV, Excel, Schematron