Package org.hl7.fhir

Class Attachment

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

    public class Attachment
    extends Element
    implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    If the element is present, it must have a value for at least one of the defined elements, an @id referenced from the Narrative, or extensions

    Java class for Attachment complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="Attachment">
       <complexContent>
         <extension base="{http://hl7.org/fhir}Element">
           <sequence>
             <element name="contentType" type="{http://hl7.org/fhir}code" minOccurs="0"/>
             <element name="language" type="{http://hl7.org/fhir}code" minOccurs="0"/>
             <element name="data" type="{http://hl7.org/fhir}base64Binary" minOccurs="0"/>
             <element name="url" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
             <element name="size" type="{http://hl7.org/fhir}unsignedInt" minOccurs="0"/>
             <element name="hash" type="{http://hl7.org/fhir}base64Binary" minOccurs="0"/>
             <element name="title" type="{http://hl7.org/fhir}string" minOccurs="0"/>
             <element name="creation" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • Attachment

        public Attachment()
    • Method Detail

      • getContentType

        public Code getContentType()
        Gets the value of the contentType property.
        Returns:
        possible object is Code
      • setContentType

        public void setContentType​(Code value)
        Sets the value of the contentType property.
        Parameters:
        value - allowed object is Code
      • getLanguage

        public Code getLanguage()
        Gets the value of the language property.
        Returns:
        possible object is Code
      • setLanguage

        public void setLanguage​(Code value)
        Sets the value of the language property.
        Parameters:
        value - allowed object is Code
      • setData

        public void setData​(Base64Binary value)
        Sets the value of the data property.
        Parameters:
        value - allowed object is Base64Binary
      • getUrl

        public Uri getUrl()
        Gets the value of the url property.
        Returns:
        possible object is Uri
      • setUrl

        public void setUrl​(Uri value)
        Sets the value of the url property.
        Parameters:
        value - allowed object is Uri
      • getSize

        public UnsignedInt getSize()
        Gets the value of the size property.
        Returns:
        possible object is UnsignedInt
      • setSize

        public void setSize​(UnsignedInt value)
        Sets the value of the size property.
        Parameters:
        value - allowed object is UnsignedInt
      • setHash

        public void setHash​(Base64Binary value)
        Sets the value of the hash property.
        Parameters:
        value - allowed object is Base64Binary
      • getTitle

        public String getTitle()
        Gets the value of the title property.
        Returns:
        possible object is String
      • setTitle

        public void setTitle​(String value)
        Sets the value of the title property.
        Parameters:
        value - allowed object is String
      • getCreation

        public DateTime getCreation()
        Gets the value of the creation property.
        Returns:
        possible object is DateTime
      • setCreation

        public void setCreation​(DateTime value)
        Sets the value of the creation property.
        Parameters:
        value - allowed object is DateTime
      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              java.lang.Object object,
                              org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
        Specified by:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
        Overrides:
        equals in class Element
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class Element
      • hashCode

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
        Overrides:
        hashCode in class Element
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Element
      • append

        public java.lang.StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                              java.lang.StringBuilder buffer,
                                              org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        append in class Element
      • appendFields

        public java.lang.StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                                    java.lang.StringBuilder buffer,
                                                    org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        appendFields in class Element