Package com.ibm.fhir.model.resource
Class Goal
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.Goal
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class Goal extends DomainResource
Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGoal.Builderstatic classGoal.TargetIndicates what should be done by when.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class com.ibm.fhir.model.resource.Resource
id, implicitRules, language, meta
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static Goal.Builderbuilder()booleanequals(Object obj)CodeableConceptgetAchievementStatus()Describes the progression, or lack thereof, towards the goal against the target.List<Reference>getAddresses()The identified conditions and other health record elements that are intended to be addressed by the goal.List<CodeableConcept>getCategory()Indicates a category the goal falls within.CodeableConceptgetDescription()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".ReferencegetExpressedBy()Indicates whose goal this is - patient goal, practitioner goal, etc.List<Identifier>getIdentifier()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.GoalLifecycleStatusgetLifecycleStatus()The state of the goal throughout its lifecycle.List<Annotation>getNote()Any comments related to the goal.List<CodeableConcept>getOutcomeCode()Identifies the change (or lack of change) at the point when the status of the goal is assessed.List<Reference>getOutcomeReference()Details of what's changed (or not changed).CodeableConceptgetPriority()Identifies the mutually agreed level of importance associated with reaching/sustaining the goal.ElementgetStart()The date or event after which the goal should begin being pursued.DategetStatusDate()Identifies when the current status.StringgetStatusReason()Captures the reason for the current status.ReferencegetSubject()Identifies the patient, group or organization for whom the goal is being established.List<Goal.Target>getTarget()Indicates what should be done by when.booleanhasChildren()inthashCode()Goal.BuildertoBuilder()Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
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.- Returns:
- An unmodifiable list containing immutable objects of type
Identifierthat may be empty.
-
getLifecycleStatus
public GoalLifecycleStatus getLifecycleStatus()
The state of the goal throughout its lifecycle.- Returns:
- An immutable object of type
GoalLifecycleStatusthat is non-null.
-
getAchievementStatus
public CodeableConcept getAchievementStatus()
Describes the progression, or lack thereof, towards the goal against the target.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getCategory
public List<CodeableConcept> getCategory()
Indicates a category the goal falls within.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getPriority
public CodeableConcept getPriority()
Identifies the mutually agreed level of importance associated with reaching/sustaining the goal.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getDescription
public CodeableConcept getDescription()
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".- Returns:
- An immutable object of type
CodeableConceptthat is non-null.
-
getSubject
public Reference getSubject()
Identifies the patient, group or organization for whom the goal is being established.- Returns:
- An immutable object of type
Referencethat is non-null.
-
getStart
public Element getStart()
The date or event after which the goal should begin being pursued.- Returns:
- An immutable object of type
Elementthat may be null.
-
getTarget
public List<Goal.Target> getTarget()
Indicates what should be done by when.- Returns:
- An unmodifiable list containing immutable objects of type
Goal.Targetthat may be empty.
-
getStatusDate
public Date getStatusDate()
Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.- Returns:
- An immutable object of type
Datethat may be null.
-
getStatusReason
public String getStatusReason()
Captures the reason for the current status.- Returns:
- An immutable object of type
Stringthat may be null.
-
getExpressedBy
public Reference getExpressedBy()
Indicates whose goal this is - patient goal, practitioner goal, etc.- Returns:
- An immutable object of type
Referencethat may be null.
-
getAddresses
public List<Reference> getAddresses()
The identified conditions and other health record elements that are intended to be addressed by the goal.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getNote
public List<Annotation> getNote()
Any comments related to the goal.- Returns:
- An unmodifiable list containing immutable objects of type
Annotationthat may be empty.
-
getOutcomeCode
public List<CodeableConcept> getOutcomeCode()
Identifies the change (or lack of change) at the point when the status of the goal is assessed.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getOutcomeReference
public List<Reference> getOutcomeReference()
Details of what's changed (or not changed).- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classDomainResource
-
accept
public void accept(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
-
toBuilder
public Goal.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static Goal.Builder builder()
-
-