eHealth Infrastructure
3.6.0 - release Denmark flag

eHealth Infrastructure, published by Den telemedicinske infrastruktur (eHealth Infrastructure). This guide is not an authorized publication; it is the continuous build for version 3.6.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/fut-infrastructure/implementation-guide/ and changes regularly. See the Directory of published versions

Resource Profile: ehealth-media

Official URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media Version: 3.6.0
Active as of 2025-10-16 Computable Name: ehealth-media

Introduction

A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.

Scope and Usage

In scope of the eHealth infrastructure Media resources are used with measurements, so that submitted measurement bundles can consist of e.g. Observations, QuestionnaireResponses, and Media. The actual media data can be contained as a payload of the Media resource (using the content.data element) or be referenced from the Media resource (using the content.url element).

Usage mode

The use of a Media resource is defined by the usageMode element. The following values are allowed:

  • raw: The media is an original raw data file, eg. an original image of a wound.
  • metadata: The media has no content, but it specifies metadata about the media, eg. the location of a wound specified by the bodySite element.
  • overlay: The media is an overlay on top of a raw media, eg. a perimeter drawing on top of an image of a wound.

Media grouping

Media resources can grouped together using the relatedTo element. Eg. an overlay media is related to the raw media. Media connected through relatedTo will be grouped together by means of a series id in the element series. The series id is maintained by the eHealth infrastructure. Grouping can only done among media resources that are based on the same service request. A group of media can be retrieved by searching for media resources by series id.

Storage of media

Media content delivered inline in the content.data element will be extracted and stored outside the resource in the eHealth infrastructure, and the element content.url will be set to allow retrieval of the content. The eHealth infrastructure will anonymize media image content. Sensitive metadata in the image will be removed before the image is stored. Media content delivered by reference in the content.url element will not be stored or anonymized by the eHealth infrastructure.

Image thumbnails

The eHealth infrastructure will automatically generate thumbnail representations of media image content delivered inline. The sizes of thumbnails are determined by configuration in the eHealth infrastructure. When retrieving a media, the thumbnail representations can be found in the thumbnail element. Thumbnails are generated asynchronously, so they may not be available immediately after the media is submitted. Each thumbnail representations will have status set to 'requested' and have no content element until the thumbnail is generated. In case that errors prevent the generation of a thumbnail, the status of the thumbnail will be set to 'failed'.

Update of media

Media resources can be updated, to change status, or to allow grouping of media that was not grouped at the time of submission by updating relatedTo, or to modify the content of a media submitted with usage mode 'overlay'. Update of content is only allowed for media with usageMode 'overlay'. The status of a Media resource can be updated from any of: 'preparation' | 'in-progress' | 'on-hold' | 'completed' to 'stopped'. Update of any other elements is denied.

Searching media

It is possible to search for Media based on:

  • episodeOfCare
  • subject
  • type
  • period
  • deviceMeasuringQuality
  • qualityCode
  • qualityType
  • series
  • usageMode
  • relatedTo

At least one of "subject" and "episodeOfCare" must be provided. "period" searches on range of "occurence".

Usages:

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
.. Media C 0..* Media A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference
Constraints: ehealth-media-usageMode-metadata-no-content
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension 3..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:episodeOfCare 1..1 (Complex) Associated Encounter episode of care
URL: http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare
..... extension 0..0
..... url 1..1 uri "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare"
..... value[x] 1..1 Reference(ehealth-episodeofcare) {r} Value of extension
.... extension:quality 0..* (Complex) Minimum requirements for qualities
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-quality
.... extension:resolvedTiming 1..1 (Complex) Resolved Timing
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing
.... extension:thumbnail 0..* (Complex) Media Thumbnail
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-thumbnail
.... extension:usageMode 1..1 code Usage mode
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-usage-mode
Binding: Media Usage Mode (required)
.... extension:relatedTo 0..* Reference(ehealth-media) {r} Related to
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-related-to
.... extension:series 0..1 string Series ID
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-series-id
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... status ?!Σ 1..1 code preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown
Binding: EventStatus (required): Codes identifying the lifecycle stage of an event.
... modality Σ 0..1 CodeableConcept The type of acquisition equipment/process
Binding: Media modality (required)
... view Σ 0..1 CodeableConcept Imaging view, e.g. Lateral or Antero-posterior
Binding: Media view (required)
... subject Σ 1..1 Reference(ehealth-patient | ehealth-practitioner | Group | ehealth-device | Specimen) {r} Who/What this Media is a record of
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
... created[x] Σ 1..1 When Media was collected
.... createdDateTime dateTime
.... createdPeriod Period
... operator Σ 0..1 Reference(ehealth-practitioner) {r} The person who generated the image
... bodySite Σ 0..1 CodeableConcept Observed body part
Binding: Body site (required)
... device Σ 0..1 Reference(ehealth-device | ehealth-devicemetric) {r} Observing Device
... content Σ 1..1 Attachment Actual Media - reference or data

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Media.status Base required EventStatus 📍4.0.1 FHIR Std.
Media.modality Base required Media modality 📦3.6.0 This IG
Media.view Base required Media view 📦3.6.0 This IG
Media.bodySite Base required Body site 📦3.6.0 This IG

Constraints

Id Grade Path(s) Description Expression
dom-2 error Media If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Media 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 Media 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 Media If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Media A resource should have narrative for robust management text.`div`.exists()
ehealth-media-usageMode-metadata-no-content error Media Media with usage mode 'metadata' cannot have content. extension('http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-usage-mode').value = 'metadata' implies (content.data.empty() and content.url.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 Media

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Media C 0..* Media A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference
Constraints: ehealth-media-usageMode-metadata-no-content
... Slices for extension 3..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:episodeOfCare 1..1 (Complex) Associated Encounter episode of care
URL: http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare
..... value[x] 1..1 Reference(ehealth-episodeofcare) {r} Value of extension
.... extension:quality 0..* (Complex) Minimum requirements for qualities
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-quality
.... extension:resolvedTiming 1..1 (Complex) Resolved Timing
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing
.... extension:thumbnail 0..* (Complex) Media Thumbnail
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-thumbnail
.... extension:usageMode 1..1 code Usage mode
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-usage-mode
Binding: Media Usage Mode (required)
.... extension:relatedTo 0..* Reference(ehealth-media) {r} Related to
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-related-to
.... extension:series 0..1 string Series ID
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-series-id
... basedOn 1..1 Reference(ehealth-servicerequest) {r} Procedure that caused this media to be created
... modality 0..1 CodeableConcept The type of acquisition equipment/process
Binding: Media modality (required)
... subject 1..1 Reference(ehealth-patient | ehealth-practitioner | Group | ehealth-device | Specimen) {r} Who/What this Media is a record of
.... reference 1..1 string Literal reference, Relative, internal or absolute URL
... created[x] 1..1 dateTime, Period When Media was collected
... operator 0..1 Reference(ehealth-practitioner) {r} The person who generated the image
... bodySite 0..1 CodeableConcept Observed body part
Binding: Body site (required)
... device 0..1 Reference(ehealth-device | ehealth-devicemetric) {r} Observing Device
... note
.... Slices for author[x] 0..1 Reference(Practitioner | Patient | RelatedPerson | Organization), string Individual responsible for the annotation
Slice: Unordered, Open by type:$this
..... author[x]:authorReference 0..1 Reference(ehealth-practitioner | ehealth-patient | ehealth-relatedperson) Individual responsible for the annotation
..... author[x]:authorString 0..1 string Individual responsible for the annotation

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Media.modality Base required Media modality 📦3.6.0 This IG
Media.view Base required Media view 📦3.6.0 This IG
Media.bodySite Base required Body site 📦3.6.0 This IG

Constraints

Id Grade Path(s) Description Expression
ehealth-media-usageMode-metadata-no-content error Media Media with usage mode 'metadata' cannot have content. extension('http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-usage-mode').value = 'metadata' implies (content.data.empty() and content.url.empty())
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Media C 0..* Media A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference
Constraints: ehealth-media-usageMode-metadata-no-content
... 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
... Slices for extension 3..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:episodeOfCare 1..1 (Complex) Associated Encounter episode of care
URL: http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..0
..... url 1..1 uri "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare"
..... value[x] 1..1 Reference(ehealth-episodeofcare) {r} Value of extension
.... extension:quality 0..* (Complex) Minimum requirements for qualities
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-quality
.... extension:resolvedTiming 1..1 (Complex) Resolved Timing
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing
.... extension:thumbnail 0..* (Complex) Media Thumbnail
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-thumbnail
.... extension:usageMode 1..1 code Usage mode
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-usage-mode
Binding: Media Usage Mode (required)
.... extension:relatedTo 0..* Reference(ehealth-media) {r} Related to
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-related-to
.... extension:series 0..1 string Series ID
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-series-id
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier Identifier(s) for the image
... basedOn Σ 1..1 Reference(ehealth-servicerequest) {r} Procedure that caused this media to be created
... partOf Σ 0..* Reference(Resource) Part of referenced event
... status ?!Σ 1..1 code preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown
Binding: EventStatus (required): Codes identifying the lifecycle stage of an event.
... type Σ 0..1 CodeableConcept Classification of media as image, video, or audio
Binding: MediaType (extensible): Codes for high level media categories.
... modality Σ 0..1 CodeableConcept The type of acquisition equipment/process
Binding: Media modality (required)
... view Σ 0..1 CodeableConcept Imaging view, e.g. Lateral or Antero-posterior
Binding: Media view (required)
... subject Σ 1..1 Reference(ehealth-patient | ehealth-practitioner | Group | ehealth-device | Specimen) {r} Who/What this Media is a record of
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 0..1 string Text alternative for the resource
... encounter Σ 0..1 Reference(Encounter) Encounter associated with media
... created[x] Σ 1..1 When Media was collected
.... createdDateTime dateTime
.... createdPeriod Period
... issued Σ 0..1 instant Date/Time this version was made available
... operator Σ 0..1 Reference(ehealth-practitioner) {r} The person who generated the image
... reasonCode Σ 0..* CodeableConcept Why was event performed?
Binding: ProcedureReasonCodes (example): The reason for the media.
... bodySite Σ 0..1 CodeableConcept Observed body part
Binding: Body site (required)
... deviceName Σ 0..1 string Name of the device/manufacturer
... device Σ 0..1 Reference(ehealth-device | ehealth-devicemetric) {r} Observing Device
... height Σ 0..1 positiveInt Height of the image in pixels (photo/video)
... width Σ 0..1 positiveInt Width of the image in pixels (photo/video)
... frames Σ 0..1 positiveInt Number of frames if > 1 (photo)
... duration Σ 0..1 decimal Length in seconds (audio / video)
... content Σ 1..1 Attachment Actual Media - reference or data
... note 0..* Annotation Comments made about the media
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... Slices for author[x] Σ 0..1 Individual responsible for the annotation
Slice: Unordered, Closed by type:$this
..... authorReference Reference(Practitioner | Patient | RelatedPerson | Organization)
..... authorString string
..... author[x]:authorReference Σ 0..1 Reference(ehealth-practitioner | ehealth-patient | ehealth-relatedperson) Individual responsible for the annotation
..... author[x]:authorString Σ 0..1 string Individual responsible for the annotation
.... time Σ 0..1 dateTime When the annotation was made
.... text Σ 1..1 markdown The annotation - text content (as markdown)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Media.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Media.status Base required EventStatus 📍4.0.1 FHIR Std.
Media.type Base extensible Media Type 📍4.0.1 FHIR Std.
Media.modality Base required Media modality 📦3.6.0 This IG
Media.view Base required Media view 📦3.6.0 This IG
Media.subject.type Base extensible ResourceType 📍4.0.1 FHIR Std.
Media.reasonCode Base example Procedure Reason Codes 📍4.0.1 FHIR Std.
Media.bodySite Base required Body site 📦3.6.0 This IG

Constraints

Id Grade Path(s) Description Expression
dom-2 error Media If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Media 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 Media 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 Media If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Media A resource should have narrative for robust management text.`div`.exists()
ehealth-media-usageMode-metadata-no-content error Media Media with usage mode 'metadata' cannot have content. extension('http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-usage-mode').value = 'metadata' implies (content.data.empty() and content.url.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()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Media C 0..* Media A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference
Constraints: ehealth-media-usageMode-metadata-no-content
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... Slices for extension 3..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:episodeOfCare 1..1 (Complex) Associated Encounter episode of care
URL: http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare
..... extension 0..0
..... url 1..1 uri "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare"
..... value[x] 1..1 Reference(ehealth-episodeofcare) {r} Value of extension
.... extension:quality 0..* (Complex) Minimum requirements for qualities
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-quality
.... extension:resolvedTiming 1..1 (Complex) Resolved Timing
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing
.... extension:thumbnail 0..* (Complex) Media Thumbnail
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-thumbnail
.... extension:usageMode 1..1 code Usage mode
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-usage-mode
Binding: Media Usage Mode (required)
.... extension:relatedTo 0..* Reference(ehealth-media) {r} Related to
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-related-to
.... extension:series 0..1 string Series ID
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-series-id
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... status ?!Σ 1..1 code preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown
Binding: EventStatus (required): Codes identifying the lifecycle stage of an event.
... modality Σ 0..1 CodeableConcept The type of acquisition equipment/process
Binding: Media modality (required)
... view Σ 0..1 CodeableConcept Imaging view, e.g. Lateral or Antero-posterior
Binding: Media view (required)
... subject Σ 1..1 Reference(ehealth-patient | ehealth-practitioner | Group | ehealth-device | Specimen) {r} Who/What this Media is a record of
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
... created[x] Σ 1..1 When Media was collected
.... createdDateTime dateTime
.... createdPeriod Period
... operator Σ 0..1 Reference(ehealth-practitioner) {r} The person who generated the image
... bodySite Σ 0..1 CodeableConcept Observed body part
Binding: Body site (required)
... device Σ 0..1 Reference(ehealth-device | ehealth-devicemetric) {r} Observing Device
... content Σ 1..1 Attachment Actual Media - reference or data

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Media.status Base required EventStatus 📍4.0.1 FHIR Std.
Media.modality Base required Media modality 📦3.6.0 This IG
Media.view Base required Media view 📦3.6.0 This IG
Media.bodySite Base required Body site 📦3.6.0 This IG

Constraints

Id Grade Path(s) Description Expression
dom-2 error Media If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Media 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 Media 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 Media If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Media A resource should have narrative for robust management text.`div`.exists()
ehealth-media-usageMode-metadata-no-content error Media Media with usage mode 'metadata' cannot have content. extension('http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-usage-mode').value = 'metadata' implies (content.data.empty() and content.url.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 Media

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Media C 0..* Media A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference
Constraints: ehealth-media-usageMode-metadata-no-content
... Slices for extension 3..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:episodeOfCare 1..1 (Complex) Associated Encounter episode of care
URL: http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare
..... value[x] 1..1 Reference(ehealth-episodeofcare) {r} Value of extension
.... extension:quality 0..* (Complex) Minimum requirements for qualities
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-quality
.... extension:resolvedTiming 1..1 (Complex) Resolved Timing
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing
.... extension:thumbnail 0..* (Complex) Media Thumbnail
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-thumbnail
.... extension:usageMode 1..1 code Usage mode
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-usage-mode
Binding: Media Usage Mode (required)
.... extension:relatedTo 0..* Reference(ehealth-media) {r} Related to
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-related-to
.... extension:series 0..1 string Series ID
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-series-id
... basedOn 1..1 Reference(ehealth-servicerequest) {r} Procedure that caused this media to be created
... modality 0..1 CodeableConcept The type of acquisition equipment/process
Binding: Media modality (required)
... subject 1..1 Reference(ehealth-patient | ehealth-practitioner | Group | ehealth-device | Specimen) {r} Who/What this Media is a record of
.... reference 1..1 string Literal reference, Relative, internal or absolute URL
... created[x] 1..1 dateTime, Period When Media was collected
... operator 0..1 Reference(ehealth-practitioner) {r} The person who generated the image
... bodySite 0..1 CodeableConcept Observed body part
Binding: Body site (required)
... device 0..1 Reference(ehealth-device | ehealth-devicemetric) {r} Observing Device
... note
.... Slices for author[x] 0..1 Reference(Practitioner | Patient | RelatedPerson | Organization), string Individual responsible for the annotation
Slice: Unordered, Open by type:$this
..... author[x]:authorReference 0..1 Reference(ehealth-practitioner | ehealth-patient | ehealth-relatedperson) Individual responsible for the annotation
..... author[x]:authorString 0..1 string Individual responsible for the annotation

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Media.modality Base required Media modality 📦3.6.0 This IG
Media.view Base required Media view 📦3.6.0 This IG
Media.bodySite Base required Body site 📦3.6.0 This IG

Constraints

Id Grade Path(s) Description Expression
ehealth-media-usageMode-metadata-no-content error Media Media with usage mode 'metadata' cannot have content. extension('http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-usage-mode').value = 'metadata' implies (content.data.empty() and content.url.empty())

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Media C 0..* Media A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference
Constraints: ehealth-media-usageMode-metadata-no-content
... 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
... Slices for extension 3..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:episodeOfCare 1..1 (Complex) Associated Encounter episode of care
URL: http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..0
..... url 1..1 uri "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare"
..... value[x] 1..1 Reference(ehealth-episodeofcare) {r} Value of extension
.... extension:quality 0..* (Complex) Minimum requirements for qualities
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-quality
.... extension:resolvedTiming 1..1 (Complex) Resolved Timing
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing
.... extension:thumbnail 0..* (Complex) Media Thumbnail
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-thumbnail
.... extension:usageMode 1..1 code Usage mode
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-usage-mode
Binding: Media Usage Mode (required)
.... extension:relatedTo 0..* Reference(ehealth-media) {r} Related to
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-related-to
.... extension:series 0..1 string Series ID
URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-series-id
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier Identifier(s) for the image
... basedOn Σ 1..1 Reference(ehealth-servicerequest) {r} Procedure that caused this media to be created
... partOf Σ 0..* Reference(Resource) Part of referenced event
... status ?!Σ 1..1 code preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown
Binding: EventStatus (required): Codes identifying the lifecycle stage of an event.
... type Σ 0..1 CodeableConcept Classification of media as image, video, or audio
Binding: MediaType (extensible): Codes for high level media categories.
... modality Σ 0..1 CodeableConcept The type of acquisition equipment/process
Binding: Media modality (required)
... view Σ 0..1 CodeableConcept Imaging view, e.g. Lateral or Antero-posterior
Binding: Media view (required)
... subject Σ 1..1 Reference(ehealth-patient | ehealth-practitioner | Group | ehealth-device | Specimen) {r} Who/What this Media is a record of
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 0..1 string Text alternative for the resource
... encounter Σ 0..1 Reference(Encounter) Encounter associated with media
... created[x] Σ 1..1 When Media was collected
.... createdDateTime dateTime
.... createdPeriod Period
... issued Σ 0..1 instant Date/Time this version was made available
... operator Σ 0..1 Reference(ehealth-practitioner) {r} The person who generated the image
... reasonCode Σ 0..* CodeableConcept Why was event performed?
Binding: ProcedureReasonCodes (example): The reason for the media.
... bodySite Σ 0..1 CodeableConcept Observed body part
Binding: Body site (required)
... deviceName Σ 0..1 string Name of the device/manufacturer
... device Σ 0..1 Reference(ehealth-device | ehealth-devicemetric) {r} Observing Device
... height Σ 0..1 positiveInt Height of the image in pixels (photo/video)
... width Σ 0..1 positiveInt Width of the image in pixels (photo/video)
... frames Σ 0..1 positiveInt Number of frames if > 1 (photo)
... duration Σ 0..1 decimal Length in seconds (audio / video)
... content Σ 1..1 Attachment Actual Media - reference or data
... note 0..* Annotation Comments made about the media
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... Slices for author[x] Σ 0..1 Individual responsible for the annotation
Slice: Unordered, Closed by type:$this
..... authorReference Reference(Practitioner | Patient | RelatedPerson | Organization)
..... authorString string
..... author[x]:authorReference Σ 0..1 Reference(ehealth-practitioner | ehealth-patient | ehealth-relatedperson) Individual responsible for the annotation
..... author[x]:authorString Σ 0..1 string Individual responsible for the annotation
.... time Σ 0..1 dateTime When the annotation was made
.... text Σ 1..1 markdown The annotation - text content (as markdown)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Media.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Media.status Base required EventStatus 📍4.0.1 FHIR Std.
Media.type Base extensible Media Type 📍4.0.1 FHIR Std.
Media.modality Base required Media modality 📦3.6.0 This IG
Media.view Base required Media view 📦3.6.0 This IG
Media.subject.type Base extensible ResourceType 📍4.0.1 FHIR Std.
Media.reasonCode Base example Procedure Reason Codes 📍4.0.1 FHIR Std.
Media.bodySite Base required Body site 📦3.6.0 This IG

Constraints

Id Grade Path(s) Description Expression
dom-2 error Media If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Media 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 Media 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 Media If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Media A resource should have narrative for robust management text.`div`.exists()
ehealth-media-usageMode-metadata-no-content error Media Media with usage mode 'metadata' cannot have content. extension('http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media-usage-mode').value = 'metadata' implies (content.data.empty() and content.url.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()

 

Other representations of profile: CSV, Excel, Schematron