Media

See FHIR specification

Limitations

At the moment the “content” field may only have one attachment.

Reading back attachments

When the resource is read back, the Attachments data is never contained in the resource, instead Media.content.attachment.url is given and the content may be downloaded from the given URL.

More information about attachments

Please read Dealing with binary content for more information.

Semantical type

The “view” field of the resource is used to determine the semantical type of the resource. If the field is not present the resource type will be used. Look at the List of registered codes for a complete list of codes registered in MIDATA. Include the required codes into your applications access filter if you need to use this resource.

Resource owner

If the resource contains a subject which is a Patient or Practitioner that user is the owner of the resource. Otherwise the creator of the resource is the owner.

Default value for “subject”

If a resource with no subject field is send to MIDATA, the backend will set the subject to the current user.

Read

Read a single Media by id.

Request:

[GET] /fhir/Media/<id>

Read specific version

Read a specific version of a single Media by id.

Request:

[GET] /fhir/Media/<id>/_history/<version>

Retrieve history

Retrieve all versions of a single resource.

Request:

[GET] /fhir/Media/<id>/_history

Search for resources of type Media

Request:

[GET] /fhir/Media?searchParams

List of supported search parameters:

Supported query parameters:

Name Type Description
_id string The resource identity
_lastUpdated date Only return resources which were last updated as specified by the given range
_page string  
based-on reference Procedure that caused this media to be created
created date When Media was collected
device reference Observing Device
encounter reference Encounter associated with media
identifier token Identifier(s) for the image
modality token The type of acquisition equipment/process
operator reference The person who generated the image
patient reference Who/What this Media is a record of
site token Observed body part
status token preparation - in-progress - not-done - suspended - aborted - completed - entered-in-error - unknown
subject reference Who/What this Media is a record of
type token Classification of media as image, video, or audio
view token Imaging view, e.g. Lateral or Antero-posterior

Create

Create a new resource of type Media.

Request:

[POST] /fhir/Media

Update

Updates a resource of type Media.

Request:

[PUT] /fhir/Media/<id>