Package org.hl7.fhir

Class Attachment

java.lang.Object
org.hl7.fhir.Element
org.hl7.fhir.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>
 
  • Field Details

  • Constructor Details

    • Attachment

      public Attachment()
  • Method Details

    • 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
    • getData

      public Base64Binary getData()
      Gets the value of the data property.
      Returns:
      possible object is Base64Binary
    • 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
    • getHash

      public Base64Binary getHash()
      Gets the value of the hash property.
      Returns:
      possible object is Base64Binary
    • 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
    • withContentType

      public Attachment withContentType(Code value)
    • withLanguage

      public Attachment withLanguage(Code value)
    • withData

      public Attachment withData(Base64Binary value)
    • withUrl

      public Attachment withUrl(Uri value)
    • withSize

      public Attachment withSize(UnsignedInt value)
    • withHash

      public Attachment withHash(Base64Binary value)
    • withTitle

      public Attachment withTitle(String value)
    • withCreation

      public Attachment withCreation(DateTime value)
    • withExtension

      public Attachment withExtension(Extension... values)
      Overrides:
      withExtension in class Element
    • withExtension

      public Attachment withExtension(Collection<Extension> values)
      Overrides:
      withExtension in class Element
    • withId

      public Attachment withId(String value)
      Overrides:
      withId in class Element
    • equals

      public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, 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(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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Element
    • toString

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

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, 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 StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, 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