A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.
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).
Media are immutable. Once they are created as a FHIR resource they cannot be updated or deleted, but they can be read based on id
or searched based on certain elements.
It is possible to search for Media based on:
At least one of “subject” and “context” must be provided. “period” searches on range of “occurence”.
The official URL for this profile is:
http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media
This profile builds on Media.
This profile was published on Fri Jul 01 12:30:20 UTC 2022 as a draft by ehealth.sundhed.dk.
Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.
Path | Conformance | ValueSet |
Media.language | extensible | Common Languages Max Binding: All Languages |
Media.type | required | DigitalMediaType |
Media.subtype | example | Media SubType |
Media.view | example | Media Collection View/Projection |
Media.reasonCode | example | Procedure Reason Codes |
Media.bodySite | example | SNOMED CT Body Structures |
Id | Path | Details | Requirements |
dom-2 | Media | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
dom-1 | Media | If the resource is contained in another resource, it SHALL NOT contain any narrative : contained.text.empty() | |
dom-4 | 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-3 | Media | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource : contained.where(('#'+id in %resource.descendants().reference).not()).empty() | |
mda-1 | Media | Height can only be used for a photo or video : height.empty() or type != 'audio' | |
mda-2 | Media | Width can only be used for a photo or video : width.empty() or type != 'audio' | |
mda-3 | Media | Frames can only be used for a photo : frames.empty() or type = 'photo' | |
mda-4 | Media | Duration can only be used for an audio or a video : duration.empty() or type != 'photo' | |
ele-1 | Media.extension:quality | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) | |
ext-1 | Media.extension:quality | Must have either extensions or value[x], not both : extension.exists() != value.exists() |