public class Media extends DomainResource
| Modifier and Type | Class and Description |
|---|---|
static class |
Media.DigitalMediaType |
static class |
Media.DigitalMediaTypeEnumFactory |
| Modifier and Type | Field and Description |
|---|---|
protected Attachment |
content
The actual content of the media - inline or by direct reference to the media source file.
|
protected StringType |
deviceName
The name of the device / manufacturer of the device that was used to make the recording.
|
protected UnsignedIntType |
duration
The duration of the recording in seconds - for audio and video.
|
protected PositiveIntType |
frames
The number of frames in a photo.
|
protected PositiveIntType |
height
Height of the image in pixels (photo/video).
|
protected List<Identifier> |
identifier
Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g.
|
protected Reference |
operator
The person who administered the collection of the image.
|
protected Practitioner |
operatorTarget
The actual object that is the target of the reference (The person who administered the collection of the image.)
|
static String |
SP_CREATED |
static String |
SP_IDENTIFIER |
static String |
SP_OPERATOR |
static String |
SP_PATIENT |
static String |
SP_SUBJECT |
static String |
SP_SUBTYPE |
static String |
SP_TYPE |
static String |
SP_VIEW |
protected Reference |
subject
Who/What this Media is a record of.
|
protected Resource |
subjectTarget
The actual object that is the target of the reference (Who/What this Media is a record of.)
|
protected CodeableConcept |
subtype
Details of the type of the media - usually, how it was acquired (what type of device).
|
protected Enumeration<Media.DigitalMediaType> |
type
Whether the media is a photo (still image), an audio recording, or a video recording.
|
protected CodeableConcept |
view
The name of the imaging view e.g.
|
protected PositiveIntType |
width
Width of the image in pixels (photo/video).
|
contained, extension, modifierExtension, textid, implicitRules, language, meta| Constructor and Description |
|---|
Media() |
Media(Enumeration<Media.DigitalMediaType> type,
Attachment content) |
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setTextcopyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, getStructureFhirVersionEnum, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMetasetIdcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getIdElement, getLanguageElement, getUserData, setId, setUserDataprotected Enumeration<Media.DigitalMediaType> type
protected CodeableConcept subtype
protected List<Identifier> identifier
protected Resource subjectTarget
protected Practitioner operatorTarget
protected CodeableConcept view
protected StringType deviceName
protected PositiveIntType height
protected PositiveIntType width
protected PositiveIntType frames
protected UnsignedIntType duration
protected Attachment content
public static final String SP_IDENTIFIER
public static final String SP_VIEW
public static final String SP_SUBTYPE
public static final String SP_CREATED
public static final String SP_SUBJECT
public static final String SP_PATIENT
public static final String SP_TYPE
public static final String SP_OPERATOR
public Media()
public Media(Enumeration<Media.DigitalMediaType> type, Attachment content)
public Enumeration<Media.DigitalMediaType> getTypeElement()
type (Whether the media is a photo (still image), an audio recording, or a video recording.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the valuepublic boolean hasTypeElement()
public boolean hasType()
public Media setTypeElement(Enumeration<Media.DigitalMediaType> value)
value - type (Whether the media is a photo (still image), an audio recording, or a video recording.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the valuepublic Media.DigitalMediaType getType()
public Media setType(Media.DigitalMediaType value)
value - Whether the media is a photo (still image), an audio recording, or a video recording.public CodeableConcept getSubtype()
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.)public boolean hasSubtype()
public Media setSubtype(CodeableConcept value)
value - 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.)public List<Identifier> getIdentifier()
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.)public boolean hasIdentifier()
public Identifier addIdentifier()
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.)public Media addIdentifier(Identifier t)
public Reference getSubject()
subject (Who/What this Media is a record of.)public boolean hasSubject()
public Media setSubject(Reference value)
value - subject (Who/What this Media is a record of.)public Resource getSubjectTarget()
subject The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Who/What this Media is a record of.)public Media setSubjectTarget(Resource value)
value - subject The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Who/What this Media is a record of.)public Reference getOperator()
operator (The person who administered the collection of the image.)public boolean hasOperator()
public Media setOperator(Reference value)
value - operator (The person who administered the collection of the image.)public Practitioner getOperatorTarget()
operator The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The person who administered the collection of the image.)public Media setOperatorTarget(Practitioner value)
value - operator The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The person who administered the collection of the image.)public CodeableConcept getView()
view (The name of the imaging view e.g. Lateral or Antero-posterior (AP).)public boolean hasView()
public Media setView(CodeableConcept value)
value - view (The name of the imaging view e.g. Lateral or Antero-posterior (AP).)public StringType getDeviceNameElement()
deviceName (The name of the device / manufacturer of the device that was used to make the recording.). This is the underlying object with id, value and extensions. The accessor "getDeviceName" gives direct access to the valuepublic boolean hasDeviceNameElement()
public boolean hasDeviceName()
public Media setDeviceNameElement(StringType value)
value - deviceName (The name of the device / manufacturer of the device that was used to make the recording.). This is the underlying object with id, value and extensions. The accessor "getDeviceName" gives direct access to the valuepublic String getDeviceName()
public Media setDeviceName(String value)
value - The name of the device / manufacturer of the device that was used to make the recording.public PositiveIntType getHeightElement()
height (Height of the image in pixels (photo/video).). This is the underlying object with id, value and extensions. The accessor "getHeight" gives direct access to the valuepublic boolean hasHeightElement()
public boolean hasHeight()
public Media setHeightElement(PositiveIntType value)
value - height (Height of the image in pixels (photo/video).). This is the underlying object with id, value and extensions. The accessor "getHeight" gives direct access to the valuepublic int getHeight()
public Media setHeight(int value)
value - Height of the image in pixels (photo/video).public PositiveIntType getWidthElement()
width (Width of the image in pixels (photo/video).). This is the underlying object with id, value and extensions. The accessor "getWidth" gives direct access to the valuepublic boolean hasWidthElement()
public boolean hasWidth()
public Media setWidthElement(PositiveIntType value)
value - width (Width of the image in pixels (photo/video).). This is the underlying object with id, value and extensions. The accessor "getWidth" gives direct access to the valuepublic int getWidth()
public Media setWidth(int value)
value - Width of the image in pixels (photo/video).public PositiveIntType getFramesElement()
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.). This is the underlying object with id, value and extensions. The accessor "getFrames" gives direct access to the valuepublic boolean hasFramesElement()
public boolean hasFrames()
public Media setFramesElement(PositiveIntType value)
value - 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.). This is the underlying object with id, value and extensions. The accessor "getFrames" gives direct access to the valuepublic int getFrames()
public Media setFrames(int value)
value - 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.public UnsignedIntType getDurationElement()
duration (The duration of the recording in seconds - for audio and video.). This is the underlying object with id, value and extensions. The accessor "getDuration" gives direct access to the valuepublic boolean hasDurationElement()
public boolean hasDuration()
public Media setDurationElement(UnsignedIntType value)
value - duration (The duration of the recording in seconds - for audio and video.). This is the underlying object with id, value and extensions. The accessor "getDuration" gives direct access to the valuepublic int getDuration()
public Media setDuration(int value)
value - The duration of the recording in seconds - for audio and video.public Attachment getContent()
content (The actual content of the media - inline or by direct reference to the media source file.)public boolean hasContent()
public Media setContent(Attachment value)
value - content (The actual content of the media - inline or by direct reference to the media source file.)protected void listChildren(List<Property> childrenList)
listChildren in class DomainResourcepublic void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
addChild in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic String fhirType()
fhirType in class DomainResourcepublic Media copy()
copy in class DomainResourcepublic boolean equalsDeep(Base other)
equalsDeep in class DomainResourcepublic boolean equalsShallow(Base other)
equalsShallow in class DomainResourcepublic boolean isEmpty()
isEmpty in interface org.hl7.fhir.instance.model.api.IBaseisEmpty in class DomainResourcepublic ResourceType getResourceType()
getResourceType in class ResourceCopyright © 2014–2018 University Health Network. All rights reserved.