Class Signature

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

public class Signature extends DataType implements org.hl7.fhir.instance.model.api.ICompositeType
Signature Type: A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities.
See Also:
  • Field Details

    • type

      protected List<Coding> type
      An indication of the reason that the entity signed this document. This may be explicitly included as part of the signature information and can be used when determining accountability for various actions concerning the document.
    • when

      protected InstantType when
      When the digital signature was signed.
    • who

      protected Reference who
      A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).
    • onBehalfOf

      protected Reference onBehalfOf
      A reference to an application-usable description of the identity that is represented by the signature.
    • targetFormat

      A mime type that indicates the technical format of the target resources signed by the signature.
    • sigFormat

      protected CodeType sigFormat
      A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jose for JWS, and image/* for a graphical image of a signature, etc.
    • data

      The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.
  • Constructor Details

  • Method Details

    • getType

      public List<Coding> getType()
      Returns:
      type (An indication of the reason that the entity signed this document. This may be explicitly included as part of the signature information and can be used when determining accountability for various actions concerning the document.)
    • setType

      public Signature setType(List<Coding> theType)
      Returns:
      Returns a reference to this for easy method chaining
    • hasType

      public boolean hasType()
    • addType

      public Coding addType()
    • addType

      public Signature addType(Coding t)
    • getTypeFirstRep

      Returns:
      The first repetition of repeating field type, creating it if it does not already exist {3}
    • getWhenElement

      Returns:
      when (When the digital signature was signed.). This is the underlying object with id, value and extensions. The accessor "getWhen" gives direct access to the value
    • hasWhenElement

      public boolean hasWhenElement()
    • hasWhen

      public boolean hasWhen()
    • setWhenElement

      Parameters:
      value - when (When the digital signature was signed.). This is the underlying object with id, value and extensions. The accessor "getWhen" gives direct access to the value
    • getWhen

      public Date getWhen()
      Returns:
      When the digital signature was signed.
    • setWhen

      public Signature setWhen(Date value)
      Parameters:
      value - When the digital signature was signed.
    • getWho

      public Reference getWho()
      Returns:
      who (A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).)
    • hasWho

      public boolean hasWho()
    • setWho

      public Signature setWho(Reference value)
      Parameters:
      value - who (A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).)
    • getOnBehalfOf

      Returns:
      onBehalfOf (A reference to an application-usable description of the identity that is represented by the signature.)
    • hasOnBehalfOf

      public boolean hasOnBehalfOf()
    • setOnBehalfOf

      Parameters:
      value - onBehalfOf (A reference to an application-usable description of the identity that is represented by the signature.)
    • getTargetFormatElement

      Returns:
      targetFormat (A mime type that indicates the technical format of the target resources signed by the signature.). This is the underlying object with id, value and extensions. The accessor "getTargetFormat" gives direct access to the value
    • hasTargetFormatElement

      public boolean hasTargetFormatElement()
    • hasTargetFormat

      public boolean hasTargetFormat()
    • setTargetFormatElement

      Parameters:
      value - targetFormat (A mime type that indicates the technical format of the target resources signed by the signature.). This is the underlying object with id, value and extensions. The accessor "getTargetFormat" gives direct access to the value
    • getTargetFormat

      Returns:
      A mime type that indicates the technical format of the target resources signed by the signature.
    • setTargetFormat

      Parameters:
      value - A mime type that indicates the technical format of the target resources signed by the signature.
    • getSigFormatElement

      Returns:
      sigFormat (A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jose for JWS, and image/* for a graphical image of a signature, etc.). This is the underlying object with id, value and extensions. The accessor "getSigFormat" gives direct access to the value
    • hasSigFormatElement

      public boolean hasSigFormatElement()
    • hasSigFormat

      public boolean hasSigFormat()
    • setSigFormatElement

      Parameters:
      value - sigFormat (A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jose for JWS, and image/* for a graphical image of a signature, etc.). This is the underlying object with id, value and extensions. The accessor "getSigFormat" gives direct access to the value
    • getSigFormat

      public String getSigFormat()
      Returns:
      A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jose for JWS, and image/* for a graphical image of a signature, etc.
    • setSigFormat

      public Signature setSigFormat(String value)
      Parameters:
      value - A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jose for JWS, and image/* for a graphical image of a signature, etc.
    • getDataElement

      Returns:
      data (The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.). This is the underlying object with id, value and extensions. The accessor "getData" gives direct access to the value
    • hasDataElement

      public boolean hasDataElement()
    • hasData

      public boolean hasData()
    • setDataElement

      Parameters:
      value - data (The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.). This is the underlying object with id, value and extensions. The accessor "getData" gives direct access to the value
    • getData

      public byte[] getData()
      Returns:
      The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.
    • setData

      public Signature setData(byte[] value)
      Parameters:
      value - The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.
    • listChildren

      protected void listChildren(List<Property> children)
      Overrides:
      listChildren in class Element
    • getNamedProperty

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getNamedProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getProperty

      public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • removeChild

      public void removeChild(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      removeChild in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • makeProperty

      public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      makeProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getTypesForProperty

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getTypesForProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class DataType
      Returns:
      the FHIR type name of the instance (not the java class name)
    • copy

      public Signature copy()
      Specified by:
      copy in class DataType
    • copyValues

      public void copyValues(Signature dst)
    • typedCopy

      protected Signature typedCopy()
    • equalsDeep

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class Element
    • equalsShallow

      public boolean equalsShallow(Base other_)
      Overrides:
      equalsShallow in class Element
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class Element