Class Media
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
public class Media extends DomainResource
A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMedia.MediaStatusstatic classMedia.MediaStatusEnumFactory
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.ReferenceClientParamBASED_ONFluent Client search parameter constant for based-onprotected List<Reference>basedOnA procedure that is fulfilled in whole or in part by the creation of this media.protected List<Resource>basedOnTargetThe 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 CodeableConceptbodySiteIndicates the site on the subject's body where the observation was made (i.e.protected AttachmentcontentThe actual content of the media - inline or by direct reference to the media source file.protected TypecreatedThe date and time(s) at which the media was collected.static ca.uhn.fhir.rest.gclient.DateClientParamCREATEDFluent Client search parameter constant for createdprotected ReferencedeviceThe device used to collect the media.static ca.uhn.fhir.rest.gclient.ReferenceClientParamDEVICEFluent Client search parameter constant for deviceprotected StringTypedeviceNameThe name of the device / manufacturer of the device that was used to make the recording.protected ResourcedeviceTargetThe actual object that is the target of the reference (The device used to collect the media.)protected DecimalTypedurationThe duration of the recording in seconds - for audio and video.protected ReferenceencounterThe encounter that establishes the context for this media.static ca.uhn.fhir.rest.gclient.ReferenceClientParamENCOUNTERFluent Client search parameter constant for encounterprotected EncounterencounterTargetThe actual object that is the target of the reference (The encounter that establishes the context for this media.)protected PositiveIntTypeframesThe number of frames in a photo.protected PositiveIntTypeheightHeight of the image in pixels (photo/video).protected List<Identifier>identifierIdentifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g.static ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_BASED_ONConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_DEVICEConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_ENCOUNTERConstant for fluent queries to be used to add include statements.static 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.protected InstantTypeissuedThe date and time this version of the media was made available to providers, typically after having been reviewed.protected CodeableConceptmodalityDetails of the type of the media - usually, how it was acquired (what type of device).static ca.uhn.fhir.rest.gclient.TokenClientParamMODALITYFluent Client search parameter constant for modalityprotected List<Annotation>noteComments made about the media by the performer, subject or other participants.protected ReferenceoperatorThe person who administered the collection of the image.static ca.uhn.fhir.rest.gclient.ReferenceClientParamOPERATORFluent Client search parameter constant for operatorprotected ResourceoperatorTargetThe actual object that is the target of the reference (The person who administered the collection of the image.)protected List<Reference>partOfA larger event of which this particular event is a component or step.protected List<Resource>partOfTargetThe actual objects that are the target of the reference (A larger event of which this particular event is a component or step.)static ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientprotected List<CodeableConcept>reasonCodeDescribes why the event occurred in coded or textual form.static ca.uhn.fhir.rest.gclient.TokenClientParamSITEFluent Client search parameter constant for sitestatic StringSP_BASED_ONSearch parameter: based-onstatic StringSP_CREATEDSearch parameter: createdstatic StringSP_DEVICESearch parameter: devicestatic StringSP_ENCOUNTERSearch parameter: encounterstatic StringSP_IDENTIFIERSearch parameter: identifierstatic StringSP_MODALITYSearch parameter: modalitystatic StringSP_OPERATORSearch parameter: operatorstatic StringSP_PATIENTSearch parameter: patientstatic StringSP_SITESearch parameter: sitestatic StringSP_STATUSSearch parameter: statusstatic StringSP_SUBJECTSearch parameter: subjectstatic StringSP_TYPESearch parameter: typestatic StringSP_VIEWSearch parameter: viewprotected Enumeration<Media.MediaStatus>statusThe current state of the {{title}}.static ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for statusprotected ReferencesubjectWho/What this Media is a record of.static ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBJECTFluent Client search parameter constant for subjectprotected ResourcesubjectTargetThe actual object that is the target of the reference (Who/What this Media is a record of.)protected CodeableConcepttypeA code that classifies whether the media is an image, video or audio recording or some other media category.static ca.uhn.fhir.rest.gclient.TokenClientParamTYPEFluent Client search parameter constant for typeprotected CodeableConceptviewThe name of the imaging view e.g.static ca.uhn.fhir.rest.gclient.TokenClientParamVIEWFluent Client search parameter constant for viewprotected PositiveIntTypewidthWidth of the image in pixels (photo/video).-
Fields inherited from class org.hl7.fhir.r4.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.r4.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Media()ConstructorMedia(Enumeration<Media.MediaStatus> status, Attachment content)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r4.model.DomainResource
addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setText
-
Methods inherited from class org.hl7.fhir.r4.model.Resource
copyValues, getId, getIdBase, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.r4.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
-
Methods inherited from class org.hl7.fhir.r4.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
identifier
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. series ids) and context ids such as accession numbers or other workflow identifiers.
-
basedOn
protected List<Reference> basedOn
A procedure that is fulfilled in whole or in part by the creation of this media.
-
basedOnTarget
protected List<Resource> 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.)
-
partOf
protected List<Reference> partOf
A larger event of which this particular event is a component or step.
-
partOfTarget
protected List<Resource> partOfTarget
The actual objects that are the target of the reference (A larger event of which this particular event is a component or step.)
-
status
protected Enumeration<Media.MediaStatus> status
The current state of the {{title}}.
-
type
protected CodeableConcept type
A code that classifies whether the media is an image, video or audio recording or some other media category.
-
modality
protected CodeableConcept modality
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
protected CodeableConcept view
The name of the imaging view e.g. Lateral or Antero-posterior (AP).
-
subjectTarget
protected Resource subjectTarget
The actual object that is the target of the reference (Who/What this Media is a record of.)
-
encounterTarget
protected Encounter encounterTarget
The actual object that is the target of the reference (The encounter that establishes the context for this media.)
-
issued
protected InstantType issued
The date and time this version of the media was made available to providers, typically after having been reviewed.
-
operatorTarget
protected Resource operatorTarget
The actual object that is the target of the reference (The person who administered the collection of the image.)
-
reasonCode
protected List<CodeableConcept> reasonCode
Describes why the event occurred in coded or textual form.
-
bodySite
protected CodeableConcept bodySite
Indicates the site on the subject's body where the observation was made (i.e. the target site).
-
deviceName
protected StringType deviceName
The name of the device / manufacturer of the device that was used to make the recording.
-
deviceTarget
protected Resource deviceTarget
The actual object that is the target of the reference (The device used to collect the media.)
-
height
protected PositiveIntType height
Height of the image in pixels (photo/video).
-
width
protected PositiveIntType width
Width of the image in pixels (photo/video).
-
frames
protected PositiveIntType 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
protected DecimalType duration
The duration of the recording in seconds - for audio and video.
-
content
protected Attachment content
The actual content of the media - inline or by direct reference to the media source file.
-
note
protected List<Annotation> note
Comments made about the media by the performer, subject or other participants.
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter: identifierDescription: Identifier(s) for the image
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: Identifier(s) for the image
Type: token
Path: Media.identifier
-
SP_MODALITY
public static final String SP_MODALITY
Search parameter: modalityDescription: The type of acquisition equipment/process
Type: token
Path: Media.modality
- See Also:
- Constant Field Values
-
MODALITY
public static final ca.uhn.fhir.rest.gclient.TokenClientParam MODALITY
Fluent Client search parameter constant for modalityDescription: The type of acquisition equipment/process
Type: token
Path: Media.modality
-
SP_SUBJECT
public static final String SP_SUBJECT
Search parameter: subjectDescription: Who/What this Media is a record of
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: Who/What this Media is a record of
Type: reference
Path: Media.subject
-
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".
-
SP_CREATED
public static final String SP_CREATED
Search parameter: createdDescription: When Media was collected
Type: date
Path: Media.created[x]
- See Also:
- Constant Field Values
-
CREATED
public static final ca.uhn.fhir.rest.gclient.DateClientParam CREATED
Fluent Client search parameter constant for createdDescription: When Media was collected
Type: date
Path: Media.created[x]
-
SP_ENCOUNTER
public static final String SP_ENCOUNTER
Search parameter: encounterDescription: Encounter associated with media
Type: reference
Path: Media.encounter
- See Also:
- Constant Field Values
-
ENCOUNTER
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER
Fluent Client search parameter constant for encounterDescription: Encounter associated with media
Type: reference
Path: Media.encounter
-
INCLUDE_ENCOUNTER
public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER
Constant for fluent queries to be used to add include statements. Specifies the path value of "Media:encounter".
-
SP_TYPE
public static final String SP_TYPE
Search parameter: typeDescription: Classification of media as image, video, or audio
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: Classification of media as image, video, or audio
Type: token
Path: Media.type
-
SP_OPERATOR
public static final String SP_OPERATOR
Search parameter: operatorDescription: The person who generated the image
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: The person who generated the image
Type: reference
Path: Media.operator
-
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".
-
SP_VIEW
public static final String SP_VIEW
Search parameter: viewDescription: Imaging view, e.g. Lateral or Antero-posterior
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: Imaging view, e.g. Lateral or Antero-posterior
Type: token
Path: Media.view
-
SP_SITE
public static final String SP_SITE
Search parameter: siteDescription: Observed body part
Type: token
Path: Media.bodySite
- See Also:
- Constant Field Values
-
SITE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SITE
Fluent Client search parameter constant for siteDescription: Observed body part
Type: token
Path: Media.bodySite
-
SP_BASED_ON
public static final String SP_BASED_ON
Search parameter: based-onDescription: Procedure that caused this media to be created
Type: reference
Path: Media.basedOn
- See Also:
- Constant Field Values
-
BASED_ON
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASED_ON
Fluent Client search parameter constant for based-onDescription: Procedure that caused this media to be created
Type: reference
Path: Media.basedOn
-
INCLUDE_BASED_ON
public static final ca.uhn.fhir.model.api.Include INCLUDE_BASED_ON
Constant for fluent queries to be used to add include statements. Specifies the path value of "Media:based-on".
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter: patientDescription: Who/What this Media is a record of
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: Who/What this Media is a record of
Type: reference
Path: Media.subject
-
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".
-
SP_DEVICE
public static final String SP_DEVICE
Search parameter: deviceDescription: Observing Device
Type: reference
Path: Media.device
- See Also:
- Constant Field Values
-
DEVICE
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DEVICE
Fluent Client search parameter constant for deviceDescription: Observing Device
Type: reference
Path: Media.device
-
INCLUDE_DEVICE
public static final ca.uhn.fhir.model.api.Include INCLUDE_DEVICE
Constant for fluent queries to be used to add include statements. Specifies the path value of "Media:device".
-
SP_STATUS
public static final String SP_STATUS
Search parameter: statusDescription: preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown
Type: token
Path: Media.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription: preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown
Type: token
Path: Media.status
-
-
Constructor Detail
-
Media
public Media()
Constructor
-
Media
public Media(Enumeration<Media.MediaStatus> status, Attachment content)
Constructor
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
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.)
-
setIdentifier
public Media setIdentifier(List<Identifier> theIdentifier)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
-
addIdentifier
public Media addIdentifier(Identifier t)
-
getIdentifierFirstRep
public Identifier getIdentifierFirstRep()
- Returns:
- The first repetition of repeating field
identifier, creating it if it does not already exist
-
getBasedOn
public List<Reference> getBasedOn()
- Returns:
basedOn(A procedure that is fulfilled in whole or in part by the creation of this media.)
-
setBasedOn
public Media setBasedOn(List<Reference> theBasedOn)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasBasedOn
public boolean hasBasedOn()
-
addBasedOn
public Reference addBasedOn()
-
addBasedOn
public Media addBasedOn(Reference t)
-
getBasedOnFirstRep
public Reference getBasedOnFirstRep()
- Returns:
- The first repetition of repeating field
basedOn, creating it if it does not already exist
-
getBasedOnTarget
@Deprecated public List<Resource> getBasedOnTarget()
Deprecated.Use Reference#setResource(IBaseResource) instead
-
getPartOf
public List<Reference> getPartOf()
- Returns:
partOf(A larger event of which this particular event is a component or step.)
-
setPartOf
public Media setPartOf(List<Reference> thePartOf)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasPartOf
public boolean hasPartOf()
-
getPartOfFirstRep
public Reference getPartOfFirstRep()
- Returns:
- The first repetition of repeating field
partOf, creating it if it does not already exist
-
getPartOfTarget
@Deprecated public List<Resource> getPartOfTarget()
Deprecated.Use Reference#setResource(IBaseResource) instead
-
getStatusElement
public Enumeration<Media.MediaStatus> getStatusElement()
- Returns:
status(The current state of the {{title}}.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
public boolean hasStatusElement()
-
hasStatus
public boolean hasStatus()
-
setStatusElement
public Media setStatusElement(Enumeration<Media.MediaStatus> value)
- Parameters:
value-status(The current state of the {{title}}.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public Media.MediaStatus getStatus()
- Returns:
- The current state of the {{title}}.
-
setStatus
public Media setStatus(Media.MediaStatus value)
- Parameters:
value- The current state of the {{title}}.
-
getType
public CodeableConcept getType()
- Returns:
type(A code that classifies whether the media is an image, video or audio recording or some other media category.)
-
hasType
public boolean hasType()
-
setType
public Media setType(CodeableConcept value)
- Parameters:
value-type(A code that classifies whether the media is an image, video or audio recording or some other media category.)
-
getModality
public CodeableConcept getModality()
- Returns:
modality(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.)
-
hasModality
public boolean hasModality()
-
setModality
public Media setModality(CodeableConcept value)
- Parameters:
value-modality(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.)
-
getView
public CodeableConcept getView()
- Returns:
view(The name of the imaging view e.g. Lateral or Antero-posterior (AP).)
-
hasView
public boolean hasView()
-
setView
public Media setView(CodeableConcept value)
- Parameters:
value-view(The name of the imaging view e.g. Lateral or Antero-posterior (AP).)
-
getSubject
public Reference getSubject()
- Returns:
subject(Who/What this Media is a record of.)
-
hasSubject
public boolean hasSubject()
-
setSubject
public Media setSubject(Reference value)
- Parameters:
value-subject(Who/What this Media is a record of.)
-
getSubjectTarget
public Resource getSubjectTarget()
- Returns:
subjectThe 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.)
-
setSubjectTarget
public Media setSubjectTarget(Resource value)
- Parameters:
value-subjectThe 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.)
-
getEncounter
public Reference getEncounter()
- Returns:
encounter(The encounter that establishes the context for this media.)
-
hasEncounter
public boolean hasEncounter()
-
setEncounter
public Media setEncounter(Reference value)
- Parameters:
value-encounter(The encounter that establishes the context for this media.)
-
getEncounterTarget
public Encounter getEncounterTarget()
- Returns:
encounterThe 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 that establishes the context for this media.)
-
setEncounterTarget
public Media setEncounterTarget(Encounter value)
- Parameters:
value-encounterThe 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 that establishes the context for this media.)
-
getCreated
public Type getCreated()
- Returns:
created(The date and time(s) at which the media was collected.)
-
getCreatedDateTimeType
public DateTimeType getCreatedDateTimeType() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
created(The date and time(s) at which the media was collected.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasCreatedDateTimeType
public boolean hasCreatedDateTimeType()
-
getCreatedPeriod
public Period getCreatedPeriod() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
created(The date and time(s) at which the media was collected.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasCreatedPeriod
public boolean hasCreatedPeriod()
-
hasCreated
public boolean hasCreated()
-
setCreated
public Media setCreated(Type value)
- Parameters:
value-created(The date and time(s) at which the media was collected.)
-
getIssuedElement
public InstantType getIssuedElement()
- Returns:
issued(The date and time this version of the media was made available to providers, typically after having been reviewed.). This is the underlying object with id, value and extensions. The accessor "getIssued" gives direct access to the value
-
hasIssuedElement
public boolean hasIssuedElement()
-
hasIssued
public boolean hasIssued()
-
setIssuedElement
public Media setIssuedElement(InstantType value)
- Parameters:
value-issued(The date and time this version of the media was made available to providers, typically after having been reviewed.). This is the underlying object with id, value and extensions. The accessor "getIssued" gives direct access to the value
-
getIssued
public Date getIssued()
- Returns:
- The date and time this version of the media was made available to providers, typically after having been reviewed.
-
setIssued
public Media setIssued(Date value)
- Parameters:
value- The date and time this version of the media was made available to providers, typically after having been reviewed.
-
getOperator
public Reference getOperator()
- Returns:
operator(The person who administered the collection of the image.)
-
hasOperator
public boolean hasOperator()
-
setOperator
public Media setOperator(Reference value)
- Parameters:
value-operator(The person who administered the collection of the image.)
-
getOperatorTarget
public Resource getOperatorTarget()
- Returns:
operatorThe 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.)
-
setOperatorTarget
public Media setOperatorTarget(Resource value)
- Parameters:
value-operatorThe 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.)
-
getReasonCode
public List<CodeableConcept> getReasonCode()
- Returns:
reasonCode(Describes why the event occurred in coded or textual form.)
-
setReasonCode
public Media setReasonCode(List<CodeableConcept> theReasonCode)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasReasonCode
public boolean hasReasonCode()
-
addReasonCode
public CodeableConcept addReasonCode()
-
addReasonCode
public Media addReasonCode(CodeableConcept t)
-
getReasonCodeFirstRep
public CodeableConcept getReasonCodeFirstRep()
- Returns:
- The first repetition of repeating field
reasonCode, creating it if it does not already exist
-
getBodySite
public CodeableConcept getBodySite()
- Returns:
bodySite(Indicates the site on the subject's body where the observation was made (i.e. the target site).)
-
hasBodySite
public boolean hasBodySite()
-
setBodySite
public Media setBodySite(CodeableConcept value)
- Parameters:
value-bodySite(Indicates the site on the subject's body where the observation was made (i.e. the target site).)
-
getDeviceNameElement
public StringType getDeviceNameElement()
- Returns:
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 value
-
hasDeviceNameElement
public boolean hasDeviceNameElement()
-
hasDeviceName
public boolean hasDeviceName()
-
setDeviceNameElement
public Media setDeviceNameElement(StringType value)
- Parameters:
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 value
-
getDeviceName
public String getDeviceName()
- Returns:
- The name of the device / manufacturer of the device that was used to make the recording.
-
setDeviceName
public Media setDeviceName(String value)
- Parameters:
value- The name of the device / manufacturer of the device that was used to make the recording.
-
hasDevice
public boolean hasDevice()
-
setDevice
public Media setDevice(Reference value)
- Parameters:
value-device(The device used to collect the media.)
-
getDeviceTarget
public Resource getDeviceTarget()
- Returns:
deviceThe 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.)
-
setDeviceTarget
public Media setDeviceTarget(Resource value)
- Parameters:
value-deviceThe 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.)
-
getHeightElement
public PositiveIntType getHeightElement()
- Returns:
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 value
-
hasHeightElement
public boolean hasHeightElement()
-
hasHeight
public boolean hasHeight()
-
setHeightElement
public Media setHeightElement(PositiveIntType value)
- Parameters:
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 value
-
getHeight
public int getHeight()
- Returns:
- Height of the image in pixels (photo/video).
-
setHeight
public Media setHeight(int value)
- Parameters:
value- Height of the image in pixels (photo/video).
-
getWidthElement
public PositiveIntType getWidthElement()
- Returns:
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 value
-
hasWidthElement
public boolean hasWidthElement()
-
hasWidth
public boolean hasWidth()
-
setWidthElement
public Media setWidthElement(PositiveIntType value)
- Parameters:
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 value
-
getWidth
public int getWidth()
- Returns:
- Width of the image in pixels (photo/video).
-
setWidth
public Media setWidth(int value)
- Parameters:
value- Width of the image in pixels (photo/video).
-
getFramesElement
public PositiveIntType getFramesElement()
- Returns:
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 value
-
hasFramesElement
public boolean hasFramesElement()
-
hasFrames
public boolean hasFrames()
-
setFramesElement
public Media setFramesElement(PositiveIntType value)
- Parameters:
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 value
-
getFrames
public int getFrames()
- Returns:
- 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 value)
- Parameters:
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.
-
getDurationElement
public DecimalType getDurationElement()
- Returns:
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 value
-
hasDurationElement
public boolean hasDurationElement()
-
hasDuration
public boolean hasDuration()
-
setDurationElement
public Media setDurationElement(DecimalType value)
- Parameters:
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 value
-
getDuration
public BigDecimal getDuration()
- Returns:
- The duration of the recording in seconds - for audio and video.
-
setDuration
public Media setDuration(BigDecimal value)
- Parameters:
value- The duration of the recording in seconds - for audio and video.
-
setDuration
public Media setDuration(long value)
- Parameters:
value- The duration of the recording in seconds - for audio and video.
-
setDuration
public Media setDuration(double value)
- Parameters:
value- The duration of the recording in seconds - for audio and video.
-
getContent
public Attachment getContent()
- Returns:
content(The actual content of the media - inline or by direct reference to the media source file.)
-
hasContent
public boolean hasContent()
-
setContent
public Media setContent(Attachment value)
- Parameters:
value-content(The actual content of the media - inline or by direct reference to the media source file.)
-
getNote
public List<Annotation> getNote()
- Returns:
note(Comments made about the media by the performer, subject or other participants.)
-
setNote
public Media setNote(List<Annotation> theNote)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasNote
public boolean hasNote()
-
addNote
public Annotation addNote()
-
addNote
public Media addNote(Annotation t)
-
getNoteFirstRep
public Annotation getNoteFirstRep()
- Returns:
- The first repetition of repeating field
note, creating it if it does not already exist
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildrenin classDomainResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makePropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public Media copy()
- Specified by:
copyin classDomainResource
-
copyValues
public void copyValues(Media dst)
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-