Class AttachmentDt
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.api.BaseIdentifiableElement
-
- ca.uhn.fhir.model.dstu2.composite.AttachmentDt
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeDatatype,ca.uhn.fhir.model.api.ICompositeElement,ca.uhn.fhir.model.api.IDatatype,ca.uhn.fhir.model.api.IElement,ca.uhn.fhir.model.api.IIdentifiableElement,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatype,org.hl7.fhir.instance.model.api.ICompositeType
public class AttachmentDt extends ca.uhn.fhir.model.api.BaseIdentifiableElement implements ca.uhn.fhir.model.api.ICompositeDatatype
HAPI/FHIR AttachmentDt Datatype ()Definition: For referring to data content defined in other formats.
Requirements: Many models need to include data defined in other specifications that is complex and opaque to the healthcare model. This includes documents, media recordings, structured data, etc.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttachmentDt()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)StringgetContentType()Gets the value(s) for contentType ().ca.uhn.fhir.model.primitive.CodeDtgetContentTypeElement()Gets the value(s) for contentType ().DategetCreation()Gets the value(s) for creation ().ca.uhn.fhir.model.primitive.DateTimeDtgetCreationElement()Gets the value(s) for creation ().byte[]getData()Gets the value(s) for data ().ca.uhn.fhir.model.primitive.Base64BinaryDtgetDataElement()Gets the value(s) for data ().byte[]getHash()Gets the value(s) for hash ().ca.uhn.fhir.model.primitive.Base64BinaryDtgetHashElement()Gets the value(s) for hash ().StringgetLanguage()Gets the value(s) for language ().ca.uhn.fhir.model.primitive.CodeDtgetLanguageElement()Gets the value(s) for language ().IntegergetSize()Gets the value(s) for size ().ca.uhn.fhir.model.primitive.UnsignedIntDtgetSizeElement()Gets the value(s) for size ().StringgetTitle()Gets the value(s) for title ().ca.uhn.fhir.model.primitive.StringDtgetTitleElement()Gets the value(s) for title ().StringgetUrl()Gets the value(s) for url ().ca.uhn.fhir.model.primitive.UriDtgetUrlElement()Gets the value(s) for url ().booleanisEmpty()AttachmentDtsetContentType(ca.uhn.fhir.model.primitive.CodeDt theValue)Sets the value(s) for contentType ()AttachmentDtsetContentType(String theCode)Sets the value for contentType ()AttachmentDtsetCreation(ca.uhn.fhir.model.primitive.DateTimeDt theValue)Sets the value(s) for creation ()AttachmentDtsetCreation(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for creation ()AttachmentDtsetCreationWithSecondsPrecision(Date theDate)Sets the value for creation ()AttachmentDtsetData(byte[] theBytes)Sets the value for data ()AttachmentDtsetData(ca.uhn.fhir.model.primitive.Base64BinaryDt theValue)Sets the value(s) for data ()AttachmentDtsetHash(byte[] theBytes)Sets the value for hash ()AttachmentDtsetHash(ca.uhn.fhir.model.primitive.Base64BinaryDt theValue)Sets the value(s) for hash ()AttachmentDtsetLanguage(ca.uhn.fhir.model.primitive.CodeDt theValue)Sets the value(s) for language ()AttachmentDtsetLanguage(String theCode)Sets the value for language ()AttachmentDtsetSize(int theInteger)Sets the value for size ()AttachmentDtsetSize(ca.uhn.fhir.model.primitive.UnsignedIntDt theValue)Sets the value(s) for size ()AttachmentDtsetTitle(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for title ()AttachmentDtsetTitle(String theString)Sets the value for title ()AttachmentDtsetUrl(ca.uhn.fhir.model.primitive.UriDt theValue)Sets the value(s) for url ()AttachmentDtsetUrl(String theUri)Sets the value for url ()-
Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
-
-
-
-
Constructor Detail
-
AttachmentDt
public AttachmentDt()
Constructor
-
-
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
-
getContentTypeElement
public ca.uhn.fhir.model.primitive.CodeDt getContentTypeElement()
Gets the value(s) for contentType (). creating it if it does not exist. Will not returnnull.Definition: 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
-
getContentType
public String getContentType()
Gets the value(s) for contentType (). creating it if it does not exist. This method may returnnull.Definition: 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 AttachmentDt setContentType(ca.uhn.fhir.model.primitive.CodeDt theValue)
Sets the value(s) for contentType ()Definition: 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 AttachmentDt setContentType(String theCode)
Sets the value for contentType ()Definition: 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 ca.uhn.fhir.model.primitive.CodeDt getLanguageElement()
Gets the value(s) for language (). creating it if it does not exist. Will not returnnull.Definition: The human language of the content. The value can be any valid value according to BCP 47
-
getLanguage
public String getLanguage()
Gets the value(s) for language (). creating it if it does not exist. This method may returnnull.Definition: The human language of the content. The value can be any valid value according to BCP 47
-
setLanguage
public AttachmentDt setLanguage(ca.uhn.fhir.model.primitive.CodeDt theValue)
Sets the value(s) for language ()Definition: The human language of the content. The value can be any valid value according to BCP 47
-
setLanguage
public AttachmentDt setLanguage(String theCode)
Sets the value for language ()Definition: The human language of the content. The value can be any valid value according to BCP 47
-
getDataElement
public ca.uhn.fhir.model.primitive.Base64BinaryDt getDataElement()
Gets the value(s) for data (). creating it if it does not exist. Will not returnnull.Definition: The actual data of the attachment - a sequence of bytes. In XML, represented using base64
-
getData
public byte[] getData()
Gets the value(s) for data (). creating it if it does not exist. This method may returnnull.Definition: The actual data of the attachment - a sequence of bytes. In XML, represented using base64
-
setData
public AttachmentDt setData(ca.uhn.fhir.model.primitive.Base64BinaryDt theValue)
Sets the value(s) for data ()Definition: The actual data of the attachment - a sequence of bytes. In XML, represented using base64
-
setData
public AttachmentDt setData(byte[] theBytes)
Sets the value for data ()Definition: The actual data of the attachment - a sequence of bytes. In XML, represented using base64
-
getUrlElement
public ca.uhn.fhir.model.primitive.UriDt getUrlElement()
Gets the value(s) for url (). creating it if it does not exist. Will not returnnull.Definition: An alternative location where the data can be accessed
-
getUrl
public String getUrl()
Gets the value(s) for url (). creating it if it does not exist. This method may returnnull.Definition: An alternative location where the data can be accessed
-
setUrl
public AttachmentDt setUrl(ca.uhn.fhir.model.primitive.UriDt theValue)
Sets the value(s) for url ()Definition: An alternative location where the data can be accessed
-
setUrl
public AttachmentDt setUrl(String theUri)
Sets the value for url ()Definition: An alternative location where the data can be accessed
-
getSizeElement
public ca.uhn.fhir.model.primitive.UnsignedIntDt getSizeElement()
Gets the value(s) for size (). creating it if it does not exist. Will not returnnull.Definition: The number of bytes of data that make up this attachment.
-
getSize
public Integer getSize()
Gets the value(s) for size (). creating it if it does not exist. This method may returnnull.Definition: The number of bytes of data that make up this attachment.
-
setSize
public AttachmentDt setSize(ca.uhn.fhir.model.primitive.UnsignedIntDt theValue)
Sets the value(s) for size ()Definition: The number of bytes of data that make up this attachment.
-
setSize
public AttachmentDt setSize(int theInteger)
Sets the value for size ()Definition: The number of bytes of data that make up this attachment.
-
getHashElement
public ca.uhn.fhir.model.primitive.Base64BinaryDt getHashElement()
Gets the value(s) for hash (). creating it if it does not exist. Will not returnnull.Definition: The calculated hash of the data using SHA-1. Represented using base64
-
getHash
public byte[] getHash()
Gets the value(s) for hash (). creating it if it does not exist. This method may returnnull.Definition: The calculated hash of the data using SHA-1. Represented using base64
-
setHash
public AttachmentDt setHash(ca.uhn.fhir.model.primitive.Base64BinaryDt theValue)
Sets the value(s) for hash ()Definition: The calculated hash of the data using SHA-1. Represented using base64
-
setHash
public AttachmentDt setHash(byte[] theBytes)
Sets the value for hash ()Definition: The calculated hash of the data using SHA-1. Represented using base64
-
getTitleElement
public ca.uhn.fhir.model.primitive.StringDt getTitleElement()
Gets the value(s) for title (). creating it if it does not exist. Will not returnnull.Definition: A label or set of text to display in place of the data
-
getTitle
public String getTitle()
Gets the value(s) for title (). creating it if it does not exist. This method may returnnull.Definition: A label or set of text to display in place of the data
-
setTitle
public AttachmentDt setTitle(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for title ()Definition: A label or set of text to display in place of the data
-
setTitle
public AttachmentDt setTitle(String theString)
Sets the value for title ()Definition: A label or set of text to display in place of the data
-
getCreationElement
public ca.uhn.fhir.model.primitive.DateTimeDt getCreationElement()
Gets the value(s) for creation (). creating it if it does not exist. Will not returnnull.Definition: The date that the attachment was first created
-
getCreation
public Date getCreation()
Gets the value(s) for creation (). creating it if it does not exist. This method may returnnull.Definition: The date that the attachment was first created
-
setCreation
public AttachmentDt setCreation(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
Sets the value(s) for creation ()Definition: The date that the attachment was first created
-
setCreation
public AttachmentDt setCreation(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
Sets the value for creation ()Definition: The date that the attachment was first created
-
setCreationWithSecondsPrecision
public AttachmentDt setCreationWithSecondsPrecision(Date theDate)
Sets the value for creation ()Definition: The date that the attachment was first created
-
-