Class 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
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      • getAllPopulatedChildElementsOfType

        public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType​(Class<T> theType)
        Specified by:
        getAllPopulatedChildElementsOfType in interface ca.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 return null.

        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 return null.

        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 return null.

        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 return null.

        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 return null.

        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 return null.

        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 return null.

        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 return null.

        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 return null.

        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 return null.

        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 return null.

        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 return null.

        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 return null.

        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 return null.

        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 return null.

        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 return null.

        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