Class VerificationResult.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.model.builder.AbstractBuilder<Resource>
-
- org.linuxforhealth.fhir.model.resource.Resource.Builder
-
- org.linuxforhealth.fhir.model.resource.DomainResource.Builder
-
- org.linuxforhealth.fhir.model.resource.VerificationResult.Builder
-
- Enclosing class:
- VerificationResult
public static class VerificationResult.Builder extends DomainResource.Builder
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.resource.DomainResource.Builder
contained, extension, modifierExtension, text
-
Fields inherited from class org.linuxforhealth.fhir.model.resource.Resource.Builder
id, implicitRules, language, meta
-
Fields inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
validating
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VerificationResult.Builderattestation(VerificationResult.Attestation attestation)Information about the entity attesting to information.VerificationResultbuild()Build theVerificationResultVerificationResult.Buildercontained(java.util.Collection<Resource> contained)These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.VerificationResult.Buildercontained(Resource... contained)These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.VerificationResult.Builderextension(java.util.Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the resource.VerificationResult.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the resource.VerificationResult.BuilderfailureAction(CodeableConcept failureAction)The result if validation fails (fatal; warning; record only; none).VerificationResult.Builderfrequency(Timing frequency)Frequency of revalidation.protected VerificationResult.Builderfrom(VerificationResult verificationResult)VerificationResult.Builderid(java.lang.String id)The logical id of the resource, as used in the URL for the resource.VerificationResult.BuilderimplicitRules(Uri implicitRules)A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.VerificationResult.Builderlanguage(Code language)The base language in which the resource is written.VerificationResult.BuilderlastPerformed(DateTime lastPerformed)The date/time validation was last completed (including failed validations).VerificationResult.Buildermeta(Meta meta)The metadata about the resource.VerificationResult.BuildermodifierExtension(java.util.Collection<Extension> modifierExtension)May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants.VerificationResult.BuildermodifierExtension(Extension... modifierExtension)May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants.VerificationResult.Builderneed(CodeableConcept need)The frequency with which the target must be validated (none; initial; periodic).VerificationResult.BuildernextScheduled(java.time.LocalDate nextScheduled)Convenience method for settingnextScheduled.VerificationResult.BuildernextScheduled(Date nextScheduled)The date when target is next validated, if appropriate.VerificationResult.BuilderprimarySource(java.util.Collection<VerificationResult.PrimarySource> primarySource)Information about the primary source(s) involved in validation.VerificationResult.BuilderprimarySource(VerificationResult.PrimarySource... primarySource)Information about the primary source(s) involved in validation.VerificationResult.Builderstatus(Status status)The validation status of the target (attested; validated; in process; requires revalidation; validation failed; revalidation failed).VerificationResult.BuilderstatusDate(DateTime statusDate)When the validation status was updated.VerificationResult.Buildertarget(java.util.Collection<Reference> target)A resource that was validated.VerificationResult.Buildertarget(Reference... target)A resource that was validated.VerificationResult.BuildertargetLocation(java.lang.String... targetLocation)Convenience method for settingtargetLocation.VerificationResult.BuildertargetLocation(java.util.Collection<String> targetLocation)The fhirpath location(s) within the resource that was validated.VerificationResult.BuildertargetLocation(String... targetLocation)The fhirpath location(s) within the resource that was validated.VerificationResult.Buildertext(Narrative text)A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human.protected voidvalidate(VerificationResult verificationResult)VerificationResult.BuildervalidationProcess(java.util.Collection<CodeableConcept> validationProcess)The primary process by which the target is validated (edit check; value set; primary source; multiple sources; standalone; in context).VerificationResult.BuildervalidationProcess(CodeableConcept... validationProcess)The primary process by which the target is validated (edit check; value set; primary source; multiple sources; standalone; in context).VerificationResult.BuildervalidationType(CodeableConcept validationType)What the target is validated against (nothing; primary source; multiple sources).VerificationResult.Buildervalidator(java.util.Collection<VerificationResult.Validator> validator)Information about the entity validating information.VerificationResult.Buildervalidator(VerificationResult.Validator... validator)Information about the entity validating information.-
Methods inherited from class org.linuxforhealth.fhir.model.resource.DomainResource.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.resource.Resource.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public VerificationResult.Builder id(java.lang.String id)
The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.- Overrides:
idin classDomainResource.Builder- Parameters:
id- Logical id of this artifact- Returns:
- A reference to this Builder instance
-
meta
public VerificationResult.Builder meta(Meta meta)
The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.- Overrides:
metain classDomainResource.Builder- Parameters:
meta- Metadata about the resource- Returns:
- A reference to this Builder instance
-
implicitRules
public VerificationResult.Builder implicitRules(Uri implicitRules)
A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.- Overrides:
implicitRulesin classDomainResource.Builder- Parameters:
implicitRules- A set of rules under which this content was created- Returns:
- A reference to this Builder instance
-
language
public VerificationResult.Builder language(Code language)
The base language in which the resource is written.- Overrides:
languagein classDomainResource.Builder- Parameters:
language- Language of the resource content- Returns:
- A reference to this Builder instance
-
text
public VerificationResult.Builder text(Narrative text)
A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.- Overrides:
textin classDomainResource.Builder- Parameters:
text- Text summary of the resource, for human interpretation- Returns:
- A reference to this Builder instance
-
contained
public VerificationResult.Builder contained(Resource... contained)
These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.Adds new element(s) to the existing list. If any of the elements are null, calling
build()will fail.- Overrides:
containedin classDomainResource.Builder- Parameters:
contained- Contained, inline Resources- Returns:
- A reference to this Builder instance
-
contained
public VerificationResult.Builder contained(java.util.Collection<Resource> contained)
These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.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:
containedin classDomainResource.Builder- Parameters:
contained- Contained, inline Resources- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException- If the passed collection is null
-
extension
public VerificationResult.Builder extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the resource. 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:
extensionin classDomainResource.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public VerificationResult.Builder extension(java.util.Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the resource. 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:
extensionin classDomainResource.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 VerificationResult.Builder modifierExtension(Extension... modifierExtension)
May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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:
modifierExtensionin classDomainResource.Builder- Parameters:
modifierExtension- Extensions that cannot be ignored- Returns:
- A reference to this Builder instance
-
modifierExtension
public VerificationResult.Builder modifierExtension(java.util.Collection<Extension> modifierExtension)
May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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:
modifierExtensionin classDomainResource.Builder- Parameters:
modifierExtension- Extensions that cannot be ignored- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException- If the passed collection is null
-
target
public VerificationResult.Builder target(Reference... target)
A resource that was validated.Adds new element(s) to the existing list. If any of the elements are null, calling
build()will fail.- Parameters:
target- A resource that was validated- Returns:
- A reference to this Builder instance
-
target
public VerificationResult.Builder target(java.util.Collection<Reference> target)
A resource that was validated.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:
target- A resource that was validated- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException- If the passed collection is null
-
targetLocation
public VerificationResult.Builder targetLocation(java.lang.String... targetLocation)
Convenience method for settingtargetLocation.Adds new element(s) to the existing list. If any of the elements are null, calling
build()will fail.- Parameters:
targetLocation- The fhirpath location(s) within the resource that was validated- Returns:
- A reference to this Builder instance
- See Also:
#targetLocation(org.linuxforhealth.fhir.model.type.String)
-
targetLocation
public VerificationResult.Builder targetLocation(String... targetLocation)
The fhirpath location(s) within the resource that was validated.Adds new element(s) to the existing list. If any of the elements are null, calling
build()will fail.- Parameters:
targetLocation- The fhirpath location(s) within the resource that was validated- Returns:
- A reference to this Builder instance
-
targetLocation
public VerificationResult.Builder targetLocation(java.util.Collection<String> targetLocation)
The fhirpath location(s) within the resource that was validated.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:
targetLocation- The fhirpath location(s) within the resource that was validated- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException- If the passed collection is null
-
need
public VerificationResult.Builder need(CodeableConcept need)
The frequency with which the target must be validated (none; initial; periodic).- Parameters:
need- none | initial | periodic- Returns:
- A reference to this Builder instance
-
status
public VerificationResult.Builder status(Status status)
The validation status of the target (attested; validated; in process; requires revalidation; validation failed; revalidation failed).This element is required.
- Parameters:
status- attested | validated | in-process | req-revalid | val-fail | reval-fail- Returns:
- A reference to this Builder instance
-
statusDate
public VerificationResult.Builder statusDate(DateTime statusDate)
When the validation status was updated.- Parameters:
statusDate- When the validation status was updated- Returns:
- A reference to this Builder instance
-
validationType
public VerificationResult.Builder validationType(CodeableConcept validationType)
What the target is validated against (nothing; primary source; multiple sources).- Parameters:
validationType- nothing | primary | multiple- Returns:
- A reference to this Builder instance
-
validationProcess
public VerificationResult.Builder validationProcess(CodeableConcept... validationProcess)
The primary process by which the target is validated (edit check; value set; primary source; multiple sources; standalone; in context).Adds new element(s) to the existing list. If any of the elements are null, calling
build()will fail.- Parameters:
validationProcess- The primary process by which the target is validated (edit check; value set; primary source; multiple sources; standalone; in context)- Returns:
- A reference to this Builder instance
-
validationProcess
public VerificationResult.Builder validationProcess(java.util.Collection<CodeableConcept> validationProcess)
The primary process by which the target is validated (edit check; value set; primary source; multiple sources; standalone; in context).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:
validationProcess- The primary process by which the target is validated (edit check; value set; primary source; multiple sources; standalone; in context)- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException- If the passed collection is null
-
frequency
public VerificationResult.Builder frequency(Timing frequency)
Frequency of revalidation.- Parameters:
frequency- Frequency of revalidation- Returns:
- A reference to this Builder instance
-
lastPerformed
public VerificationResult.Builder lastPerformed(DateTime lastPerformed)
The date/time validation was last completed (including failed validations).- Parameters:
lastPerformed- The date/time validation was last completed (including failed validations)- Returns:
- A reference to this Builder instance
-
nextScheduled
public VerificationResult.Builder nextScheduled(java.time.LocalDate nextScheduled)
Convenience method for settingnextScheduled.- Parameters:
nextScheduled- The date when target is next validated, if appropriate- Returns:
- A reference to this Builder instance
- See Also:
nextScheduled(org.linuxforhealth.fhir.model.type.Date)
-
nextScheduled
public VerificationResult.Builder nextScheduled(Date nextScheduled)
The date when target is next validated, if appropriate.- Parameters:
nextScheduled- The date when target is next validated, if appropriate- Returns:
- A reference to this Builder instance
-
failureAction
public VerificationResult.Builder failureAction(CodeableConcept failureAction)
The result if validation fails (fatal; warning; record only; none).- Parameters:
failureAction- fatal | warn | rec-only | none- Returns:
- A reference to this Builder instance
-
primarySource
public VerificationResult.Builder primarySource(VerificationResult.PrimarySource... primarySource)
Information about the primary source(s) involved in validation.Adds new element(s) to the existing list. If any of the elements are null, calling
build()will fail.- Parameters:
primarySource- Information about the primary source(s) involved in validation- Returns:
- A reference to this Builder instance
-
primarySource
public VerificationResult.Builder primarySource(java.util.Collection<VerificationResult.PrimarySource> primarySource)
Information about the primary source(s) involved in validation.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:
primarySource- Information about the primary source(s) involved in validation- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException- If the passed collection is null
-
attestation
public VerificationResult.Builder attestation(VerificationResult.Attestation attestation)
Information about the entity attesting to information.- Parameters:
attestation- Information about the entity attesting to information- Returns:
- A reference to this Builder instance
-
validator
public VerificationResult.Builder validator(VerificationResult.Validator... validator)
Information about the entity validating information.Adds new element(s) to the existing list. If any of the elements are null, calling
build()will fail.- Parameters:
validator- Information about the entity validating information- Returns:
- A reference to this Builder instance
-
validator
public VerificationResult.Builder validator(java.util.Collection<VerificationResult.Validator> validator)
Information about the entity validating information.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:
validator- Information about the entity validating information- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException- If the passed collection is null
-
build
public VerificationResult build()
- Specified by:
buildin interfaceBuilder<Resource>- Specified by:
buildin classDomainResource.Builder- Returns:
- An immutable object of type
VerificationResult - Throws:
java.lang.IllegalStateException- if the current state cannot be built into a valid VerificationResult per the base specification
-
validate
protected void validate(VerificationResult verificationResult)
-
from
protected VerificationResult.Builder from(VerificationResult verificationResult)
-
-