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 |
|---|---|
static ReferenceClientParam |
BASED_ON
Fluent Client search parameter constant for based-on
|
protected List<Reference> |
basedOn
A procedure that is fulfilled in whole or in part by the creation of this media.
|
protected List<ProcedureRequest> |
basedOnTarget
The actual objects that are the target of the reference (A procedure that is fulfilled in whole or in part by the creation of this media.)
|
protected CodeableConcept |
bodySite
Indicates the site on the subject's body where the media was collected (i.e.
|
protected Attachment |
content
The actual content of the media - inline or by direct reference to the media source file.
|
protected Reference |
context
The encounter or episode of care that establishes the context for this media.
|
static ReferenceClientParam |
CONTEXT
Fluent Client search parameter constant for context
|
protected Resource |
contextTarget
The actual object that is the target of the reference (The encounter or episode of care that establishes the context for this media.)
|
static DateClientParam |
CREATED
Fluent Client search parameter constant for created
|
static DateClientParam |
DATE
Fluent Client search parameter constant for date
|
protected Reference |
device
The device used to collect the media.
|
static ReferenceClientParam |
DEVICE
Fluent Client search parameter constant for device
|
protected Resource |
deviceTarget
The actual object that is the target of the reference (The device used to collect the media.)
|
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.
|
static TokenClientParam |
IDENTIFIER
Fluent Client search parameter constant for identifier
|
static Include |
INCLUDE_BASED_ON
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_CONTEXT
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_DEVICE
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_OPERATOR
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements.
|
protected List<Annotation> |
note
Comments made about the media by the performer, subject or other participants.
|
protected Type |
occurrence
The date and time(s) at which the media was collected.
|
protected Reference |
operator
The person who administered the collection of the image.
|
static ReferenceClientParam |
OPERATOR
Fluent Client search parameter constant for operator
|
protected Practitioner |
operatorTarget
The actual object that is the target of the reference (The person who administered the collection of the image.)
|
static ReferenceClientParam |
PATIENT
Fluent Client search parameter constant for patient
|
protected List<CodeableConcept> |
reasonCode
Describes why the event occurred in coded or textual form.
|
static TokenClientParam |
SITE
Fluent Client search parameter constant for site
|
static String |
SP_BASED_ON
Search parameter: based-on
|
static String |
SP_CONTEXT
Search parameter: context
|
static String |
SP_CREATED
Search parameter: created
|
static String |
SP_DATE
Search parameter: date
|
static String |
SP_DEVICE
Search parameter: device
|
static String |
SP_IDENTIFIER
Search parameter: identifier
|
static String |
SP_OPERATOR
Search parameter: operator
|
static String |
SP_PATIENT
Search parameter: patient
|
static String |
SP_SITE
Search parameter: site
|
static String |
SP_SUBJECT
Search parameter: subject
|
static String |
SP_SUBTYPE
Search parameter: subtype
|
static String |
SP_TYPE
Search parameter: type
|
static String |
SP_VIEW
Search parameter: view
|
protected Reference |
subject
Who/What this Media is a record of.
|
static ReferenceClientParam |
SUBJECT
Fluent Client search parameter constant for subject
|
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).
|
static TokenClientParam |
SUBTYPE
Fluent Client search parameter constant for subtype
|
protected Enumeration<Media.DigitalMediaType> |
type
Whether the media is a photo (still image), an audio recording, or a video recording.
|
static TokenClientParam |
TYPE
Fluent Client search parameter constant for type
|
protected CodeableConcept |
view
The name of the imaging view e.g.
|
static TokenClientParam |
VIEW
Fluent Client search parameter constant for view
|
protected PositiveIntType |
width
Width of the image in pixels (photo/video).
|
contained, extension, modifierExtension, textid, implicitRules, language, metaRES_ID, SP_RES_ID, SP_RES_LANGUAGEINCLUDE_ALL, WILDCARD_ALL_SET| Constructor and Description |
|---|
Media()
Constructor
|
Media(Enumeration<Media.DigitalMediaType> type,
Attachment content)
Constructor
|
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setTextcopyValues, getId, getIdBase, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMetagetStructureFhirVersionEnum, isResource, setIdcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getIdElement, getLanguageElement, getUserData, setId, setUserDatagetMeta, getStructureFhirVersionEnum, setIdgetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentprotected List<Identifier> identifier
protected List<Reference> basedOn
protected List<ProcedureRequest> basedOnTarget
protected Enumeration<Media.DigitalMediaType> type
protected CodeableConcept subtype
protected CodeableConcept view
protected Resource subjectTarget
protected Reference context
protected Resource contextTarget
protected Type occurrence
protected Practitioner operatorTarget
protected List<CodeableConcept> reasonCode
protected CodeableConcept bodySite
protected Resource deviceTarget
protected PositiveIntType height
protected PositiveIntType width
protected PositiveIntType frames
protected UnsignedIntType duration
protected Attachment content
protected List<Annotation> note
public static final String SP_DATE
Description: When Media was collected
Type: date
Path: Media.occurrence[x]
public static final DateClientParam DATE
Description: When Media was collected
Type: date
Path: Media.occurrence[x]
public static final String SP_IDENTIFIER
Description: Identifier(s) for the image
Type: token
Path: Media.identifier
public static final TokenClientParam IDENTIFIER
Description: Identifier(s) for the image
Type: token
Path: Media.identifier
public static final String SP_CREATED
Description: Date attachment was first created
Type: date
Path: Media.content.creation
public static final DateClientParam CREATED
Description: Date attachment was first created
Type: date
Path: Media.content.creation
public static final String SP_SUBJECT
Description: Who/What this Media is a record of
Type: reference
Path: Media.subject
public static final ReferenceClientParam SUBJECT
Description: Who/What this Media is a record of
Type: reference
Path: Media.subject
public static final Include INCLUDE_SUBJECT
public static final String SP_TYPE
Description: photo | video | audio
Type: token
Path: Media.type
public static final TokenClientParam TYPE
Description: photo | video | audio
Type: token
Path: Media.type
public static final String SP_OPERATOR
Description: The person who generated the image
Type: reference
Path: Media.operator
public static final ReferenceClientParam OPERATOR
Description: The person who generated the image
Type: reference
Path: Media.operator
public static final Include INCLUDE_OPERATOR
public static final String SP_VIEW
Description: Imaging view, e.g. Lateral or Antero-posterior
Type: token
Path: Media.view
public static final TokenClientParam VIEW
Description: Imaging view, e.g. Lateral or Antero-posterior
Type: token
Path: Media.view
public static final String SP_SITE
Description: Body part in media
Type: token
Path: Media.bodySite
public static final TokenClientParam SITE
Description: Body part in media
Type: token
Path: Media.bodySite
public static final String SP_BASED_ON
Description: Procedure that caused this media to be created
Type: reference
Path: Media.basedOn
public static final ReferenceClientParam BASED_ON
Description: Procedure that caused this media to be created
Type: reference
Path: Media.basedOn
public static final Include INCLUDE_BASED_ON
public static final String SP_SUBTYPE
Description: The type of acquisition equipment/process
Type: token
Path: Media.subtype
public static final TokenClientParam SUBTYPE
Description: The type of acquisition equipment/process
Type: token
Path: Media.subtype
public static final String SP_PATIENT
Description: Who/What this Media is a record of
Type: reference
Path: Media.subject
public static final ReferenceClientParam PATIENT
Description: Who/What this Media is a record of
Type: reference
Path: Media.subject
public static final Include INCLUDE_PATIENT
public static final String SP_CONTEXT
Description: Encounter / Episode associated with media
Type: reference
Path: Media.context
public static final ReferenceClientParam CONTEXT
Description: Encounter / Episode associated with media
Type: reference
Path: Media.context
public static final Include INCLUDE_CONTEXT
public static final String SP_DEVICE
Description: Observing Device
Type: reference
Path: Media.device
public static final ReferenceClientParam DEVICE
Description: Observing Device
Type: reference
Path: Media.device
public static final Include INCLUDE_DEVICE
public Media()
public Media(Enumeration<Media.DigitalMediaType> type, Attachment content)
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 Media setIdentifier(List<Identifier> theIdentifier)
this for easy method chainingpublic boolean hasIdentifier()
public Identifier addIdentifier()
public Media addIdentifier(Identifier t)
public Identifier getIdentifierFirstRep()
identifier, creating it if it does not already existpublic List<Reference> getBasedOn()
basedOn (A procedure that is fulfilled in whole or in part by the creation of this media.)public Media setBasedOn(List<Reference> theBasedOn)
this for easy method chainingpublic boolean hasBasedOn()
public Reference addBasedOn()
public Media addBasedOn(Reference t)
public Reference getBasedOnFirstRep()
basedOn, creating it if it does not already exist@Deprecated public List<ProcedureRequest> getBasedOnTarget()
@Deprecated public ProcedureRequest addBasedOnTarget()
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 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 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 getContext()
context (The encounter or episode of care that establishes the context for this media.)public boolean hasContext()
public Media setContext(Reference value)
value - context (The encounter or episode of care that establishes the context for this media.)public Resource getContextTarget()
context 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 encounter or episode of care that establishes the context for this media.)public Media setContextTarget(Resource value)
value - context 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 encounter or episode of care that establishes the context for this media.)public Type getOccurrence()
occurrence (The date and time(s) at which the media was collected.)public DateTimeType getOccurrenceDateTimeType() throws FHIRException
occurrence (The date and time(s) at which the media was collected.)FHIRExceptionpublic boolean hasOccurrenceDateTimeType()
public Period getOccurrencePeriod() throws FHIRException
occurrence (The date and time(s) at which the media was collected.)FHIRExceptionpublic boolean hasOccurrencePeriod()
public boolean hasOccurrence()
public Media setOccurrence(Type value)
value - occurrence (The date and time(s) at which the media was collected.)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 List<CodeableConcept> getReasonCode()
reasonCode (Describes why the event occurred in coded or textual form.)public Media setReasonCode(List<CodeableConcept> theReasonCode)
this for easy method chainingpublic boolean hasReasonCode()
public CodeableConcept addReasonCode()
public Media addReasonCode(CodeableConcept t)
public CodeableConcept getReasonCodeFirstRep()
reasonCode, creating it if it does not already existpublic CodeableConcept getBodySite()
bodySite (Indicates the site on the subject's body where the media was collected (i.e. the target site).)public boolean hasBodySite()
public Media setBodySite(CodeableConcept value)
value - bodySite (Indicates the site on the subject's body where the media was collected (i.e. the target site).)public boolean hasDevice()
public Media setDevice(Reference value)
value - device (The device used to collect the media.)public Resource getDeviceTarget()
device 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 device used to collect the media.)public Media setDeviceTarget(Resource value)
value - device 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 device used to collect the media.)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.)public List<Annotation> getNote()
note (Comments made about the media by the performer, subject or other participants.)public Media setNote(List<Annotation> theNote)
this for easy method chainingpublic boolean hasNote()
public Annotation addNote()
public Media addNote(Annotation t)
public Annotation getNoteFirstRep()
note, creating it if it does not already existprotected void listChildren(List<Property> childrenList)
listChildren in class DomainResourcepublic Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException
getProperty in class DomainResourceFHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws FHIRException
setProperty in class DomainResourceFHIRExceptionpublic Base setProperty(String name, Base value) throws FHIRException
setProperty in class DomainResourceFHIRExceptionpublic Base makeProperty(int hash, String name) throws FHIRException
makeProperty in class DomainResourceFHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws FHIRException
getTypesForProperty in class DomainResourceFHIRExceptionpublic Base addChild(String name) throws FHIRException
addChild in class DomainResourceFHIRExceptionpublic 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 IBaseisEmpty in class DomainResourcepublic ResourceType getResourceType()
getResourceType in class ResourceCopyright © 2014–2017 University Health Network. All rights reserved.