Class Contract.Term.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.Contract.Term.Builder
-
- Enclosing class:
- Contract.Term
public static class Contract.Term.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 Contract.Term.Builder
action(java.util.Collection<Contract.Term.Action> action)
An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place.Contract.Term.Builder
action(Contract.Term.Action... action)
An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place.Contract.Term.Builder
applies(Period applies)
Relevant time or time-period when this Contract Provision is applicable.Contract.Term.Builder
asset(java.util.Collection<Contract.Term.Asset> asset)
Contract Term Asset List.Contract.Term.Builder
asset(Contract.Term.Asset... asset)
Contract Term Asset List.Contract.Term
build()
Build theContract.Term
Contract.Term.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.Contract.Term.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element.protected Contract.Term.Builder
from(Contract.Term term)
Contract.Term.Builder
group(java.util.Collection<Contract.Term> group)
Nested group of Contract Provisions.Contract.Term.Builder
group(Contract.Term... group)
Nested group of Contract Provisions.Contract.Term.Builder
id(java.lang.String id)
Unique id for the element within a resource (for internal references).Contract.Term.Builder
identifier(Identifier identifier)
Unique identifier for this particular Contract Provision.Contract.Term.Builder
issued(DateTime issued)
When this Contract Provision was issued.Contract.Term.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.Contract.Term.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.Contract.Term.Builder
offer(Contract.Term.Offer offer)
The matter of concern in the context of this provision of the agrement.Contract.Term.Builder
securityLabel(java.util.Collection<Contract.Term.SecurityLabel> securityLabel)
Security labels that protect the handling of information about the term and its elements, which may be specifically identified..Contract.Term.Builder
securityLabel(Contract.Term.SecurityLabel... securityLabel)
Security labels that protect the handling of information about the term and its elements, which may be specifically identified..Contract.Term.Builder
subType(CodeableConcept subType)
A specialized legal clause or condition based on overarching contract type.Contract.Term.Builder
text(java.lang.String text)
Convenience method for settingtext
.Contract.Term.Builder
text(String text)
Statement of a provision in a policy or a contract.Contract.Term.Builder
topic(Element topic)
The entity that the term applies to.Contract.Term.Builder
type(CodeableConcept type)
A legal clause or condition contained within a contract that requires one or both parties to perform a particular requirement by some specified time or prevents one or both parties from performing a particular requirement by some specified time.protected void
validate(Contract.Term term)
-
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 Contract.Term.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 Contract.Term.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 Contract.Term.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 Contract.Term.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 Contract.Term.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
-
identifier
public Contract.Term.Builder identifier(Identifier identifier)
Unique identifier for this particular Contract Provision.- Parameters:
identifier
- Contract Term Number- Returns:
- A reference to this Builder instance
-
issued
public Contract.Term.Builder issued(DateTime issued)
When this Contract Provision was issued.- Parameters:
issued
- Contract Term Issue Date Time- Returns:
- A reference to this Builder instance
-
applies
public Contract.Term.Builder applies(Period applies)
Relevant time or time-period when this Contract Provision is applicable.- Parameters:
applies
- Contract Term Effective Time- Returns:
- A reference to this Builder instance
-
topic
public Contract.Term.Builder topic(Element topic)
The entity that the term applies to.This is a choice element with the following allowed types:
- Parameters:
topic
- Term Concern- Returns:
- A reference to this Builder instance
-
type
public Contract.Term.Builder type(CodeableConcept type)
A legal clause or condition contained within a contract that requires one or both parties to perform a particular requirement by some specified time or prevents one or both parties from performing a particular requirement by some specified time.- Parameters:
type
- Contract Term Type or Form- Returns:
- A reference to this Builder instance
-
subType
public Contract.Term.Builder subType(CodeableConcept subType)
A specialized legal clause or condition based on overarching contract type.- Parameters:
subType
- Contract Term Type specific classification- Returns:
- A reference to this Builder instance
-
text
public Contract.Term.Builder text(java.lang.String text)
Convenience method for settingtext
.- Parameters:
text
- Term Statement- Returns:
- A reference to this Builder instance
- See Also:
text(org.linuxforhealth.fhir.model.type.String)
-
text
public Contract.Term.Builder text(String text)
Statement of a provision in a policy or a contract.- Parameters:
text
- Term Statement- Returns:
- A reference to this Builder instance
-
securityLabel
public Contract.Term.Builder securityLabel(Contract.Term.SecurityLabel... securityLabel)
Security labels that protect the handling of information about the term and its elements, which may be specifically identified..Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
securityLabel
- Protection for the Term- Returns:
- A reference to this Builder instance
-
securityLabel
public Contract.Term.Builder securityLabel(java.util.Collection<Contract.Term.SecurityLabel> securityLabel)
Security labels that protect the handling of information about the term and its elements, which may be specifically identified..Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
securityLabel
- Protection for the Term- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
offer
public Contract.Term.Builder offer(Contract.Term.Offer offer)
The matter of concern in the context of this provision of the agrement.This element is required.
- Parameters:
offer
- Context of the Contract term- Returns:
- A reference to this Builder instance
-
asset
public Contract.Term.Builder asset(Contract.Term.Asset... asset)
Contract Term Asset List.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
asset
- Contract Term Asset List- Returns:
- A reference to this Builder instance
-
asset
public Contract.Term.Builder asset(java.util.Collection<Contract.Term.Asset> asset)
Contract Term Asset List.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
asset
- Contract Term Asset List- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
action
public Contract.Term.Builder action(Contract.Term.Action... action)
An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
action
- Entity being ascribed responsibility- Returns:
- A reference to this Builder instance
-
action
public Contract.Term.Builder action(java.util.Collection<Contract.Term.Action> action)
An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
action
- Entity being ascribed responsibility- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
group
public Contract.Term.Builder group(Contract.Term... group)
Nested group of Contract Provisions.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
group
- Nested Contract Term Group- Returns:
- A reference to this Builder instance
-
group
public Contract.Term.Builder group(java.util.Collection<Contract.Term> group)
Nested group of Contract Provisions.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
group
- Nested Contract Term Group- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
build
public Contract.Term build()
- Specified by:
build
in interfaceBuilder<Element>
- Specified by:
build
in classBackboneElement.Builder
- Returns:
- An immutable object of type
Contract.Term
- Throws:
java.lang.IllegalStateException
- if the current state cannot be built into a valid Term per the base specification
-
validate
protected void validate(Contract.Term term)
-
from
protected Contract.Term.Builder from(Contract.Term term)
-
-