cardea.fhir.Media

class cardea.fhir.Media(dict_values=None)

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

Parameters
  • resourceType – This is a Media resource

  • identifier – Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers.

  • basedOn – A procedure that is fulfilled in whole or in part by the creation of this media.

  • type – Whether the media is a photo (still image), an audio recording, or a video recording.

  • subtype – Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality.

  • view – The name of the imaging view e.g. Lateral or Antero-posterior (AP).

  • subject – Who/What this Media is a record of.

  • context – The encounter or episode of care that establishes the context for this media.

  • occurrenceDateTime – The date and time(s) at which the media was collected.

  • occurrencePeriod – The date and time(s) at which the media was collected.

  • operator – The person who administered the collection of the image.

  • reasonCode – Describes why the event occurred in coded or textual form.

  • bodySite – Indicates the site on the subject’s body where the media was collected (i.e. the target site).

  • device – The device used to collect the media.

  • height – Height of the image in pixels (photo/video).

  • width – Width of the image in pixels (photo/video).

  • frames – The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required.

  • duration – The duration of the recording in seconds - for audio and video.

  • content – The actual content of the media - inline or by direct reference to the media source file.

  • note – Comments made about the media by the performer, subject or other participants.

__init__(dict_values=None)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([dict_values])

Initialize self.

assert_type()

Checks class values follow set possible enumerations.

get_dataframe()

Returns dataframe from class attribute values.

get_eligible_relationships()

Returns class relationships for attributes that are used.

get_id()

Returns fhir class identifier.

get_relationships()

Returns class relationships.

set_attributes(dict_values)

Sets values to class attributes.