Class Media
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.Media
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement,ca.uhn.fhir.model.api.IElement,ca.uhn.fhir.model.api.IResource,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseResource
public class Media extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR Media Resource (infrastructure.structure)Definition: A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/Media
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.DateClientParamCREATEDFluent Client search parameter constant for createdstatic ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_OPERATORConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PATIENTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_SUBJECTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.ReferenceClientParamOPERATORFluent Client search parameter constant for operatorstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientstatic StringSP_CREATEDSearch parameter constant for createdstatic StringSP_IDENTIFIERSearch parameter constant for identifierstatic StringSP_OPERATORSearch parameter constant for operatorstatic StringSP_PATIENTSearch parameter constant for patientstatic StringSP_SUBJECTSearch parameter constant for subjectstatic StringSP_SUBTYPESearch parameter constant for subtypestatic StringSP_TYPESearch parameter constant for typestatic StringSP_VIEWSearch parameter constant for viewstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBJECTFluent Client search parameter constant for subjectstatic ca.uhn.fhir.rest.gclient.TokenClientParamSUBTYPEFluent Client search parameter constant for subtypestatic ca.uhn.fhir.rest.gclient.TokenClientParamTYPEFluent Client search parameter constant for typestatic ca.uhn.fhir.rest.gclient.TokenClientParamVIEWFluent Client search parameter constant for view-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description Media()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifierDtaddIdentifier()Adds and returns a new value for identifier (id)MediaaddIdentifier(IdentifierDt theValue)Adds a given new value for identifier (id)<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)AttachmentDtgetContent()Gets the value(s) for content ().StringgetDeviceName()Gets the value(s) for deviceName ().ca.uhn.fhir.model.primitive.StringDtgetDeviceNameElement()Gets the value(s) for deviceName ().IntegergetDuration()Gets the value(s) for duration ().ca.uhn.fhir.model.primitive.UnsignedIntDtgetDurationElement()Gets the value(s) for duration ().IntegergetFrames()Gets the value(s) for frames ().ca.uhn.fhir.model.primitive.PositiveIntDtgetFramesElement()Gets the value(s) for frames ().IntegergetHeight()Gets the value(s) for height ().ca.uhn.fhir.model.primitive.PositiveIntDtgetHeightElement()Gets the value(s) for height ().List<IdentifierDt>getIdentifier()Gets the value(s) for identifier (id).IdentifierDtgetIdentifierFirstRep()Gets the first repetition for identifier (id), creating it if it does not already exist.ResourceReferenceDtgetOperator()Gets the value(s) for operator (who.actor).StringgetResourceName()ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()ResourceReferenceDtgetSubject()Gets the value(s) for subject (who.focus).CodeableConceptDtgetSubtype()Gets the value(s) for subtype (class).StringgetType()Gets the value(s) for type (class).ca.uhn.fhir.model.primitive.BoundCodeDt<DigitalMediaTypeEnum>getTypeElement()Gets the value(s) for type (class).CodeableConceptDtgetView()Gets the value(s) for view (class).IntegergetWidth()Gets the value(s) for width ().ca.uhn.fhir.model.primitive.PositiveIntDtgetWidthElement()Gets the value(s) for width ().booleanisEmpty()MediasetContent(AttachmentDt theValue)Sets the value(s) for content ()MediasetDeviceName(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for deviceName ()MediasetDeviceName(String theString)Sets the value for deviceName ()MediasetDuration(int theInteger)Sets the value for duration ()MediasetDuration(ca.uhn.fhir.model.primitive.UnsignedIntDt theValue)Sets the value(s) for duration ()MediasetFrames(int theInteger)Sets the value for frames ()MediasetFrames(ca.uhn.fhir.model.primitive.PositiveIntDt theValue)Sets the value(s) for frames ()MediasetHeight(int theInteger)Sets the value for height ()MediasetHeight(ca.uhn.fhir.model.primitive.PositiveIntDt theValue)Sets the value(s) for height ()MediasetIdentifier(List<IdentifierDt> theValue)Sets the value(s) for identifier (id)MediasetOperator(ResourceReferenceDt theValue)Sets the value(s) for operator (who.actor)MediasetSubject(ResourceReferenceDt theValue)Sets the value(s) for subject (who.focus)MediasetSubtype(CodeableConceptDt theValue)Sets the value(s) for subtype (class)MediasetType(DigitalMediaTypeEnum theValue)Sets the value(s) for type (class)MediasetType(ca.uhn.fhir.model.primitive.BoundCodeDt<DigitalMediaTypeEnum> theValue)Sets the value(s) for type (class)MediasetView(CodeableConceptDt theValue)Sets the value(s) for view (class)MediasetWidth(int theInteger)Sets the value for width ()MediasetWidth(ca.uhn.fhir.model.primitive.PositiveIntDt theValue)Sets the value(s) for width ()-
Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
-
-
-
Field Detail
-
SP_TYPE
public static final String SP_TYPE
Search parameter constant for typeDescription:
Type: token
Path: Media.type
- See Also:
- Constant Field Values
-
TYPE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE
Fluent Client search parameter constant for typeDescription:
Type: token
Path: Media.type
-
SP_SUBTYPE
public static final String SP_SUBTYPE
Search parameter constant for subtypeDescription:
Type: token
Path: Media.subtype
- See Also:
- Constant Field Values
-
SUBTYPE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBTYPE
Fluent Client search parameter constant for subtypeDescription:
Type: token
Path: Media.subtype
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter constant for identifierDescription:
Type: token
Path: Media.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription:
Type: token
Path: Media.identifier
-
SP_CREATED
public static final String SP_CREATED
Search parameter constant for createdDescription:
Type: date
Path: Media.content.creation
- See Also:
- Constant Field Values
-
CREATED
public static final ca.uhn.fhir.rest.gclient.DateClientParam CREATED
Fluent Client search parameter constant for createdDescription:
Type: date
Path: Media.content.creation
-
SP_SUBJECT
public static final String SP_SUBJECT
Search parameter constant for subjectDescription:
Type: reference
Path: Media.subject
- See Also:
- Constant Field Values
-
SUBJECT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
Fluent Client search parameter constant for subjectDescription:
Type: reference
Path: Media.subject
-
SP_OPERATOR
public static final String SP_OPERATOR
Search parameter constant for operatorDescription:
Type: reference
Path: Media.operator
- See Also:
- Constant Field Values
-
OPERATOR
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam OPERATOR
Fluent Client search parameter constant for operatorDescription:
Type: reference
Path: Media.operator
-
SP_VIEW
public static final String SP_VIEW
Search parameter constant for viewDescription:
Type: token
Path: Media.view
- See Also:
- Constant Field Values
-
VIEW
public static final ca.uhn.fhir.rest.gclient.TokenClientParam VIEW
Fluent Client search parameter constant for viewDescription:
Type: token
Path: Media.view
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter constant for patientDescription:
Type: reference
Path: Media.subject
- See Also:
- Constant Field Values
-
PATIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Fluent Client search parameter constant for patientDescription:
Type: reference
Path: Media.subject
-
INCLUDE_OPERATOR
public static final ca.uhn.fhir.model.api.Include INCLUDE_OPERATOR
Constant for fluent queries to be used to add include statements. Specifies the path value of "Media:operator".
-
INCLUDE_PATIENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Media:patient".
-
INCLUDE_SUBJECT
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Media:subject".
-
-
Constructor Detail
-
Media
public Media()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
- Specified by:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getTypeElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<DigitalMediaTypeEnum> getTypeElement()
Gets the value(s) for type (class). creating it if it does not exist. Will not returnnull.Definition: Whether the media is a photo (still image), an audio recording, or a video recording
-
getType
public String getType()
Gets the value(s) for type (class). creating it if it does not exist. This method may returnnull.Definition: Whether the media is a photo (still image), an audio recording, or a video recording
-
setType
public Media setType(ca.uhn.fhir.model.primitive.BoundCodeDt<DigitalMediaTypeEnum> theValue)
Sets the value(s) for type (class)Definition: Whether the media is a photo (still image), an audio recording, or a video recording
-
setType
public Media setType(DigitalMediaTypeEnum theValue)
Sets the value(s) for type (class)Definition: Whether the media is a photo (still image), an audio recording, or a video recording
-
getSubtype
public CodeableConceptDt getSubtype()
Gets the value(s) for subtype (class). creating it if it does not exist. Will not returnnull.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
-
setSubtype
public Media setSubtype(CodeableConceptDt theValue)
Sets the value(s) for subtype (class)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
-
getIdentifier
public List<IdentifierDt> getIdentifier()
Gets the value(s) for identifier (id). creating it if it does not exist. Will not returnnull.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
-
setIdentifier
public Media setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier (id)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
-
addIdentifier
public IdentifierDt addIdentifier()
Adds and returns a new value for identifier (id)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
-
addIdentifier
public Media addIdentifier(IdentifierDt theValue)
Adds a given new value for identifier (id)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
- Parameters:
theValue- The identifier to add (must not benull)
-
getIdentifierFirstRep
public IdentifierDt getIdentifierFirstRep()
Gets the first repetition for identifier (id), creating it if it does not already exist.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
-
getSubject
public ResourceReferenceDt getSubject()
Gets the value(s) for subject (who.focus). creating it if it does not exist. Will not returnnull.Definition: Who/What this Media is a record of
-
setSubject
public Media setSubject(ResourceReferenceDt theValue)
Sets the value(s) for subject (who.focus)Definition: Who/What this Media is a record of
-
getOperator
public ResourceReferenceDt getOperator()
Gets the value(s) for operator (who.actor). creating it if it does not exist. Will not returnnull.Definition: The person who administered the collection of the image
-
setOperator
public Media setOperator(ResourceReferenceDt theValue)
Sets the value(s) for operator (who.actor)Definition: The person who administered the collection of the image
-
getView
public CodeableConceptDt getView()
Gets the value(s) for view (class). creating it if it does not exist. Will not returnnull.Definition: The name of the imaging view e.g. Lateral or Antero-posterior (AP).
-
setView
public Media setView(CodeableConceptDt theValue)
Sets the value(s) for view (class)Definition: The name of the imaging view e.g. Lateral or Antero-posterior (AP).
-
getDeviceNameElement
public ca.uhn.fhir.model.primitive.StringDt getDeviceNameElement()
Gets the value(s) for deviceName (). creating it if it does not exist. Will not returnnull.Definition: The name of the device / manufacturer of the device that was used to make the recording
-
getDeviceName
public String getDeviceName()
Gets the value(s) for deviceName (). creating it if it does not exist. This method may returnnull.Definition: The name of the device / manufacturer of the device that was used to make the recording
-
setDeviceName
public Media setDeviceName(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for deviceName ()Definition: The name of the device / manufacturer of the device that was used to make the recording
-
setDeviceName
public Media setDeviceName(String theString)
Sets the value for deviceName ()Definition: The name of the device / manufacturer of the device that was used to make the recording
-
getHeightElement
public ca.uhn.fhir.model.primitive.PositiveIntDt getHeightElement()
Gets the value(s) for height (). creating it if it does not exist. Will not returnnull.Definition: Height of the image in pixels (photo/video)
-
getHeight
public Integer getHeight()
Gets the value(s) for height (). creating it if it does not exist. This method may returnnull.Definition: Height of the image in pixels (photo/video)
-
setHeight
public Media setHeight(ca.uhn.fhir.model.primitive.PositiveIntDt theValue)
Sets the value(s) for height ()Definition: Height of the image in pixels (photo/video)
-
setHeight
public Media setHeight(int theInteger)
Sets the value for height ()Definition: Height of the image in pixels (photo/video)
-
getWidthElement
public ca.uhn.fhir.model.primitive.PositiveIntDt getWidthElement()
Gets the value(s) for width (). creating it if it does not exist. Will not returnnull.Definition: Width of the image in pixels (photo/video)
-
getWidth
public Integer getWidth()
Gets the value(s) for width (). creating it if it does not exist. This method may returnnull.Definition: Width of the image in pixels (photo/video)
-
setWidth
public Media setWidth(ca.uhn.fhir.model.primitive.PositiveIntDt theValue)
Sets the value(s) for width ()Definition: Width of the image in pixels (photo/video)
-
setWidth
public Media setWidth(int theInteger)
Sets the value for width ()Definition: Width of the image in pixels (photo/video)
-
getFramesElement
public ca.uhn.fhir.model.primitive.PositiveIntDt getFramesElement()
Gets the value(s) for frames (). creating it if it does not exist. Will not returnnull.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
-
getFrames
public Integer getFrames()
Gets the value(s) for frames (). creating it if it does not exist. This method may returnnull.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
-
setFrames
public Media setFrames(ca.uhn.fhir.model.primitive.PositiveIntDt theValue)
Sets the value(s) for frames ()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
-
setFrames
public Media setFrames(int theInteger)
Sets the value for frames ()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
-
getDurationElement
public ca.uhn.fhir.model.primitive.UnsignedIntDt getDurationElement()
Gets the value(s) for duration (). creating it if it does not exist. Will not returnnull.Definition: The duration of the recording in seconds - for audio and video
-
getDuration
public Integer getDuration()
Gets the value(s) for duration (). creating it if it does not exist. This method may returnnull.Definition: The duration of the recording in seconds - for audio and video
-
setDuration
public Media setDuration(ca.uhn.fhir.model.primitive.UnsignedIntDt theValue)
Sets the value(s) for duration ()Definition: The duration of the recording in seconds - for audio and video
-
setDuration
public Media setDuration(int theInteger)
Sets the value for duration ()Definition: The duration of the recording in seconds - for audio and video
-
getContent
public AttachmentDt getContent()
Gets the value(s) for content (). creating it if it does not exist. Will not returnnull.Definition: The actual content of the media - inline or by direct reference to the media source file
-
setContent
public Media setContent(AttachmentDt theValue)
Sets the value(s) for content ()Definition: The actual content of the media - inline or by direct reference to the media source file
-
getResourceName
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-