Inera Core Implementation Guide
0.2.0 - ci-build Sweden

Inera Core Implementation Guide - Local Development build (v0.2.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: DocumentReference Base Inera ( Experimental )

Official URL: https://inera.se/fhir/core/StructureDefinition/documentreference-base-inera Version: 0.2.0
Draft as of 2025-11-24 Computable Name: DocumentReferenceBaseInera

Svensk profil för vårdkontaktanteckningar och kliniska dokument baserad på TKB GetCareDocumentation v2.0.

Används för:

  • Vårdkontaktanteckningar
  • Läkarintyg
  • Epikrisutskrivningssammanfattning
  • Operationsberättelser
  • Andra kliniska dokument

Källa: TKB GetCareDocumentation v2.0 (clinicalprocess:healthcond:description)

Usages:

  • This Profile is not used by any profiles in this Implementation Guide

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. DocumentReference 0..* DocumentReference A reference to a document
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... masterIdentifier SΣ 0..1 Identifier Dokument-ID
... identifier SΣ 0..* Identifier Övriga identifierare
... status ?!SΣ 1..1 code Status
Binding: DocumentReferenceStatus (required)
... docStatus SΣ 0..1 code Dokumentstatus
Binding: CompositionStatus (required)
... type SΣ 1..1 CodeableConcept Dokumenttyp
Binding: DocumentTypeValueSet (preferred)
.... text SΣ 0..1 string Dokumenttyp (text)
... category SΣ 0..* CodeableConcept Dokumentkategori
Binding: DocumentClassValueSet (extensible)
... subject SΣ 1..1 Reference(Patient Base Inera) Patient
... date SΣ 0..1 instant Vårdtillfälle/dokumentdatum
... author SΣ 0..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Författare
... authenticator S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera) Attestant
... custodian S 0..1 Reference(Organization Base Inera) Vårdgivare
... relatesTo SΣ 0..* BackboneElement Relation till annat dokument
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code SΣ 1..1 code Relationstyp
Binding: DocumentRelationshipType (required): The type of relationship between documents.
.... target SΣ 1..1 Reference(DocumentReference) Relaterat dokument
... description SΣ 0..1 string Beskrivning
... securityLabel SΣ 0..* CodeableConcept Säkerhetsklassificering
Binding: All Security Labels (extensible)
... content SΣ 1..* BackboneElement Dokumentinnehåll
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... attachment SΣ 1..1 Attachment Dokumentfil
..... contentType SΣ 1..1 code MIME-typ
Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed.
Example General: text/plain; charset=UTF-8, image/png
..... data S 0..1 base64Binary Dokumentdata (base64)
..... url SΣ 0..1 url Dokument-URL
Example General: http://www.acme.com/logo-small.png
..... creation SΣ 0..1 dateTime Skapandedatum
.... format SΣ 0..1 Coding Dokumentformat
Binding: DocumentReferenceFormatCodeSet (preferred): Document Format Codes.
... context SΣ 0..1 BackboneElement Vårdkontext
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... encounter S 0..* Reference(Encounter Base Inera) Vårdkontakt
.... event S 0..* CodeableConcept Vårdhändelse
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
.... period SΣ 0..1 Period Tidsperiod
.... facilityType S 0..1 CodeableConcept Vårdtyp
Binding: FacilityTypeCodeValueSet (example): XDS Facility Type.
.... practiceSetting S 0..1 CodeableConcept Verksamhetsområde
Binding: PracticeSettingCodeValueSet (example): Additional details about where the content was created (e.g. clinical specialty).
.... sourcePatientInfo S 0..1 Reference(Patient Base Inera) Patientinformation från källan
.... related S 0..* Reference(Resource) Relaterade resurser

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
DocumentReference.status Base required DocumentReferenceStatus 📦4.0.1 FHIR Std.
DocumentReference.docStatus Base required CompositionStatus 📦4.0.1 FHIR Std.
DocumentReference.type Base preferred Document Type Value Set 📦4.0.1 FHIR Std.
DocumentReference.category Base extensible Document Class Value Set 📦4.0.1 FHIR Std.
DocumentReference.relatesTo.​code Base required DocumentRelationshipType 📍4.0.1 FHIR Std.
DocumentReference.securityLabel Base extensible SecurityLabels 📦4.0.1 FHIR Std.
DocumentReference.content.​attachment.contentType Base required MimeType 📍4.0.1 FHIR Std.
DocumentReference.content.​format Base preferred DocumentReference Format Code Set 📍4.0.1 FHIR Std.
DocumentReference.context.​event Base example v3 Code System ActCode 📦3.0.0 THO v7.0
DocumentReference.context.​facilityType Base example Facility Type Code Value Set 📍4.0.1 FHIR Std.
DocumentReference.context.​practiceSetting Base example Practice Setting Code Value Set 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
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** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from DocumentReference

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. DocumentReference 0..* DocumentReference A reference to a document
... masterIdentifier S 0..1 Identifier Dokument-ID
... identifier S 0..* Identifier Övriga identifierare
... status S 1..1 code Status
Binding: DocumentReferenceStatus (required)
... docStatus S 0..1 code Dokumentstatus
Binding: CompositionStatus (required)
... type S 1..1 CodeableConcept Dokumenttyp
Binding: DocumentTypeValueSet (preferred)
.... text S 0..1 string Dokumenttyp (text)
... category S 0..* CodeableConcept Dokumentkategori
Binding: DocumentClassValueSet (extensible)
... subject S 1..1 Reference(Patient Base Inera) Patient
... date S 0..1 instant Vårdtillfälle/dokumentdatum
... author S 0..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Författare
... authenticator S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera) Attestant
... custodian S 0..1 Reference(Organization Base Inera) Vårdgivare
... relatesTo S 0..* BackboneElement Relation till annat dokument
.... code S 1..1 code Relationstyp
.... target S 1..1 Reference(DocumentReference) Relaterat dokument
... description S 0..1 string Beskrivning
... securityLabel S 0..* CodeableConcept Säkerhetsklassificering
Binding: All Security Labels (extensible)
... content S 1..* BackboneElement Dokumentinnehåll
.... attachment S 1..1 Attachment Dokumentfil
..... contentType S 1..1 code MIME-typ
..... data S 0..1 base64Binary Dokumentdata (base64)
..... url S 0..1 url Dokument-URL
..... creation S 0..1 dateTime Skapandedatum
.... format S 0..1 Coding Dokumentformat
... context S 0..1 BackboneElement Vårdkontext
.... encounter S 0..* Reference(Encounter Base Inera) Vårdkontakt
.... event S 0..* CodeableConcept Vårdhändelse
.... period S 0..1 Period Tidsperiod
.... facilityType S 0..1 CodeableConcept Vårdtyp
.... practiceSetting S 0..1 CodeableConcept Verksamhetsområde
.... sourcePatientInfo S 0..1 Reference(Patient Base Inera) Patientinformation från källan
.... related S 0..* Reference(Resource) Relaterade resurser

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
DocumentReference.status Base required DocumentReferenceStatus 📦4.0.1 FHIR Std.
DocumentReference.docStatus Base required CompositionStatus 📦4.0.1 FHIR Std.
DocumentReference.type Base preferred Document Type Value Set 📦4.0.1 FHIR Std.
DocumentReference.category Base extensible Document Class Value Set 📦4.0.1 FHIR Std.
DocumentReference.securityLabel Base extensible SecurityLabels 📦4.0.1 FHIR Std.
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. DocumentReference 0..* DocumentReference A reference to a document
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... masterIdentifier SΣ 0..1 Identifier Dokument-ID
... identifier SΣ 0..* Identifier Övriga identifierare
... status ?!SΣ 1..1 code Status
Binding: DocumentReferenceStatus (required)
... docStatus SΣ 0..1 code Dokumentstatus
Binding: CompositionStatus (required)
... type SΣ 1..1 CodeableConcept Dokumenttyp
Binding: DocumentTypeValueSet (preferred)
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 0..* Coding Code defined by a terminology system
.... text SΣ 0..1 string Dokumenttyp (text)
... category SΣ 0..* CodeableConcept Dokumentkategori
Binding: DocumentClassValueSet (extensible)
... subject SΣ 1..1 Reference(Patient Base Inera) Patient
... date SΣ 0..1 instant Vårdtillfälle/dokumentdatum
... author SΣ 0..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Författare
... authenticator S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera) Attestant
... custodian S 0..1 Reference(Organization Base Inera) Vårdgivare
... relatesTo SΣ 0..* BackboneElement Relation till annat dokument
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code SΣ 1..1 code Relationstyp
Binding: DocumentRelationshipType (required): The type of relationship between documents.
.... target SΣ 1..1 Reference(DocumentReference) Relaterat dokument
... description SΣ 0..1 string Beskrivning
... securityLabel SΣ 0..* CodeableConcept Säkerhetsklassificering
Binding: All Security Labels (extensible)
... content SΣ 1..* BackboneElement Dokumentinnehåll
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... attachment SΣ 1..1 Attachment Dokumentfil
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... contentType SΣ 1..1 code MIME-typ
Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed.
Example General: text/plain; charset=UTF-8, image/png
..... language Σ 0..1 code Human language of the content (BCP-47)
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding

Example General: en-AU
..... data S 0..1 base64Binary Dokumentdata (base64)
..... url SΣ 0..1 url Dokument-URL
Example General: http://www.acme.com/logo-small.png
..... size Σ 0..1 unsignedInt Number of bytes of content (if url provided)
..... hash Σ 0..1 base64Binary Hash of the data (sha-1, base64ed)
..... title Σ 0..1 string Label to display in place of the data
Example General: Official Corporate Logo
..... creation SΣ 0..1 dateTime Skapandedatum
.... format SΣ 0..1 Coding Dokumentformat
Binding: DocumentReferenceFormatCodeSet (preferred): Document Format Codes.
... context SΣ 0..1 BackboneElement Vårdkontext
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... encounter S 0..* Reference(Encounter Base Inera) Vårdkontakt
.... event S 0..* CodeableConcept Vårdhändelse
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
.... period SΣ 0..1 Period Tidsperiod
.... facilityType S 0..1 CodeableConcept Vårdtyp
Binding: FacilityTypeCodeValueSet (example): XDS Facility Type.
.... practiceSetting S 0..1 CodeableConcept Verksamhetsområde
Binding: PracticeSettingCodeValueSet (example): Additional details about where the content was created (e.g. clinical specialty).
.... sourcePatientInfo S 0..1 Reference(Patient Base Inera) Patientinformation från källan
.... related S 0..* Reference(Resource) Relaterade resurser

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
DocumentReference.language Base preferred Common Languages 📍4.0.1 FHIR Std.
DocumentReference.status Base required DocumentReferenceStatus 📦4.0.1 FHIR Std.
DocumentReference.docStatus Base required CompositionStatus 📦4.0.1 FHIR Std.
DocumentReference.type Base preferred Document Type Value Set 📦4.0.1 FHIR Std.
DocumentReference.category Base extensible Document Class Value Set 📦4.0.1 FHIR Std.
DocumentReference.relatesTo.​code Base required DocumentRelationshipType 📍4.0.1 FHIR Std.
DocumentReference.securityLabel Base extensible SecurityLabels 📦4.0.1 FHIR Std.
DocumentReference.content.​attachment.contentType Base required MimeType 📍4.0.1 FHIR Std.
DocumentReference.content.​attachment.language Base preferred Common Languages 📍4.0.1 FHIR Std.
DocumentReference.content.​format Base preferred DocumentReference Format Code Set 📍4.0.1 FHIR Std.
DocumentReference.context.​event Base example v3 Code System ActCode 📦3.0.0 THO v7.0
DocumentReference.context.​facilityType Base example Facility Type Code Value Set 📍4.0.1 FHIR Std.
DocumentReference.context.​practiceSetting Base example Practice Setting Code Value Set 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
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** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. DocumentReference 0..* DocumentReference A reference to a document
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... masterIdentifier SΣ 0..1 Identifier Dokument-ID
... identifier SΣ 0..* Identifier Övriga identifierare
... status ?!SΣ 1..1 code Status
Binding: DocumentReferenceStatus (required)
... docStatus SΣ 0..1 code Dokumentstatus
Binding: CompositionStatus (required)
... type SΣ 1..1 CodeableConcept Dokumenttyp
Binding: DocumentTypeValueSet (preferred)
.... text SΣ 0..1 string Dokumenttyp (text)
... category SΣ 0..* CodeableConcept Dokumentkategori
Binding: DocumentClassValueSet (extensible)
... subject SΣ 1..1 Reference(Patient Base Inera) Patient
... date SΣ 0..1 instant Vårdtillfälle/dokumentdatum
... author SΣ 0..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Författare
... authenticator S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera) Attestant
... custodian S 0..1 Reference(Organization Base Inera) Vårdgivare
... relatesTo SΣ 0..* BackboneElement Relation till annat dokument
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code SΣ 1..1 code Relationstyp
Binding: DocumentRelationshipType (required): The type of relationship between documents.
.... target SΣ 1..1 Reference(DocumentReference) Relaterat dokument
... description SΣ 0..1 string Beskrivning
... securityLabel SΣ 0..* CodeableConcept Säkerhetsklassificering
Binding: All Security Labels (extensible)
... content SΣ 1..* BackboneElement Dokumentinnehåll
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... attachment SΣ 1..1 Attachment Dokumentfil
..... contentType SΣ 1..1 code MIME-typ
Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed.
Example General: text/plain; charset=UTF-8, image/png
..... data S 0..1 base64Binary Dokumentdata (base64)
..... url SΣ 0..1 url Dokument-URL
Example General: http://www.acme.com/logo-small.png
..... creation SΣ 0..1 dateTime Skapandedatum
.... format SΣ 0..1 Coding Dokumentformat
Binding: DocumentReferenceFormatCodeSet (preferred): Document Format Codes.
... context SΣ 0..1 BackboneElement Vårdkontext
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... encounter S 0..* Reference(Encounter Base Inera) Vårdkontakt
.... event S 0..* CodeableConcept Vårdhändelse
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
.... period SΣ 0..1 Period Tidsperiod
.... facilityType S 0..1 CodeableConcept Vårdtyp
Binding: FacilityTypeCodeValueSet (example): XDS Facility Type.
.... practiceSetting S 0..1 CodeableConcept Verksamhetsområde
Binding: PracticeSettingCodeValueSet (example): Additional details about where the content was created (e.g. clinical specialty).
.... sourcePatientInfo S 0..1 Reference(Patient Base Inera) Patientinformation från källan
.... related S 0..* Reference(Resource) Relaterade resurser

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
DocumentReference.status Base required DocumentReferenceStatus 📦4.0.1 FHIR Std.
DocumentReference.docStatus Base required CompositionStatus 📦4.0.1 FHIR Std.
DocumentReference.type Base preferred Document Type Value Set 📦4.0.1 FHIR Std.
DocumentReference.category Base extensible Document Class Value Set 📦4.0.1 FHIR Std.
DocumentReference.relatesTo.​code Base required DocumentRelationshipType 📍4.0.1 FHIR Std.
DocumentReference.securityLabel Base extensible SecurityLabels 📦4.0.1 FHIR Std.
DocumentReference.content.​attachment.contentType Base required MimeType 📍4.0.1 FHIR Std.
DocumentReference.content.​format Base preferred DocumentReference Format Code Set 📍4.0.1 FHIR Std.
DocumentReference.context.​event Base example v3 Code System ActCode 📦3.0.0 THO v7.0
DocumentReference.context.​facilityType Base example Facility Type Code Value Set 📍4.0.1 FHIR Std.
DocumentReference.context.​practiceSetting Base example Practice Setting Code Value Set 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
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** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

Differential View

This structure is derived from DocumentReference

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. DocumentReference 0..* DocumentReference A reference to a document
... masterIdentifier S 0..1 Identifier Dokument-ID
... identifier S 0..* Identifier Övriga identifierare
... status S 1..1 code Status
Binding: DocumentReferenceStatus (required)
... docStatus S 0..1 code Dokumentstatus
Binding: CompositionStatus (required)
... type S 1..1 CodeableConcept Dokumenttyp
Binding: DocumentTypeValueSet (preferred)
.... text S 0..1 string Dokumenttyp (text)
... category S 0..* CodeableConcept Dokumentkategori
Binding: DocumentClassValueSet (extensible)
... subject S 1..1 Reference(Patient Base Inera) Patient
... date S 0..1 instant Vårdtillfälle/dokumentdatum
... author S 0..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Författare
... authenticator S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera) Attestant
... custodian S 0..1 Reference(Organization Base Inera) Vårdgivare
... relatesTo S 0..* BackboneElement Relation till annat dokument
.... code S 1..1 code Relationstyp
.... target S 1..1 Reference(DocumentReference) Relaterat dokument
... description S 0..1 string Beskrivning
... securityLabel S 0..* CodeableConcept Säkerhetsklassificering
Binding: All Security Labels (extensible)
... content S 1..* BackboneElement Dokumentinnehåll
.... attachment S 1..1 Attachment Dokumentfil
..... contentType S 1..1 code MIME-typ
..... data S 0..1 base64Binary Dokumentdata (base64)
..... url S 0..1 url Dokument-URL
..... creation S 0..1 dateTime Skapandedatum
.... format S 0..1 Coding Dokumentformat
... context S 0..1 BackboneElement Vårdkontext
.... encounter S 0..* Reference(Encounter Base Inera) Vårdkontakt
.... event S 0..* CodeableConcept Vårdhändelse
.... period S 0..1 Period Tidsperiod
.... facilityType S 0..1 CodeableConcept Vårdtyp
.... practiceSetting S 0..1 CodeableConcept Verksamhetsområde
.... sourcePatientInfo S 0..1 Reference(Patient Base Inera) Patientinformation från källan
.... related S 0..* Reference(Resource) Relaterade resurser

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
DocumentReference.status Base required DocumentReferenceStatus 📦4.0.1 FHIR Std.
DocumentReference.docStatus Base required CompositionStatus 📦4.0.1 FHIR Std.
DocumentReference.type Base preferred Document Type Value Set 📦4.0.1 FHIR Std.
DocumentReference.category Base extensible Document Class Value Set 📦4.0.1 FHIR Std.
DocumentReference.securityLabel Base extensible SecurityLabels 📦4.0.1 FHIR Std.

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. DocumentReference 0..* DocumentReference A reference to a document
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
... text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... masterIdentifier SΣ 0..1 Identifier Dokument-ID
... identifier SΣ 0..* Identifier Övriga identifierare
... status ?!SΣ 1..1 code Status
Binding: DocumentReferenceStatus (required)
... docStatus SΣ 0..1 code Dokumentstatus
Binding: CompositionStatus (required)
... type SΣ 1..1 CodeableConcept Dokumenttyp
Binding: DocumentTypeValueSet (preferred)
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 0..* Coding Code defined by a terminology system
.... text SΣ 0..1 string Dokumenttyp (text)
... category SΣ 0..* CodeableConcept Dokumentkategori
Binding: DocumentClassValueSet (extensible)
... subject SΣ 1..1 Reference(Patient Base Inera) Patient
... date SΣ 0..1 instant Vårdtillfälle/dokumentdatum
... author SΣ 0..* Reference(PractitionerRole Base Inera | Device | Patient Base Inera | RelatedPerson | Organization Base Inera) Författare
... authenticator S 0..1 Reference(PractitionerRole Base Inera | Organization Base Inera) Attestant
... custodian S 0..1 Reference(Organization Base Inera) Vårdgivare
... relatesTo SΣ 0..* BackboneElement Relation till annat dokument
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... code SΣ 1..1 code Relationstyp
Binding: DocumentRelationshipType (required): The type of relationship between documents.
.... target SΣ 1..1 Reference(DocumentReference) Relaterat dokument
... description SΣ 0..1 string Beskrivning
... securityLabel SΣ 0..* CodeableConcept Säkerhetsklassificering
Binding: All Security Labels (extensible)
... content SΣ 1..* BackboneElement Dokumentinnehåll
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... attachment SΣ 1..1 Attachment Dokumentfil
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... contentType SΣ 1..1 code MIME-typ
Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed.
Example General: text/plain; charset=UTF-8, image/png
..... language Σ 0..1 code Human language of the content (BCP-47)
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding

Example General: en-AU
..... data S 0..1 base64Binary Dokumentdata (base64)
..... url SΣ 0..1 url Dokument-URL
Example General: http://www.acme.com/logo-small.png
..... size Σ 0..1 unsignedInt Number of bytes of content (if url provided)
..... hash Σ 0..1 base64Binary Hash of the data (sha-1, base64ed)
..... title Σ 0..1 string Label to display in place of the data
Example General: Official Corporate Logo
..... creation SΣ 0..1 dateTime Skapandedatum
.... format SΣ 0..1 Coding Dokumentformat
Binding: DocumentReferenceFormatCodeSet (preferred): Document Format Codes.
... context SΣ 0..1 BackboneElement Vårdkontext
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... encounter S 0..* Reference(Encounter Base Inera) Vårdkontakt
.... event S 0..* CodeableConcept Vårdhändelse
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.
.... period SΣ 0..1 Period Tidsperiod
.... facilityType S 0..1 CodeableConcept Vårdtyp
Binding: FacilityTypeCodeValueSet (example): XDS Facility Type.
.... practiceSetting S 0..1 CodeableConcept Verksamhetsområde
Binding: PracticeSettingCodeValueSet (example): Additional details about where the content was created (e.g. clinical specialty).
.... sourcePatientInfo S 0..1 Reference(Patient Base Inera) Patientinformation från källan
.... related S 0..* Reference(Resource) Relaterade resurser

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
DocumentReference.language Base preferred Common Languages 📍4.0.1 FHIR Std.
DocumentReference.status Base required DocumentReferenceStatus 📦4.0.1 FHIR Std.
DocumentReference.docStatus Base required CompositionStatus 📦4.0.1 FHIR Std.
DocumentReference.type Base preferred Document Type Value Set 📦4.0.1 FHIR Std.
DocumentReference.category Base extensible Document Class Value Set 📦4.0.1 FHIR Std.
DocumentReference.relatesTo.​code Base required DocumentRelationshipType 📍4.0.1 FHIR Std.
DocumentReference.securityLabel Base extensible SecurityLabels 📦4.0.1 FHIR Std.
DocumentReference.content.​attachment.contentType Base required MimeType 📍4.0.1 FHIR Std.
DocumentReference.content.​attachment.language Base preferred Common Languages 📍4.0.1 FHIR Std.
DocumentReference.content.​format Base preferred DocumentReference Format Code Set 📍4.0.1 FHIR Std.
DocumentReference.context.​event Base example v3 Code System ActCode 📦3.0.0 THO v7.0
DocumentReference.context.​facilityType Base example Facility Type Code Value Set 📍4.0.1 FHIR Std.
DocumentReference.context.​practiceSetting Base example Practice Setting Code Value Set 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
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** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

 

Other representations of profile: CSV, Excel, Schematron