Class PlanDefinition.Action.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.BackboneElement.Builder
-
- com.ibm.fhir.model.resource.PlanDefinition.Action.Builder
-
- Enclosing class:
- PlanDefinition.Action
public static class PlanDefinition.Action.Builder extends BackboneElement.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
modifierExtension
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
Fields inherited from class com.ibm.fhir.model.builder.AbstractBuilder
validating
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlanDefinition.Action.Builderaction(PlanDefinition.Action... action)Sub actions that are contained within the action.PlanDefinition.Action.Builderaction(Collection<PlanDefinition.Action> action)Sub actions that are contained within the action.PlanDefinition.Actionbuild()Build thePlanDefinition.ActionPlanDefinition.Action.BuildercardinalityBehavior(ActionCardinalityBehavior cardinalityBehavior)Defines whether the action can be selected multiple times.PlanDefinition.Action.Buildercode(CodeableConcept... code)A code that provides meaning for the action or action group.PlanDefinition.Action.Buildercode(Collection<CodeableConcept> code)A code that provides meaning for the action or action group.PlanDefinition.Action.Buildercondition(PlanDefinition.Action.Condition... condition)An expression that describes applicability criteria or start/stop conditions for the action.PlanDefinition.Action.Buildercondition(Collection<PlanDefinition.Action.Condition> condition)An expression that describes applicability criteria or start/stop conditions for the action.PlanDefinition.Action.Builderdefinition(Element definition)A reference to an ActivityDefinition that describes the action to be taken in detail, or a PlanDefinition that describes a series of actions to be taken.PlanDefinition.Action.Builderdescription(String description)A brief description of the action used to provide a summary to display to the user.PlanDefinition.Action.Builderdocumentation(RelatedArtifact... documentation)Didactic or other informational resources associated with the action that can be provided to the CDS recipient.PlanDefinition.Action.Builderdocumentation(Collection<RelatedArtifact> documentation)Didactic or other informational resources associated with the action that can be provided to the CDS recipient.PlanDefinition.Action.BuilderdynamicValue(PlanDefinition.Action.DynamicValue... dynamicValue)Customizations that should be applied to the statically defined resource.PlanDefinition.Action.BuilderdynamicValue(Collection<PlanDefinition.Action.DynamicValue> dynamicValue)Customizations that should be applied to the statically defined resource.PlanDefinition.Action.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.PlanDefinition.Action.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected PlanDefinition.Action.Builderfrom(PlanDefinition.Action action)PlanDefinition.Action.BuildergoalId(Id... goalId)Identifies goals that this action supports.PlanDefinition.Action.BuildergoalId(Collection<Id> goalId)Identifies goals that this action supports.PlanDefinition.Action.BuildergroupingBehavior(ActionGroupingBehavior groupingBehavior)Defines the grouping behavior for the action and its children.PlanDefinition.Action.Builderid(String id)Unique id for the element within a resource (for internal references).PlanDefinition.Action.Builderinput(DataRequirement... input)Defines input data requirements for the action.PlanDefinition.Action.Builderinput(Collection<DataRequirement> input)Defines input data requirements for the action.PlanDefinition.Action.BuildermodifierExtension(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.PlanDefinition.Action.BuildermodifierExtension(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.PlanDefinition.Action.Builderoutput(DataRequirement... output)Defines the outputs of the action, if any.PlanDefinition.Action.Builderoutput(Collection<DataRequirement> output)Defines the outputs of the action, if any.PlanDefinition.Action.Builderparticipant(PlanDefinition.Action.Participant... participant)Indicates who should participate in performing the action described.PlanDefinition.Action.Builderparticipant(Collection<PlanDefinition.Action.Participant> participant)Indicates who should participate in performing the action described.PlanDefinition.Action.BuilderprecheckBehavior(ActionPrecheckBehavior precheckBehavior)Defines whether the action should usually be preselected.PlanDefinition.Action.Builderprefix(String prefix)A user-visible prefix for the action.PlanDefinition.Action.Builderpriority(RequestPriority priority)Indicates how quickly the action should be addressed with respect to other actions.PlanDefinition.Action.Builderreason(CodeableConcept... reason)A description of why this action is necessary or appropriate.PlanDefinition.Action.Builderreason(Collection<CodeableConcept> reason)A description of why this action is necessary or appropriate.PlanDefinition.Action.BuilderrelatedAction(PlanDefinition.Action.RelatedAction... relatedAction)A relationship to another action such as "before" or "30-60 minutes after start of".PlanDefinition.Action.BuilderrelatedAction(Collection<PlanDefinition.Action.RelatedAction> relatedAction)A relationship to another action such as "before" or "30-60 minutes after start of".PlanDefinition.Action.BuilderrequiredBehavior(ActionRequiredBehavior requiredBehavior)Defines the required behavior for the action.PlanDefinition.Action.BuilderselectionBehavior(ActionSelectionBehavior selectionBehavior)Defines the selection behavior for the action and its children.PlanDefinition.Action.Buildersubject(Element subject)A code or group definition that describes the intended subject of the action and its children, if any.PlanDefinition.Action.BuildertextEquivalent(String textEquivalent)A text equivalent of the action to be performed.PlanDefinition.Action.Buildertiming(Element timing)An optional value describing when the action should be performed.PlanDefinition.Action.Buildertitle(String title)The title of the action displayed to a user.PlanDefinition.Action.Buildertransform(Canonical transform)A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input.PlanDefinition.Action.Buildertrigger(TriggerDefinition... trigger)A description of when the action should be triggered.PlanDefinition.Action.Buildertrigger(Collection<TriggerDefinition> trigger)A description of when the action should be triggered.PlanDefinition.Action.Buildertype(CodeableConcept type)The type of action to perform (create, update, remove).protected voidvalidate(PlanDefinition.Action action)-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
from, validate
-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from, validate
-
Methods inherited from class com.ibm.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public PlanDefinition.Action.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 classBackboneElement.Builder- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public PlanDefinition.Action.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 classBackboneElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public PlanDefinition.Action.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 classBackboneElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
modifierExtension
public PlanDefinition.Action.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
- Overrides:
modifierExtensionin classBackboneElement.Builder- Parameters:
modifierExtension- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
modifierExtension
public PlanDefinition.Action.Builder modifierExtension(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
- Overrides:
modifierExtensionin classBackboneElement.Builder- Parameters:
modifierExtension- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
prefix
public PlanDefinition.Action.Builder prefix(String prefix)
A user-visible prefix for the action.- Parameters:
prefix- User-visible prefix for the action (e.g. 1. or A.)- Returns:
- A reference to this Builder instance
-
title
public PlanDefinition.Action.Builder title(String title)
The title of the action displayed to a user.- Parameters:
title- User-visible title- Returns:
- A reference to this Builder instance
-
description
public PlanDefinition.Action.Builder description(String description)
A brief description of the action used to provide a summary to display to the user.- Parameters:
description- Brief description of the action- Returns:
- A reference to this Builder instance
-
textEquivalent
public PlanDefinition.Action.Builder textEquivalent(String textEquivalent)
A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically.- Parameters:
textEquivalent- Static text equivalent of the action, used if the dynamic aspects cannot be interpreted by the receiving system- Returns:
- A reference to this Builder instance
-
priority
public PlanDefinition.Action.Builder priority(RequestPriority priority)
Indicates how quickly the action should be addressed with respect to other actions.- Parameters:
priority- routine | urgent | asap | stat- Returns:
- A reference to this Builder instance
-
code
public PlanDefinition.Action.Builder code(CodeableConcept... code)
A code that provides meaning for the action or action group. For example, a section may have a LOINC code for the section of a documentation template.Adds new element(s) to the existing list
- Parameters:
code- Code representing the meaning of the action or sub-actions- Returns:
- A reference to this Builder instance
-
code
public PlanDefinition.Action.Builder code(Collection<CodeableConcept> code)
A code that provides meaning for the action or action group. For example, a section may have a LOINC code for the section of a documentation template.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
code- Code representing the meaning of the action or sub-actions- Returns:
- A reference to this Builder instance
-
reason
public PlanDefinition.Action.Builder reason(CodeableConcept... reason)
A description of why this action is necessary or appropriate.Adds new element(s) to the existing list
- Parameters:
reason- Why the action should be performed- Returns:
- A reference to this Builder instance
-
reason
public PlanDefinition.Action.Builder reason(Collection<CodeableConcept> reason)
A description of why this action is necessary or appropriate.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
reason- Why the action should be performed- Returns:
- A reference to this Builder instance
-
documentation
public PlanDefinition.Action.Builder documentation(RelatedArtifact... documentation)
Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources.Adds new element(s) to the existing list
- Parameters:
documentation- Supporting documentation for the intended performer of the action- Returns:
- A reference to this Builder instance
-
documentation
public PlanDefinition.Action.Builder documentation(Collection<RelatedArtifact> documentation)
Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
documentation- Supporting documentation for the intended performer of the action- Returns:
- A reference to this Builder instance
-
goalId
public PlanDefinition.Action.Builder goalId(Id... goalId)
Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition.Adds new element(s) to the existing list
- Parameters:
goalId- What goals this action supports- Returns:
- A reference to this Builder instance
-
goalId
public PlanDefinition.Action.Builder goalId(Collection<Id> goalId)
Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
goalId- What goals this action supports- Returns:
- A reference to this Builder instance
-
subject
public PlanDefinition.Action.Builder subject(Element subject)
A code or group definition that describes the intended subject of the action and its children, if any.This is a choice element with the following allowed types:
When of typeReference, the allowed resource types for this reference are:- Parameters:
subject- Type of individual the action is focused on- Returns:
- A reference to this Builder instance
-
trigger
public PlanDefinition.Action.Builder trigger(TriggerDefinition... trigger)
A description of when the action should be triggered.Adds new element(s) to the existing list
- Parameters:
trigger- When the action should be triggered- Returns:
- A reference to this Builder instance
-
trigger
public PlanDefinition.Action.Builder trigger(Collection<TriggerDefinition> trigger)
A description of when the action should be triggered.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
trigger- When the action should be triggered- Returns:
- A reference to this Builder instance
-
condition
public PlanDefinition.Action.Builder condition(PlanDefinition.Action.Condition... condition)
An expression that describes applicability criteria or start/stop conditions for the action.Adds new element(s) to the existing list
- Parameters:
condition- Whether or not the action is applicable- Returns:
- A reference to this Builder instance
-
condition
public PlanDefinition.Action.Builder condition(Collection<PlanDefinition.Action.Condition> condition)
An expression that describes applicability criteria or start/stop conditions for the action.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
condition- Whether or not the action is applicable- Returns:
- A reference to this Builder instance
-
input
public PlanDefinition.Action.Builder input(DataRequirement... input)
Defines input data requirements for the action.Adds new element(s) to the existing list
- Parameters:
input- Input data requirements- Returns:
- A reference to this Builder instance
-
input
public PlanDefinition.Action.Builder input(Collection<DataRequirement> input)
Defines input data requirements for the action.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
input- Input data requirements- Returns:
- A reference to this Builder instance
-
output
public PlanDefinition.Action.Builder output(DataRequirement... output)
Defines the outputs of the action, if any.Adds new element(s) to the existing list
- Parameters:
output- Output data definition- Returns:
- A reference to this Builder instance
-
output
public PlanDefinition.Action.Builder output(Collection<DataRequirement> output)
Defines the outputs of the action, if any.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
output- Output data definition- Returns:
- A reference to this Builder instance
-
relatedAction
public PlanDefinition.Action.Builder relatedAction(PlanDefinition.Action.RelatedAction... relatedAction)
A relationship to another action such as "before" or "30-60 minutes after start of".Adds new element(s) to the existing list
- Parameters:
relatedAction- Relationship to another action- Returns:
- A reference to this Builder instance
-
relatedAction
public PlanDefinition.Action.Builder relatedAction(Collection<PlanDefinition.Action.RelatedAction> relatedAction)
A relationship to another action such as "before" or "30-60 minutes after start of".Replaces the existing list with a new one containing elements from the Collection
- Parameters:
relatedAction- Relationship to another action- Returns:
- A reference to this Builder instance
-
timing
public PlanDefinition.Action.Builder timing(Element timing)
An optional value describing when the action should be performed.This is a choice element with the following allowed types:
- Parameters:
timing- When the action should take place- Returns:
- A reference to this Builder instance
-
participant
public PlanDefinition.Action.Builder participant(PlanDefinition.Action.Participant... participant)
Indicates who should participate in performing the action described.Adds new element(s) to the existing list
- Parameters:
participant- Who should participate in the action- Returns:
- A reference to this Builder instance
-
participant
public PlanDefinition.Action.Builder participant(Collection<PlanDefinition.Action.Participant> participant)
Indicates who should participate in performing the action described.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
participant- Who should participate in the action- Returns:
- A reference to this Builder instance
-
type
public PlanDefinition.Action.Builder type(CodeableConcept type)
The type of action to perform (create, update, remove).- Parameters:
type- create | update | remove | fire-event- Returns:
- A reference to this Builder instance
-
groupingBehavior
public PlanDefinition.Action.Builder groupingBehavior(ActionGroupingBehavior groupingBehavior)
Defines the grouping behavior for the action and its children.- Parameters:
groupingBehavior- visual-group | logical-group | sentence-group- Returns:
- A reference to this Builder instance
-
selectionBehavior
public PlanDefinition.Action.Builder selectionBehavior(ActionSelectionBehavior selectionBehavior)
Defines the selection behavior for the action and its children.- Parameters:
selectionBehavior- any | all | all-or-none | exactly-one | at-most-one | one-or-more- Returns:
- A reference to this Builder instance
-
requiredBehavior
public PlanDefinition.Action.Builder requiredBehavior(ActionRequiredBehavior requiredBehavior)
Defines the required behavior for the action.- Parameters:
requiredBehavior- must | could | must-unless-documented- Returns:
- A reference to this Builder instance
-
precheckBehavior
public PlanDefinition.Action.Builder precheckBehavior(ActionPrecheckBehavior precheckBehavior)
Defines whether the action should usually be preselected.- Parameters:
precheckBehavior- yes | no- Returns:
- A reference to this Builder instance
-
cardinalityBehavior
public PlanDefinition.Action.Builder cardinalityBehavior(ActionCardinalityBehavior cardinalityBehavior)
Defines whether the action can be selected multiple times.- Parameters:
cardinalityBehavior- single | multiple- Returns:
- A reference to this Builder instance
-
definition
public PlanDefinition.Action.Builder definition(Element definition)
A reference to an ActivityDefinition that describes the action to be taken in detail, or a PlanDefinition that describes a series of actions to be taken.This is a choice element with the following allowed types:
- Parameters:
definition- Description of the activity to be performed- Returns:
- A reference to this Builder instance
-
transform
public PlanDefinition.Action.Builder transform(Canonical transform)
A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input.- Parameters:
transform- Transform to apply the template- Returns:
- A reference to this Builder instance
-
dynamicValue
public PlanDefinition.Action.Builder dynamicValue(PlanDefinition.Action.DynamicValue... dynamicValue)
Customizations that should be applied to the statically defined resource. For example, if the dosage of a medication must be computed based on the patient's weight, a customization would be used to specify an expression that calculated the weight, and the path on the resource that would contain the result.Adds new element(s) to the existing list
- Parameters:
dynamicValue- Dynamic aspects of the definition- Returns:
- A reference to this Builder instance
-
dynamicValue
public PlanDefinition.Action.Builder dynamicValue(Collection<PlanDefinition.Action.DynamicValue> dynamicValue)
Customizations that should be applied to the statically defined resource. For example, if the dosage of a medication must be computed based on the patient's weight, a customization would be used to specify an expression that calculated the weight, and the path on the resource that would contain the result.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
dynamicValue- Dynamic aspects of the definition- Returns:
- A reference to this Builder instance
-
action
public PlanDefinition.Action.Builder action(PlanDefinition.Action... action)
Sub actions that are contained within the action. The behavior of this action determines the functionality of the sub- actions. For example, a selection behavior of at-most-one indicates that of the sub-actions, at most one may be chosen as part of realizing the action definition.Adds new element(s) to the existing list
- Parameters:
action- A sub-action- Returns:
- A reference to this Builder instance
-
action
public PlanDefinition.Action.Builder action(Collection<PlanDefinition.Action> action)
Sub actions that are contained within the action. The behavior of this action determines the functionality of the sub- actions. For example, a selection behavior of at-most-one indicates that of the sub-actions, at most one may be chosen as part of realizing the action definition.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
action- A sub-action- Returns:
- A reference to this Builder instance
-
build
public PlanDefinition.Action build()
Build thePlanDefinition.Action- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classBackboneElement.Builder- Returns:
- An immutable object of type
PlanDefinition.Action - Throws:
IllegalStateException- if the current state cannot be built into a valid Action per the base specification
-
validate
protected void validate(PlanDefinition.Action action)
-
from
protected PlanDefinition.Action.Builder from(PlanDefinition.Action action)
-
-