Class ClaimResponse.Payment.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.model.builder.AbstractBuilder<Element>
-
- org.linuxforhealth.fhir.model.type.Element.Builder
-
- org.linuxforhealth.fhir.model.type.BackboneElement.Builder
-
- org.linuxforhealth.fhir.model.resource.ClaimResponse.Payment.Builder
-
- Enclosing class:
- ClaimResponse.Payment
public static class ClaimResponse.Payment.Builder extends BackboneElement.Builder
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.type.BackboneElement.Builder
modifierExtension
-
Fields inherited from class org.linuxforhealth.fhir.model.type.Element.Builder
extension, id
-
Fields inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
validating
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClaimResponse.Payment.Builder
adjustment(Money adjustment)
Total amount of all adjustments to this payment included in this transaction which are not related to this claim's adjudication.ClaimResponse.Payment.Builder
adjustmentReason(CodeableConcept adjustmentReason)
Reason for the payment adjustment.ClaimResponse.Payment.Builder
amount(Money amount)
Benefits payable less any payment adjustment.ClaimResponse.Payment
build()
Build theClaimResponse.Payment
ClaimResponse.Payment.Builder
date(java.time.LocalDate date)
Convenience method for settingdate
.ClaimResponse.Payment.Builder
date(Date date)
Estimated date the payment will be issued or the actual issue date of payment.ClaimResponse.Payment.Builder
extension(java.util.Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element.ClaimResponse.Payment.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element.protected ClaimResponse.Payment.Builder
from(ClaimResponse.Payment payment)
ClaimResponse.Payment.Builder
id(java.lang.String id)
Unique id for the element within a resource (for internal references).ClaimResponse.Payment.Builder
identifier(Identifier identifier)
Issuer's unique identifier for the payment instrument.ClaimResponse.Payment.Builder
modifierExtension(java.util.Collection<Extension> modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.ClaimResponse.Payment.Builder
modifierExtension(Extension... modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.ClaimResponse.Payment.Builder
type(CodeableConcept type)
Whether this represents partial or complete payment of the benefits payable.protected void
validate(ClaimResponse.Payment payment)
-
Methods inherited from class org.linuxforhealth.fhir.model.type.BackboneElement.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.type.Element.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public ClaimResponse.Payment.Builder id(java.lang.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:
id
in classBackboneElement.Builder
- Parameters:
id
- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public ClaimResponse.Payment.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. If any of the elements are null, calling
build()
will fail.- Overrides:
extension
in classBackboneElement.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public ClaimResponse.Payment.Builder extension(java.util.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. If any of the elements are null, calling
build()
will fail.- Overrides:
extension
in classBackboneElement.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
modifierExtension
public ClaimResponse.Payment.Builder modifierExtension(Extension... modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Overrides:
modifierExtension
in classBackboneElement.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
modifierExtension
public ClaimResponse.Payment.Builder modifierExtension(java.util.Collection<Extension> modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Overrides:
modifierExtension
in classBackboneElement.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
type
public ClaimResponse.Payment.Builder type(CodeableConcept type)
Whether this represents partial or complete payment of the benefits payable.This element is required.
- Parameters:
type
- Partial or complete payment- Returns:
- A reference to this Builder instance
-
adjustment
public ClaimResponse.Payment.Builder adjustment(Money adjustment)
Total amount of all adjustments to this payment included in this transaction which are not related to this claim's adjudication.- Parameters:
adjustment
- Payment adjustment for non-claim issues- Returns:
- A reference to this Builder instance
-
adjustmentReason
public ClaimResponse.Payment.Builder adjustmentReason(CodeableConcept adjustmentReason)
Reason for the payment adjustment.- Parameters:
adjustmentReason
- Explanation for the adjustment- Returns:
- A reference to this Builder instance
-
date
public ClaimResponse.Payment.Builder date(java.time.LocalDate date)
Convenience method for settingdate
.- Parameters:
date
- Expected date of payment- Returns:
- A reference to this Builder instance
- See Also:
date(org.linuxforhealth.fhir.model.type.Date)
-
date
public ClaimResponse.Payment.Builder date(Date date)
Estimated date the payment will be issued or the actual issue date of payment.- Parameters:
date
- Expected date of payment- Returns:
- A reference to this Builder instance
-
amount
public ClaimResponse.Payment.Builder amount(Money amount)
Benefits payable less any payment adjustment.This element is required.
- Parameters:
amount
- Payable amount after adjustment- Returns:
- A reference to this Builder instance
-
identifier
public ClaimResponse.Payment.Builder identifier(Identifier identifier)
Issuer's unique identifier for the payment instrument.- Parameters:
identifier
- Business identifier for the payment- Returns:
- A reference to this Builder instance
-
build
public ClaimResponse.Payment build()
- Specified by:
build
in interfaceBuilder<Element>
- Specified by:
build
in classBackboneElement.Builder
- Returns:
- An immutable object of type
ClaimResponse.Payment
- Throws:
java.lang.IllegalStateException
- if the current state cannot be built into a valid Payment per the base specification
-
validate
protected void validate(ClaimResponse.Payment payment)
-
from
protected ClaimResponse.Payment.Builder from(ClaimResponse.Payment payment)
-
-