Package com.ibm.fhir.model.type
Class Signature.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.Signature.Builder
-
- Enclosing class:
- Signature
public static class Signature.Builder extends Element.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Signaturebuild()Build theSignatureSignature.Builderdata(Base64Binary data)The base64 encoding of the Signature content.Signature.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.Signature.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected Signature.Builderfrom(Signature signature)Signature.Builderid(String id)Unique id for the element within a resource (for internal references).Signature.BuilderonBehalfOf(Reference onBehalfOf)A reference to an application-usable description of the identity that is represented by the signature.Signature.BuildersigFormat(Code sigFormat)A mime type that indicates the technical format of the signature.Signature.BuildertargetFormat(Code targetFormat)A mime type that indicates the technical format of the target resources signed by the signature.Signature.Buildertype(Coding... type)An indication of the reason that the entity signed this document.Signature.Buildertype(Collection<Coding> type)An indication of the reason that the entity signed this document.Signature.Builderwhen(Instant when)When the digital signature was signed.Signature.Builderwho(Reference who)A reference to an application-usable description of the identity that signed (e.g.-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public Signature.Builder id(String id)
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.- Overrides:
idin classElement.Builder- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public Signature.Builder extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Adds new element(s) to the existing list
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public Signature.Builder extension(Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Replaces the existing list with a new one containing elements from the Collection
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
type
public Signature.Builder type(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.Adds new element(s) to the existing list
This element is required.
- Parameters:
type- Indication of the reason the entity signed the object(s)- Returns:
- A reference to this Builder instance
-
type
public Signature.Builder type(Collection<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.Replaces the existing list with a new one containing elements from the Collection
This element is required.
- Parameters:
type- Indication of the reason the entity signed the object(s)- Returns:
- A reference to this Builder instance
-
when
public Signature.Builder when(Instant when)
When the digital signature was signed.This element is required.
- Parameters:
when- When the signature was created- Returns:
- A reference to this Builder instance
-
who
public Signature.Builder who(Reference who)
A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).This element is required.
Allowed resource types for this reference:
PractitionerPractitionerRoleRelatedPersonPatientDeviceOrganization
- Parameters:
who- Who signed- Returns:
- A reference to this Builder instance
-
onBehalfOf
public Signature.Builder onBehalfOf(Reference onBehalfOf)
A reference to an application-usable description of the identity that is represented by the signature.Allowed resource types for this reference:
PractitionerPractitionerRoleRelatedPersonPatientDeviceOrganization
- Parameters:
onBehalfOf- The party represented- Returns:
- A reference to this Builder instance
-
targetFormat
public Signature.Builder targetFormat(Code targetFormat)
A mime type that indicates the technical format of the target resources signed by the signature.- Parameters:
targetFormat- The technical format of the signed resources- Returns:
- A reference to this Builder instance
-
sigFormat
public Signature.Builder sigFormat(Code 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.- Parameters:
sigFormat- The technical format of the signature- Returns:
- A reference to this Builder instance
-
data
public Signature.Builder data(Base64Binary data)
The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.- Parameters:
data- The actual signature content (XML DigSig. JWS, picture, etc.)- Returns:
- A reference to this Builder instance
-
build
public Signature build()
- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
Signature - Throws:
IllegalStateException- if the current state cannot be built into a valid Signature per the base specification
-
from
protected Signature.Builder from(Signature signature)
-
-