Class PlanDefinition.Action
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.type.Element
-
- org.linuxforhealth.fhir.model.type.BackboneElement
-
- org.linuxforhealth.fhir.model.resource.PlanDefinition.Action
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- PlanDefinition
public static class PlanDefinition.Action extends BackboneElement
An action or group of actions to be taken as part of the plan. For example, in clinical care, an action would be to prescribe a particular indicated medication, or perform a particular test as appropriate. In pharmaceutical quality, an action would be the test that needs to be performed on a drug product as defined in the quality specification.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlanDefinition.Action.Builderstatic classPlanDefinition.Action.ConditionAn expression that describes applicability criteria or start/stop conditions for the action.static classPlanDefinition.Action.DynamicValueCustomizations that should be applied to the statically defined resource.static classPlanDefinition.Action.ParticipantIndicates who should participate in performing the action described.static classPlanDefinition.Action.RelatedActionA relationship to another action such as "before" or "30-60 minutes after start of".
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static PlanDefinition.Action.Builderbuilder()booleanequals(java.lang.Object obj)java.util.List<PlanDefinition.Action>getAction()Sub actions that are contained within the action.ActionCardinalityBehaviorgetCardinalityBehavior()Defines whether the action can be selected multiple times.java.util.List<CodeableConcept>getCode()A code that provides a meaning, grouping, or classification for the action or action group.java.util.List<PlanDefinition.Action.Condition>getCondition()An expression that describes applicability criteria or start/stop conditions for the action.ElementgetDefinition()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.StringgetDescription()A brief description of the action used to provide a summary to display to the user.java.util.List<RelatedArtifact>getDocumentation()Didactic or other informational resources associated with the action that can be provided to the CDS recipient.java.util.List<PlanDefinition.Action.DynamicValue>getDynamicValue()Customizations that should be applied to the statically defined resource.java.util.List<Id>getGoalId()Identifies goals that this action supports.ActionGroupingBehaviorgetGroupingBehavior()Defines the grouping behavior for the action and its children.java.util.List<DataRequirement>getInput()Defines input data requirements for the action.java.util.List<DataRequirement>getOutput()Defines the outputs of the action, if any.java.util.List<PlanDefinition.Action.Participant>getParticipant()Indicates who should participate in performing the action described.ActionPrecheckBehaviorgetPrecheckBehavior()Defines whether the action should usually be preselected.StringgetPrefix()A user-visible prefix for the action.RequestPrioritygetPriority()Indicates how quickly the action should be addressed with respect to other actions.java.util.List<CodeableConcept>getReason()A description of why this action is necessary or appropriate.java.util.List<PlanDefinition.Action.RelatedAction>getRelatedAction()A relationship to another action such as "before" or "30-60 minutes after start of".ActionRequiredBehaviorgetRequiredBehavior()Defines the required behavior for the action.ActionSelectionBehaviorgetSelectionBehavior()Defines the selection behavior for the action and its children.ElementgetSubject()A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any.StringgetTextEquivalent()A text equivalent of the action to be performed.ElementgetTiming()An optional value describing when the action should be performed.StringgetTitle()The textual description of the action displayed to a user.CanonicalgetTransform()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.java.util.List<TriggerDefinition>getTrigger()A description of when the action should be triggered.CodeableConceptgetType()The type of action to perform (create, update, remove).booleanhasChildren()inthashCode()PlanDefinition.Action.BuildertoBuilder()Create a new Builder from the contents of this Element-
Methods inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
getModifierExtension
-
Methods inherited from class org.linuxforhealth.fhir.model.type.Element
as, getExtension, getId, hasValue, is
-
-
-
-
Method Detail
-
getPrefix
public String getPrefix()
A user-visible prefix for the action.- Returns:
- An immutable object of type
Stringthat may be null.
-
getTitle
public String getTitle()
The textual description of the action displayed to a user. For example, when the action is a test to be performed, the title would be the title of the test such as Assay by HPLC.- Returns:
- An immutable object of type
Stringthat may be null.
-
getDescription
public String getDescription()
A brief description of the action used to provide a summary to display to the user.- Returns:
- An immutable object of type
Stringthat may be null.
-
getTextEquivalent
public String getTextEquivalent()
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.- Returns:
- An immutable object of type
Stringthat may be null.
-
getPriority
public RequestPriority getPriority()
Indicates how quickly the action should be addressed with respect to other actions.- Returns:
- An immutable object of type
RequestPrioritythat may be null.
-
getCode
public java.util.List<CodeableConcept> getCode()
A code that provides a meaning, grouping, or classification for the action or action group. For example, a section may have a LOINC code for the section of a documentation template. In pharmaceutical quality, an action (Test) such as pH could be classified as a physical property.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getReason
public java.util.List<CodeableConcept> getReason()
A description of why this action is necessary or appropriate.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getDocumentation
public java.util.List<RelatedArtifact> getDocumentation()
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.- Returns:
- An unmodifiable list containing immutable objects of type
RelatedArtifactthat may be empty.
-
getGoalId
public java.util.List<Id> getGoalId()
Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition. In pharmaceutical quality, a goal represents acceptance criteria (Goal) for a given action (Test), so the goalId would be the unique id of a defined goal element establishing the acceptance criteria for the action.- Returns:
- An unmodifiable list containing immutable objects of type
Idthat may be empty.
-
getSubject
public Element getSubject()
A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.- Returns:
- An immutable object of type
CodeableConcept,ReferenceorCanonicalthat may be null.
-
getTrigger
public java.util.List<TriggerDefinition> getTrigger()
A description of when the action should be triggered.- Returns:
- An unmodifiable list containing immutable objects of type
TriggerDefinitionthat may be empty.
-
getCondition
public java.util.List<PlanDefinition.Action.Condition> getCondition()
An expression that describes applicability criteria or start/stop conditions for the action.- Returns:
- An unmodifiable list containing immutable objects of type
PlanDefinition.Action.Conditionthat may be empty.
-
getInput
public java.util.List<DataRequirement> getInput()
Defines input data requirements for the action.- Returns:
- An unmodifiable list containing immutable objects of type
DataRequirementthat may be empty.
-
getOutput
public java.util.List<DataRequirement> getOutput()
Defines the outputs of the action, if any.- Returns:
- An unmodifiable list containing immutable objects of type
DataRequirementthat may be empty.
-
getRelatedAction
public java.util.List<PlanDefinition.Action.RelatedAction> getRelatedAction()
A relationship to another action such as "before" or "30-60 minutes after start of".- Returns:
- An unmodifiable list containing immutable objects of type
PlanDefinition.Action.RelatedActionthat may be empty.
-
getTiming
public Element getTiming()
An optional value describing when the action should be performed.
-
getParticipant
public java.util.List<PlanDefinition.Action.Participant> getParticipant()
Indicates who should participate in performing the action described.- Returns:
- An unmodifiable list containing immutable objects of type
PlanDefinition.Action.Participantthat may be empty.
-
getType
public CodeableConcept getType()
The type of action to perform (create, update, remove).- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getGroupingBehavior
public ActionGroupingBehavior getGroupingBehavior()
Defines the grouping behavior for the action and its children.- Returns:
- An immutable object of type
ActionGroupingBehaviorthat may be null.
-
getSelectionBehavior
public ActionSelectionBehavior getSelectionBehavior()
Defines the selection behavior for the action and its children.- Returns:
- An immutable object of type
ActionSelectionBehaviorthat may be null.
-
getRequiredBehavior
public ActionRequiredBehavior getRequiredBehavior()
Defines the required behavior for the action.- Returns:
- An immutable object of type
ActionRequiredBehaviorthat may be null.
-
getPrecheckBehavior
public ActionPrecheckBehavior getPrecheckBehavior()
Defines whether the action should usually be preselected.- Returns:
- An immutable object of type
ActionPrecheckBehaviorthat may be null.
-
getCardinalityBehavior
public ActionCardinalityBehavior getCardinalityBehavior()
Defines whether the action can be selected multiple times.- Returns:
- An immutable object of type
ActionCardinalityBehaviorthat may be null.
-
getDefinition
public Element getDefinition()
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.
-
getTransform
public Canonical getTransform()
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.- Returns:
- An immutable object of type
Canonicalthat may be null.
-
getDynamicValue
public java.util.List<PlanDefinition.Action.DynamicValue> getDynamicValue()
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.- Returns:
- An unmodifiable list containing immutable objects of type
PlanDefinition.Action.DynamicValuethat may be empty.
-
getAction
public java.util.List<PlanDefinition.Action> getAction()
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.- Returns:
- An unmodifiable list containing immutable objects of type
PlanDefinition.Actionthat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public PlanDefinition.Action.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static PlanDefinition.Action.Builder builder()
-
-