
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
Attachment Type: For referring to data content defined in other formats.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r5.model.Base
Base.ProfileSource, Base.ValidationInfo, Base.ValidationMode, Base.ValidationReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CodeTypeIdentifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data.protected DateTimeTypeThe date that the attachment was first created.protected Base64BinaryTypeThe actual data of the attachment - a sequence of bytes, base64 encoded.protected DecimalTypeThe duration of the recording in seconds - for audio and video.protected PositiveIntTypeThe number of frames in a photo.protected Base64BinaryTypeThe calculated hash of the data using SHA-1.protected PositiveIntTypeHeight of the image in pixels (photo/video).protected CodeTypeThe human language of the content.protected PositiveIntTypeThe number of pages when printed.protected Integer64TypeThe number of bytes of data that make up this attachment (before base64 encoding, if that is done).protected StringTypeA label or set of text to display in place of the data.protected UrlTypeA location where the data can be accessed.protected PositiveIntTypeWidth of the image in pixels (photo/video). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()voidcopyValues(Attachment dst) booleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()byte[]getData()intbyte[]getHash()intgetNamedProperty(int _hash, String _name, boolean _checkValid) intgetPages()Base[]getProperty(int hash, String name, boolean checkValid) longgetSize()getTitle()String[]getTypesForProperty(int hash, String name) getUrl()intgetWidth()booleanbooleanbooleanbooleanbooleanhasData()booleanbooleanbooleanbooleanbooleanbooleanhasHash()booleanbooleanbooleanbooleanbooleanbooleanhasPages()booleanbooleanhasSize()booleanbooleanhasTitle()booleanbooleanhasUrl()booleanbooleanhasWidth()booleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) voidremoveChild(String name, Base value) setContentType(String value) setContentTypeElement(CodeType value) setCreation(Date value) setCreationElement(DateTimeType value) setData(byte[] value) setDataElement(Base64BinaryType value) setDuration(double value) setDuration(long value) setDuration(BigDecimal value) setDurationElement(DecimalType value) setFrames(int value) setFramesElement(PositiveIntType value) setHash(byte[] value) setHashElement(Base64BinaryType value) setHeight(int value) setHeightElement(PositiveIntType value) setLanguage(String value) setLanguageElement(CodeType value) setPages(int value) setPagesElement(PositiveIntType value) setProperty(int hash, String name, Base value) setProperty(String name, Base value) setSize(long value) setSizeElement(Integer64Type value) setTitleElement(StringType value) setUrlElement(UrlType value) setWidth(int value) setWidthElement(PositiveIntType value) protected AttachmentMethods inherited from class org.hl7.fhir.r5.model.DataType
copyValues, getTranslation, isTranslatableMethods inherited from class org.hl7.fhir.r5.model.Element
addExtension, addExtension, addExtension, copyExtensions, copyNewExtensions, copyValues, getExtension, getExtensionByUrl, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionsByUrl, getExtensionString, getExtensionString, getExtensionValue, getFHIRPublicationVersion, getId, getIdBase, getIdElement, getStandardsStatus, hasExtension, hasExtension, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement, setStandardsStatusMethods inherited from class org.hl7.fhir.r5.model.Base
addDefinition, addFormatCommentsPost, addFormatCommentsPre, addValidationMessage, canHavePrimitiveValue, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyFormatComments, copyUserData, copyValues, dateTimeValue, equals, executeFunction, getChildByName, getChildValueByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getValidationInfo, getValidationMessages, getXhtml, hasFormatComment, hasFormatCommentPost, hasFormatCommentPre, hasPrimitiveValue, hasType, hasUserData, hasValidated, hasValidationInfo, hasValidationMessages, isBooleanPrimitive, isCopyUserData, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setCopyUserData, setUserData, setUserDataINN, setXhtmlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
-
Field Details
-
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
The human language of the content. The value can be any valid value according to BCP 47. -
data
The actual data of the attachment - a sequence of bytes, base64 encoded. -
url
A location where the data can be accessed. -
size
The number of bytes of data that make up this attachment (before base64 encoding, if that is done). -
hash
The calculated hash of the data using SHA-1. Represented using base64. -
title
A label or set of text to display in place of the data. -
creation
The date that the attachment was first created. -
height
Height of the image in pixels (photo/video). -
width
Width of the image in pixels (photo/video). -
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
The duration of the recording in seconds - for audio and video. -
pages
The number of pages when printed.
-
-
Constructor Details
-
Attachment
public Attachment()Constructor
-
-
Method Details
-
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
-
hasContentType
-
setContentTypeElement
- 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
- 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
- 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
- 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
-
hasLanguage
-
setLanguageElement
- 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
- Returns:
- The human language of the content. The value can be any valid value according to BCP 47.
-
setLanguage
- Parameters:
value- The human language of the content. The value can be any valid value according to BCP 47.
-
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
-
hasData
-
setDataElement
- 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
- Returns:
- The actual data of the attachment - a sequence of bytes, base64 encoded.
-
setData
- Parameters:
value- The actual data of the attachment - a sequence of bytes, base64 encoded.
-
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
-
hasUrl
-
setUrlElement
- 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
-
getUrl
- Returns:
- A location where the data can be accessed.
-
setUrl
- Parameters:
value- A location where the data can be accessed.
-
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
-
hasSize
-
setSizeElement
- 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
- Returns:
- The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
-
setSize
- Parameters:
value- The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
-
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
-
hasHash
-
setHashElement
- 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
- Returns:
- The calculated hash of the data using SHA-1. Represented using base64.
-
setHash
- Parameters:
value- The calculated hash of the data using SHA-1. Represented using base64.
-
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
-
hasTitle
-
setTitleElement
- 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
-
getTitle
- Returns:
- A label or set of text to display in place of the data.
-
setTitle
- Parameters:
value- A label or set of text to display in place of the data.
-
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
-
hasCreation
-
setCreationElement
- 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
- Returns:
- The date that the attachment was first created.
-
setCreation
- Parameters:
value- The date that the attachment was first created.
-
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
-
hasHeight
-
setHeightElement
- 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
- Returns:
- Height of the image in pixels (photo/video).
-
setHeight
- Parameters:
value- Height of the image in pixels (photo/video).
-
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
-
hasWidth
-
setWidthElement
- 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
- Returns:
- Width of the image in pixels (photo/video).
-
setWidth
- Parameters:
value- Width of the image in pixels (photo/video).
-
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
-
hasFrames
-
setFramesElement
- 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
- 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
- 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
- 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
-
hasDuration
-
setDurationElement
- 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
- Returns:
- The duration of the recording in seconds - for audio and video.
-
setDuration
- Parameters:
value- The duration of the recording in seconds - for audio and video.
-
setDuration
- Parameters:
value- The duration of the recording in seconds - for audio and video.
-
setDuration
- Parameters:
value- The duration of the recording in seconds - for audio and video.
-
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
-
hasPages
-
setPagesElement
- 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
- Returns:
- The number of pages when printed.
-
setPages
- Parameters:
value- The number of pages when printed.
-
listChildren
- Overrides:
listChildrenin classElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
removeChild
- Overrides:
removeChildin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makePropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
copyValues
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeepin classElement
-
equalsShallow
- Overrides:
equalsShallowin classElement
-
isEmpty
-