Class GoalBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.hl7_java.builders.GoalBuilder.Impl
-
- All Implemented Interfaces:
com.babylonhealth.lit.core_java.builders.ResourceBuilder,DomainResourceBuilder,GoalBuilder
- Enclosing interface:
- GoalBuilder
public static class GoalBuilder.Impl extends java.lang.Object implements GoalBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.hl7_java.builders.GoalBuilder
GoalBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl(com.babylonhealth.lit.core.model.Reference subject, com.babylonhealth.lit.core.model.CodeableConcept description, com.babylonhealth.lit.hl7.GOAL_STATUS lifecycleStatus)Required fields forGoal
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.hl7.model.Goalbuild()GoalBuilder.ImplwithAchievementStatus(@NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder achievementStatus)GoalBuilder.ImplwithAchievementStatus(@NonNull com.babylonhealth.lit.core.model.CodeableConcept achievementStatus)GoalBuilder.ImplwithAddresses(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... addresses)GoalBuilder.ImplwithAddresses(@NonNull com.babylonhealth.lit.core.model.Reference... addresses)GoalBuilder.ImplwithAddresses(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> addresses)GoalBuilder.ImplwithCategory(@NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... category)GoalBuilder.ImplwithCategory(@NonNull com.babylonhealth.lit.core.model.CodeableConcept... category)GoalBuilder.ImplwithCategory(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> category)GoalBuilder.ImplwithContained(@NonNull com.babylonhealth.lit.core_java.builders.ResourceBuilder... contained)GoalBuilder.ImplwithContained(@NonNull com.babylonhealth.lit.core.model.Resource... contained)GoalBuilder.ImplwithContained(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Resource> contained)GoalBuilder.ImplwithExpressedBy(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder expressedBy)GoalBuilder.ImplwithExpressedBy(@NonNull com.babylonhealth.lit.core.model.Reference expressedBy)GoalBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... extension)GoalBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core.model.Extension... extension)GoalBuilder.ImplwithExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)GoalBuilder.ImplwithId(@NonNull java.lang.String id)GoalBuilder.ImplwithIdentifier(@NonNull com.babylonhealth.lit.core_java.builders.IdentifierBuilder... identifier)GoalBuilder.ImplwithIdentifier(@NonNull com.babylonhealth.lit.core.model.Identifier... identifier)GoalBuilder.ImplwithIdentifier(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Identifier> identifier)GoalBuilder.ImplwithImplicitRules(@NonNull java.lang.String implicitRules)GoalBuilder.ImplwithLanguage(@NonNull com.babylonhealth.lit.core.LANGUAGES language)GoalBuilder.ImplwithMeta(@NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)GoalBuilder.ImplwithMeta(@NonNull com.babylonhealth.lit.core.model.Meta meta)GoalBuilder.ImplwithModifierExtension(@NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... modifierExtension)GoalBuilder.ImplwithModifierExtension(@NonNull com.babylonhealth.lit.core.model.Extension... modifierExtension)GoalBuilder.ImplwithModifierExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> modifierExtension)GoalBuilder.ImplwithNote(@NonNull com.babylonhealth.lit.core_java.builders.AnnotationBuilder... note)GoalBuilder.ImplwithNote(@NonNull com.babylonhealth.lit.core.model.Annotation... note)GoalBuilder.ImplwithNote(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Annotation> note)GoalBuilder.ImplwithOutcomeCode(@NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... outcomeCode)GoalBuilder.ImplwithOutcomeCode(@NonNull com.babylonhealth.lit.core.model.CodeableConcept... outcomeCode)GoalBuilder.ImplwithOutcomeCode(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> outcomeCode)GoalBuilder.ImplwithOutcomeReference(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... outcomeReference)GoalBuilder.ImplwithOutcomeReference(@NonNull com.babylonhealth.lit.core.model.Reference... outcomeReference)GoalBuilder.ImplwithOutcomeReference(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> outcomeReference)GoalBuilder.ImplwithoutMeta()GoalBuilder.ImplwithPriority(@NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder priority)GoalBuilder.ImplwithPriority(@NonNull com.babylonhealth.lit.core.model.CodeableConcept priority)GoalBuilder.ImplwithStart(@NonNull Unions.ChoiceCodeableConceptOrDate start)GoalBuilder.ImplwithStatusDate(@NonNull com.babylonhealth.lit.core.FHIRDate statusDate)GoalBuilder.ImplwithStatusReason(@NonNull java.lang.String statusReason)GoalBuilder.ImplwithTarget(@NonNull Goal_TargetBuilder... target)GoalBuilder.ImplwithTarget(@NonNull com.babylonhealth.lit.hl7.model.Goal.Target... target)GoalBuilder.ImplwithTarget(@NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.Goal.Target> target)GoalBuilder.ImplwithText(@NonNull NarrativeBuilder text)GoalBuilder.ImplwithText(@NonNull com.babylonhealth.lit.hl7.model.Narrative text)
-
-
-
Constructor Detail
-
Impl
public Impl(com.babylonhealth.lit.core.model.Reference subject, com.babylonhealth.lit.core.model.CodeableConcept description, com.babylonhealth.lit.hl7.GOAL_STATUS lifecycleStatus)Required fields forGoal- Parameters:
subject- - Identifies the patient, group or organization for whom the goal is being established.description- - Human-readable and/or coded description of a specific desired objective of care, such as "control blood pressure" or "negotiate an obstacle course" or "dance with child at wedding".lifecycleStatus- - The state of the goal throughout its lifecycle.
-
-
Method Detail
-
withId
public GoalBuilder.Impl withId(@NonNull @NonNull java.lang.String id)
- Parameters:
id- - The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
-
withMeta
public GoalBuilder.Impl withMeta(@NonNull @NonNull com.babylonhealth.lit.core.model.Meta meta)
- Parameters:
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.
-
withMeta
public GoalBuilder.Impl withMeta(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)
-
withText
public GoalBuilder.Impl withText(@NonNull @NonNull com.babylonhealth.lit.hl7.model.Narrative text)
- Parameters:
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.
-
withText
public GoalBuilder.Impl withText(@NonNull @NonNull NarrativeBuilder text)
-
withNote
public GoalBuilder.Impl withNote(@NonNull @NonNull com.babylonhealth.lit.core.model.Annotation... note)
- Parameters:
note- - Any comments related to the goal.
-
withNote
public GoalBuilder.Impl withNote(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Annotation> note)
- Parameters:
note- - Any comments related to the goal.
-
withNote
public GoalBuilder.Impl withNote(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.AnnotationBuilder... note)
-
withLanguage
public GoalBuilder.Impl withLanguage(@NonNull @NonNull com.babylonhealth.lit.core.LANGUAGES language)
- Parameters:
language- - The base language in which the resource is written.
-
withCategory
public GoalBuilder.Impl withCategory(@NonNull @NonNull com.babylonhealth.lit.core.model.CodeableConcept... category)
- Parameters:
category- - Indicates a category the goal falls within.
-
withCategory
public GoalBuilder.Impl withCategory(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> category)
- Parameters:
category- - Indicates a category the goal falls within.
-
withCategory
public GoalBuilder.Impl withCategory(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... category)
-
withPriority
public GoalBuilder.Impl withPriority(@NonNull @NonNull com.babylonhealth.lit.core.model.CodeableConcept priority)
- Parameters:
priority- - Identifies the mutually agreed level of importance associated with reaching/sustaining the goal.
-
withPriority
public GoalBuilder.Impl withPriority(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder priority)
-
withStart
public GoalBuilder.Impl withStart(@NonNull @NonNull Unions.ChoiceCodeableConceptOrDate start)
- Parameters:
start- - The date or event after which the goal should begin being pursued. Field is a 'choice' field. Type should be one of CodeableConcept, FHIRDate. To pass the value in, wrap with one of the GoalBuilder.start static methods
-
withContained
public GoalBuilder.Impl withContained(@NonNull @NonNull com.babylonhealth.lit.core.model.Resource... contained)
- Parameters:
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.
-
withContained
public GoalBuilder.Impl withContained(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Resource> contained)
- Parameters:
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.
-
withContained
public GoalBuilder.Impl withContained(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ResourceBuilder... contained)
-
withExtension
public GoalBuilder.Impl withExtension(@NonNull @NonNull com.babylonhealth.lit.core.model.Extension... extension)
- Parameters:
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.
-
withExtension
public GoalBuilder.Impl withExtension(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
- Parameters:
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.
-
withExtension
public GoalBuilder.Impl withExtension(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... extension)
-
withAddresses
public GoalBuilder.Impl withAddresses(@NonNull @NonNull com.babylonhealth.lit.core.model.Reference... addresses)
- Parameters:
addresses- - The identified conditions and other health record elements that are intended to be addressed by the goal.
-
withAddresses
public GoalBuilder.Impl withAddresses(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> addresses)
- Parameters:
addresses- - The identified conditions and other health record elements that are intended to be addressed by the goal.
-
withAddresses
public GoalBuilder.Impl withAddresses(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... addresses)
-
withIdentifier
public GoalBuilder.Impl withIdentifier(@NonNull @NonNull com.babylonhealth.lit.core.model.Identifier... identifier)
- Parameters:
identifier- - Business identifiers assigned to this goal by the performer or other systems which remain constant as the resource is updated and propagates from server to server.
-
withIdentifier
public GoalBuilder.Impl withIdentifier(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Identifier> identifier)
- Parameters:
identifier- - Business identifiers assigned to this goal by the performer or other systems which remain constant as the resource is updated and propagates from server to server.
-
withIdentifier
public GoalBuilder.Impl withIdentifier(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.IdentifierBuilder... identifier)
-
withStatusDate
public GoalBuilder.Impl withStatusDate(@NonNull @NonNull com.babylonhealth.lit.core.FHIRDate statusDate)
- Parameters:
statusDate- - Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.
-
withExpressedBy
public GoalBuilder.Impl withExpressedBy(@NonNull @NonNull com.babylonhealth.lit.core.model.Reference expressedBy)
- Parameters:
expressedBy- - Indicates whose goal this is - patient goal, practitioner goal, etc.
-
withExpressedBy
public GoalBuilder.Impl withExpressedBy(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder expressedBy)
-
withOutcomeCode
public GoalBuilder.Impl withOutcomeCode(@NonNull @NonNull com.babylonhealth.lit.core.model.CodeableConcept... outcomeCode)
- Parameters:
outcomeCode- - Identifies the change (or lack of change) at the point when the status of the goal is assessed.
-
withOutcomeCode
public GoalBuilder.Impl withOutcomeCode(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> outcomeCode)
- Parameters:
outcomeCode- - Identifies the change (or lack of change) at the point when the status of the goal is assessed.
-
withOutcomeCode
public GoalBuilder.Impl withOutcomeCode(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... outcomeCode)
-
withStatusReason
public GoalBuilder.Impl withStatusReason(@NonNull @NonNull java.lang.String statusReason)
- Parameters:
statusReason- - Captures the reason for the current status.
-
withImplicitRules
public GoalBuilder.Impl withImplicitRules(@NonNull @NonNull java.lang.String implicitRules)
- Parameters:
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.
-
withOutcomeReference
public GoalBuilder.Impl withOutcomeReference(@NonNull @NonNull com.babylonhealth.lit.core.model.Reference... outcomeReference)
- Parameters:
outcomeReference- - Details of what's changed (or not changed).
-
withOutcomeReference
public GoalBuilder.Impl withOutcomeReference(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> outcomeReference)
- Parameters:
outcomeReference- - Details of what's changed (or not changed).
-
withOutcomeReference
public GoalBuilder.Impl withOutcomeReference(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... outcomeReference)
-
withModifierExtension
public GoalBuilder.Impl withModifierExtension(@NonNull @NonNull com.babylonhealth.lit.core.model.Extension... modifierExtension)
- Parameters:
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).
-
withModifierExtension
public GoalBuilder.Impl withModifierExtension(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> modifierExtension)
- Parameters:
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).
-
withModifierExtension
public GoalBuilder.Impl withModifierExtension(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... modifierExtension)
-
withAchievementStatus
public GoalBuilder.Impl withAchievementStatus(@NonNull @NonNull com.babylonhealth.lit.core.model.CodeableConcept achievementStatus)
- Parameters:
achievementStatus- - Describes the progression, or lack thereof, towards the goal against the target.
-
withAchievementStatus
public GoalBuilder.Impl withAchievementStatus(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder achievementStatus)
-
withTarget
public GoalBuilder.Impl withTarget(@NonNull @NonNull com.babylonhealth.lit.hl7.model.Goal.Target... target)
- Parameters:
target- - Indicates what should be done by when.
-
withTarget
public GoalBuilder.Impl withTarget(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.Goal.Target> target)
- Parameters:
target- - Indicates what should be done by when.
-
withTarget
public GoalBuilder.Impl withTarget(@NonNull @NonNull Goal_TargetBuilder... target)
-
withoutMeta
public GoalBuilder.Impl withoutMeta()
-
build
public com.babylonhealth.lit.hl7.model.Goal build()
- Specified by:
buildin interfaceDomainResourceBuilder- Specified by:
buildin interfaceGoalBuilder- Specified by:
buildin interfacecom.babylonhealth.lit.core_java.builders.ResourceBuilder
-
-