Package org.hl7.fhir.r5.model
Class Attachment
- java.lang.Object
-
- org.hl7.fhir.r5.model.Base
-
- org.hl7.fhir.r5.model.Element
-
- org.hl7.fhir.r5.model.DataType
-
- org.hl7.fhir.r5.model.Attachment
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseDatatype
,org.hl7.fhir.instance.model.api.IBaseElement
,org.hl7.fhir.instance.model.api.IBaseHasExtensions
,org.hl7.fhir.instance.model.api.ICompositeType
public class Attachment extends DataType implements org.hl7.fhir.instance.model.api.ICompositeType
Base StructureDefinition for Attachment Type: For referring to data content defined in other formats.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CodeType
contentType
Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data.protected DateTimeType
creation
The date that the attachment was first created.protected Base64BinaryType
data
The actual data of the attachment - a sequence of bytes, base64 encoded.protected DecimalType
duration
The duration of the recording in seconds - for audio and video.protected PositiveIntType
frames
The number of frames in a photo.protected Base64BinaryType
hash
The calculated hash of the data using SHA-1.protected PositiveIntType
height
Height of the image in pixels (photo/video).protected CodeType
language
The human language of the content.protected PositiveIntType
pages
The number of pages when printed.protected Integer64Type
size
The number of bytes of data that make up this attachment (before base64 encoding, if that is done).protected StringType
title
A label or set of text to display in place of the data.protected UrlType
url
A location where the data can be accessed.protected PositiveIntType
width
Width of the image in pixels (photo/video).
-
Constructor Summary
Constructors Constructor Description Attachment()
Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r5.model.DataType
copyValues
-
Methods inherited from class org.hl7.fhir.r5.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement
-
Methods inherited from class org.hl7.fhir.r5.model.Base
children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
contentType
protected CodeType contentType
Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
-
language
protected CodeType language
The human language of the content. The value can be any valid value according to BCP 47.
-
data
protected Base64BinaryType data
The actual data of the attachment - a sequence of bytes, base64 encoded.
-
size
protected Integer64Type size
The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
-
hash
protected Base64BinaryType hash
The calculated hash of the data using SHA-1. Represented using base64.
-
title
protected StringType title
A label or set of text to display in place of the data.
-
creation
protected DateTimeType creation
The date that the attachment was first created.
-
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.
-
pages
protected PositiveIntType pages
The number of pages when printed.
-
-
Constructor Detail
-
Attachment
public Attachment()
Constructor
-
-
Method Detail
-
getContentTypeElement
public CodeType getContentTypeElement()
- Returns:
contentType
(Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
hasContentTypeElement
public boolean hasContentTypeElement()
-
hasContentType
public boolean hasContentType()
-
setContentTypeElement
public Attachment setContentTypeElement(CodeType value)
- Parameters:
value
-contentType
(Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
getContentType
public String getContentType()
- Returns:
- Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
-
setContentType
public Attachment setContentType(String value)
- Parameters:
value
- Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
-
getLanguageElement
public CodeType getLanguageElement()
- Returns:
language
(The human language of the content. The value can be any valid value according to BCP 47.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value
-
hasLanguageElement
public boolean hasLanguageElement()
-
hasLanguage
public boolean hasLanguage()
-
setLanguageElement
public Attachment setLanguageElement(CodeType value)
- Parameters:
value
-language
(The human language of the content. The value can be any valid value according to BCP 47.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value
-
getLanguage
public String getLanguage()
- Returns:
- The human language of the content. The value can be any valid value according to BCP 47.
-
setLanguage
public Attachment setLanguage(String value)
- Parameters:
value
- The human language of the content. The value can be any valid value according to BCP 47.
-
getDataElement
public Base64BinaryType getDataElement()
- Returns:
data
(The actual data of the attachment - a sequence of bytes, base64 encoded.). This is the underlying object with id, value and extensions. The accessor "getData" gives direct access to the value
-
hasDataElement
public boolean hasDataElement()
-
hasData
public boolean hasData()
-
setDataElement
public Attachment setDataElement(Base64BinaryType value)
- Parameters:
value
-data
(The actual data of the attachment - a sequence of bytes, base64 encoded.). This is the underlying object with id, value and extensions. The accessor "getData" gives direct access to the value
-
getData
public byte[] getData()
- Returns:
- The actual data of the attachment - a sequence of bytes, base64 encoded.
-
setData
public Attachment setData(byte[] value)
- Parameters:
value
- The actual data of the attachment - a sequence of bytes, base64 encoded.
-
getUrlElement
public UrlType getUrlElement()
- Returns:
url
(A location where the data can be accessed.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
-
hasUrlElement
public boolean hasUrlElement()
-
hasUrl
public boolean hasUrl()
-
setUrlElement
public Attachment setUrlElement(UrlType value)
- Parameters:
value
-url
(A location where the data can be accessed.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
-
setUrl
public Attachment setUrl(String value)
- Parameters:
value
- A location where the data can be accessed.
-
getSizeElement
public Integer64Type getSizeElement()
- Returns:
size
(The number of bytes of data that make up this attachment (before base64 encoding, if that is done).). This is the underlying object with id, value and extensions. The accessor "getSize" gives direct access to the value
-
hasSizeElement
public boolean hasSizeElement()
-
hasSize
public boolean hasSize()
-
setSizeElement
public Attachment setSizeElement(Integer64Type value)
- Parameters:
value
-size
(The number of bytes of data that make up this attachment (before base64 encoding, if that is done).). This is the underlying object with id, value and extensions. The accessor "getSize" gives direct access to the value
-
getSize
public long getSize()
- Returns:
- The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
-
setSize
public Attachment setSize(long value)
- Parameters:
value
- The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
-
getHashElement
public Base64BinaryType getHashElement()
- Returns:
hash
(The calculated hash of the data using SHA-1. Represented using base64.). This is the underlying object with id, value and extensions. The accessor "getHash" gives direct access to the value
-
hasHashElement
public boolean hasHashElement()
-
hasHash
public boolean hasHash()
-
setHashElement
public Attachment setHashElement(Base64BinaryType value)
- Parameters:
value
-hash
(The calculated hash of the data using SHA-1. Represented using base64.). This is the underlying object with id, value and extensions. The accessor "getHash" gives direct access to the value
-
getHash
public byte[] getHash()
- Returns:
- The calculated hash of the data using SHA-1. Represented using base64.
-
setHash
public Attachment setHash(byte[] value)
- Parameters:
value
- The calculated hash of the data using SHA-1. Represented using base64.
-
getTitleElement
public StringType getTitleElement()
- Returns:
title
(A label or set of text to display in place of the data.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
-
hasTitleElement
public boolean hasTitleElement()
-
hasTitle
public boolean hasTitle()
-
setTitleElement
public Attachment setTitleElement(StringType value)
- Parameters:
value
-title
(A label or set of text to display in place of the data.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
-
setTitle
public Attachment setTitle(String value)
- Parameters:
value
- A label or set of text to display in place of the data.
-
getCreationElement
public DateTimeType getCreationElement()
- Returns:
creation
(The date that the attachment was first created.). This is the underlying object with id, value and extensions. The accessor "getCreation" gives direct access to the value
-
hasCreationElement
public boolean hasCreationElement()
-
hasCreation
public boolean hasCreation()
-
setCreationElement
public Attachment setCreationElement(DateTimeType value)
- Parameters:
value
-creation
(The date that the attachment was first created.). This is the underlying object with id, value and extensions. The accessor "getCreation" gives direct access to the value
-
getCreation
public Date getCreation()
- Returns:
- The date that the attachment was first created.
-
setCreation
public Attachment setCreation(Date value)
- Parameters:
value
- The date that the attachment was first created.
-
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 Attachment 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 Attachment 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 Attachment 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 Attachment 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 Attachment 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 Attachment 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 Attachment 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 Attachment setDuration(BigDecimal value)
- Parameters:
value
- The duration of the recording in seconds - for audio and video.
-
setDuration
public Attachment setDuration(long value)
- Parameters:
value
- The duration of the recording in seconds - for audio and video.
-
setDuration
public Attachment setDuration(double value)
- Parameters:
value
- The duration of the recording in seconds - for audio and video.
-
getPagesElement
public PositiveIntType getPagesElement()
- Returns:
pages
(The number of pages when printed.). This is the underlying object with id, value and extensions. The accessor "getPages" gives direct access to the value
-
hasPagesElement
public boolean hasPagesElement()
-
hasPages
public boolean hasPages()
-
setPagesElement
public Attachment setPagesElement(PositiveIntType value)
- Parameters:
value
-pages
(The number of pages when printed.). This is the underlying object with id, value and extensions. The accessor "getPages" gives direct access to the value
-
getPages
public int getPages()
- Returns:
- The number of pages when printed.
-
setPages
public Attachment setPages(int value)
- Parameters:
value
- The number of pages when printed.
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildren
in classElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makeProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public Attachment copy()
-
copyValues
public void copyValues(Attachment dst)
-
typedCopy
protected Attachment typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeep
in classElement
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallow
in classElement
-
-