Data Model Libraries
    Preparing search index...

    Media Class

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

    FHIR Specification

    • Short: A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference
    • Definition: A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.
    • FHIR Version: 4.3.0

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Methods

    parse getIdentifier setIdentifier addIdentifier hasIdentifier getBasedOn setBasedOn addBasedOn hasBasedOn getPartOf setPartOf addPartOf hasPartOf getStatusEnumType setStatusEnumType hasStatusEnumType getStatusElement setStatusElement hasStatusElement getStatus setStatus hasStatus getType setType hasType getModality setModality hasModality getView setView hasView getSubject setSubject hasSubject getEncounter setEncounter hasEncounter getCreated setCreated hasCreated getCreatedDateTimeType hasCreatedDateTimeType getCreatedPeriod hasCreatedPeriod getIssuedElement setIssuedElement hasIssuedElement getIssued setIssued hasIssued getOperator setOperator hasOperator getReasonCode setReasonCode addReasonCode hasReasonCode getBodySite setBodySite hasBodySite getDeviceNameElement setDeviceNameElement hasDeviceNameElement getDeviceName setDeviceName hasDeviceName getDevice setDevice hasDevice getHeightElement setHeightElement hasHeightElement getHeight setHeight hasHeight getWidthElement setWidthElement hasWidthElement getWidth setWidth hasWidth getFramesElement setFramesElement hasFramesElement getFrames setFrames hasFrames getDurationElement setDurationElement hasDurationElement getDuration setDuration hasDuration getContent setContent hasContent getNote setNote addNote hasNote fhirType isEmpty isRequiredFieldsEmpty copy toJSON getText setText hasText getContained setContained addContained hasContained getExtension setExtension hasExtension getExtensionByUrl addExtension removeExtension getModifierExtension setModifierExtension hasModifierExtension getModifierExtensionByUrl addModifierExtension removeModifierExtension resourceType getIdElement setIdElement hasIdElement getId setId hasId getMeta setMeta hasMeta getImplicitRulesElement setImplicitRulesElement hasImplicitRulesElement getImplicitRules setImplicitRules hasImplicitRules getLanguageElement setLanguageElement hasLanguageElement getLanguage setLanguage hasLanguage isResource isDataType isComplexDataType isPrimitive isBooleanPrimitive isStringPrimitive isNumberPrimitive isBigIntPrimitive isDateTimePrimitive copyValues initIdentifier initBasedOn initPartOf initReasonCode initNote

    Constructors

    Properties

    identifier?: Identifier[]

    Media.identifier Element

    FHIR Specification

    • Short: Identifier(s) for the image
    • Definition: 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.
    • Comment: The identifier label and use can be used to determine what kind of identifier it is.
    • FHIR Type: Identifier
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    basedOn?: Reference[]

    Media.basedOn Element

    FHIR Specification

    partOf?: Reference[]

    Media.partOf Element

    FHIR Specification

    • Short: Part of referenced event
    • Definition: A larger event of which this particular event is a component or step.
    • Comment: Not to be used to link an event to an Encounter - use Media.encounter for that. [The allowed reference resources may be adjusted as appropriate for the event resource].
    • Requirements: E.g. Drug administration as part of a procedure, procedure as part of observation, etc.
    • FHIR Type: Reference
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    eventStatusEnum: EventStatusEnum

    FHIR CodeSystem: EventStatus

    status: null | EnumCodeType

    Media.status Element

    FHIR Specification

    • Short: preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown
    • Definition: The current state of the {{title}}.
    • Comment: A nominal state-transition diagram can be found in the [[event.html#statemachine | Event pattern]] documentation Unknown does not represent "other" - one of the defined statuses must apply. Unknown is used when the authoring system is not sure what the current status is.
    • FHIR Type: code
    • Cardinality: 1..1
    • isModifier: true
    • isModifierReason: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
    • isSummary: true

    CodeSystem Enumeration: EventStatusEnum

    Media.type Element

    FHIR Specification

    • Short: Classification of media as image, video, or audio
    • Definition: A code that classifies whether the media is an image, video or audio recording or some other media category.
    • Requirements: Used for filtering what observations are retrieved and displayed.
    • FHIR Type: CodeableConcept
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    modality?: CodeableConcept

    Media.modality Element

    FHIR Specification

    • Short: The type of acquisition equipment/process
    • Definition: 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.
    • FHIR Type: CodeableConcept
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    Media.view Element

    FHIR Specification

    • Short: Imaging view, e.g. Lateral or Antero-posterior
    • Definition: The name of the imaging view e.g. Lateral or Antero-posterior (AP).
    • FHIR Type: CodeableConcept
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    subject?: Reference

    Media.subject Element

    FHIR Specification

    encounter?: Reference

    Media.encounter Element

    FHIR Specification

    • Short: Encounter associated with media
    • Definition: The encounter that establishes the context for this media.
    • Comment: This will typically be the encounter the media occurred within.
    • Requirements: Links the Media to the Encounter context.
    • FHIR Type: Reference
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    created?: IDataType

    Media.created[x] Element

    @ChoiceDataTypesMeta('Media.created[x]', ['dateTime','Period',]

    FHIR Specification

    • Short: When Media was collected
    • Definition: The date and time(s) at which the media was collected.
    • FHIR Types: 'dateTime', 'Period',
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    issued?: InstantType

    Media.issued Element

    FHIR Specification

    • Short: Date/Time this version was made available
    • Definition: The date and time this version of the media was made available to providers, typically after having been reviewed.
    • Comment: It may be the same as the lastUpdated time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the lastUpdated time of the resource itself due to a non-clinically significant update that does not require the new version to be reviewed and verified again.
    • FHIR Type: instant
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    operator?: Reference

    Media.operator Element

    FHIR Specification

    reasonCode?: CodeableConcept[]

    Media.reasonCode Element

    FHIR Specification

    • Short: Why was event performed?
    • Definition: Describes why the event occurred in coded or textual form.
    • Comment: Textual reasons can be captured using reasonCode.text.
    • FHIR Type: CodeableConcept
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: true
    bodySite?: CodeableConcept

    Media.bodySite Element

    FHIR Specification

    • Short: Observed body part
    • Definition: Indicates the site on the subject's body where the observation was made (i.e. the target site).
    • Comment: Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. If the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension bodySite.
    • FHIR Type: CodeableConcept
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    deviceName?: StringType

    Media.deviceName Element

    FHIR Specification

    • Short: Name of the device/manufacturer
    • Definition: The name of the device / manufacturer of the device that was used to make the recording.
    • FHIR Type: string
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    device?: Reference

    Media.device Element

    FHIR Specification

    Media.height Element

    FHIR Specification

    • Short: Height of the image in pixels (photo/video)
    • Definition: Height of the image in pixels (photo/video).
    • FHIR Type: positiveInt
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    Media.width Element

    FHIR Specification

    • Short: Width of the image in pixels (photo/video)
    • Definition: Width of the image in pixels (photo/video).
    • FHIR Type: positiveInt
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true

    Media.frames Element

    FHIR Specification

    • Short: Number of frames if > 1 (photo)
    • Definition: 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.
    • Comment: if the number of frames is not supplied, the value may be unknown. Applications should not assume that there is only one frame unless it is explicitly stated.
    • FHIR Type: positiveInt
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    duration?: DecimalType

    Media.duration Element

    FHIR Specification

    • Short: Length in seconds (audio / video)
    • Definition: The duration of the recording in seconds - for audio and video.
    • Comment: The duration might differ from occurrencePeriod if recording was paused.
    • FHIR Type: decimal
    • Cardinality: 0..1
    • isModifier: false
    • isSummary: true
    content: null | Attachment

    Media.content Element

    FHIR Specification

    • Short: Actual Media - reference or data
    • Definition: The actual content of the media - inline or by direct reference to the media source file.
    • Comment: Recommended content types: image/jpeg, image/png, image/tiff, video/mpeg, audio/mp4, application/dicom. Application/dicom can contain the transfer syntax as a parameter. For media that covers a period of time (video/sound), the content.creationTime is the end time. Creation time is used for tracking, organizing versions and searching.
    • FHIR Type: Attachment
    • Cardinality: 1..1
    • isModifier: false
    • isSummary: true
    note?: Annotation[]

    Media.note Element

    FHIR Specification

    • Short: Comments made about the media
    • Definition: Comments made about the media by the performer, subject or other participants.
    • Comment: Not to be used for observations, conclusions, etc. Instead use an Observation based on the Media/ImagingStudy resource.
    • FHIR Type: Annotation
    • Cardinality: 0..*
    • isModifier: false
    • isSummary: false

    Methods

    • Parse the provided Media JSON to instantiate the Media data model.

      Parameters

      • sourceJson: Value

        JSON representing FHIR Media

      • OptionaloptSourceField: string

        Optional data source field (e.g. <complexTypeName>.<complexTypeFieldName>); defaults to Media

      Returns undefined | Media

      Media data model or undefined for Media

      JsonError if the provided JSON is not a valid JSON object

    • Assigns the provided Subject object value to the subject property.

      Parameters

      • value: undefined | Reference

        the subject object value

      Returns this

      this

      @ReferenceTargets('Media.subject', ['Patient','Practitioner','PractitionerRole','Group','Device','Specimen','Location',])

      InvalidTypeError for invalid data type or reference value

    • Assigns the provided Operator object value to the operator property.

      Parameters

      • value: undefined | Reference

        the operator object value

      Returns this

      this

      @ReferenceTargets('Media.operator', ['Practitioner','PractitionerRole','Organization','CareTeam','Patient','Device','RelatedPerson',])

      InvalidTypeError for invalid data type or reference value

    • Assigns the provided value to the text property.

      Parameters

      Returns this

      this

    • Returns boolean

      true if the text property exists and has a value; false otherwise

    • Assigns the provided Resource array value to the contained property.

      Parameters

      • value: undefined | IResource[]

        the contained array value

      Returns this

      this

    • Returns boolean

      true if the contained property exists and has a value; false otherwise

    • Assigns the provided array of Extension values to the extension property.

      Parameters

      • extension: undefined | IExtension[]

        array of Extensions

      Returns this

      this

    • Determines if the extension property exists.

      Parameters

      • Optionalurl: string

        the url that identifies a specific Extension

      Returns boolean

      true if an Extension has the provided url; false otherwise

      If the url is provided, determines if an Extension having the provided url exists. If the url is not provided, determines if the extension property exists and has any values.

      AssertionError for invalid url

    • Adds the provided Extension to the extension property array.

      Parameters

      • extension: undefined | IExtension

        the Extension value to add to the extension property array

      Returns this

      this

    • Removes the Extension having the provided url from the extension property array.

      Parameters

      • url: string

        the url that identifies a specific Extension to remove

      Returns void

      AssertionError for invalid url

    • Determines if the modifierExtension property exists.

      Parameters

      • Optionalurl: string

        the url that identifies a specific Extension

      Returns boolean

      true if an Extension has the provided url

      If the url is provided, determines if an Extension having the provided url exists. If the url is not provided, determines if the modifierExtension property exists and has any values.

      AssertionError for invalid url

    • Assigns the provided PrimitiveType value to the id property.

      Parameters

      • element: undefined | IdType

        the id value

      Returns this

      this

    • Returns undefined | string

      the id property value as a primitive value

    • Assigns the provided primitive value to the id property.

      Parameters

      • value: undefined | string

        the id value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns boolean

      true if the id property exists and has a value; false otherwise

    • Assigns the provided value to the meta property.

      Parameters

      • value: undefined | Meta

        the meta value

      Returns this

      this

    • Returns boolean

      true if the meta property exists and has a value; false otherwise

    • Assigns the provided primitive value to the implicitRules property.

      Parameters

      • value: undefined | string

        the implicitRules value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns undefined | string

      the language property value as a primitive value

    • Assigns the provided primitive value to the language property.

      Parameters

      • value: undefined | string

        the language value

      Returns this

      this

      PrimitiveTypeError for invalid primitive types

    • Returns boolean

      true if the language property exists and has a value; false otherwise

    • Returns boolean

      true if the instance is a FHIR complex or primitive datatype; false otherwise