Class Goal
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.Goal
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement,ca.uhn.fhir.model.api.IElement,ca.uhn.fhir.model.api.IResource,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseResource
public class Goal extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR Goal Resource (clinical.careprovision)Definition: 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.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/Goal
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGoal.OutcomeBlock class for child element: Goal.outcome ()
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.TokenClientParamCATEGORYFluent Client search parameter constant for categorystatic ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_PATIENTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_SUBJECTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientstatic StringSP_CATEGORYSearch parameter constant for categorystatic StringSP_IDENTIFIERSearch parameter constant for identifierstatic StringSP_PATIENTSearch parameter constant for patientstatic StringSP_STATUSSearch parameter constant for statusstatic StringSP_SUBJECTSearch parameter constant for subjectstatic StringSP_TARGETDATESearch parameter constant for targetdatestatic ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for statusstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBJECTFluent Client search parameter constant for subjectstatic ca.uhn.fhir.rest.gclient.DateClientParamTARGETDATEFluent Client search parameter constant for targetdate-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description Goal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceReferenceDtaddAddresses()Adds and returns a new value for addresses ()CodeableConceptDtaddCategory()Adds and returns a new value for category ()GoaladdCategory(CodeableConceptDt theValue)Adds a given new value for category ()IdentifierDtaddIdentifier()Adds and returns a new value for identifier (id)GoaladdIdentifier(IdentifierDt theValue)Adds a given new value for identifier (id)AnnotationDtaddNote()Adds and returns a new value for note ()GoaladdNote(AnnotationDt theValue)Adds a given new value for note ()Goal.OutcomeaddOutcome()Adds and returns a new value for outcome ()GoaladdOutcome(Goal.Outcome theValue)Adds a given new value for outcome ()List<ResourceReferenceDt>getAddresses()Gets the value(s) for addresses ().<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)ResourceReferenceDtgetAuthor()Gets the value(s) for author (who.actor).List<CodeableConceptDt>getCategory()Gets the value(s) for category ().CodeableConceptDtgetCategoryFirstRep()Gets the first repetition for category (), creating it if it does not already exist.StringgetDescription()Gets the value(s) for description ().ca.uhn.fhir.model.primitive.StringDtgetDescriptionElement()Gets the value(s) for description ().List<IdentifierDt>getIdentifier()Gets the value(s) for identifier (id).IdentifierDtgetIdentifierFirstRep()Gets the first repetition for identifier (id), creating it if it does not already exist.List<AnnotationDt>getNote()Gets the value(s) for note ().AnnotationDtgetNoteFirstRep()Gets the first repetition for note (), creating it if it does not already exist.List<Goal.Outcome>getOutcome()Gets the value(s) for outcome ().Goal.OutcomegetOutcomeFirstRep()Gets the first repetition for outcome (), creating it if it does not already exist.BoundCodeableConceptDt<GoalPriorityEnum>getPriority()Gets the value(s) for priority ().StringgetResourceName()ca.uhn.fhir.model.api.IDatatypegetStart()Gets the value(s) for start[x] ().StringgetStatus()Gets the value(s) for status (status).DategetStatusDate()Gets the value(s) for statusDate (when.recorded).ca.uhn.fhir.model.primitive.DateDtgetStatusDateElement()Gets the value(s) for statusDate (when.recorded).ca.uhn.fhir.model.primitive.BoundCodeDt<GoalStatusEnum>getStatusElement()Gets the value(s) for status (status).CodeableConceptDtgetStatusReason()Gets the value(s) for statusReason ().ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()ResourceReferenceDtgetSubject()Gets the value(s) for subject (who.focus).ca.uhn.fhir.model.api.IDatatypegetTarget()Gets the value(s) for target[x] ().booleanisEmpty()GoalsetAddresses(List<ResourceReferenceDt> theValue)Sets the value(s) for addresses ()GoalsetAuthor(ResourceReferenceDt theValue)Sets the value(s) for author (who.actor)GoalsetCategory(List<CodeableConceptDt> theValue)Sets the value(s) for category ()GoalsetDescription(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for description ()GoalsetDescription(String theString)Sets the value for description ()GoalsetIdentifier(List<IdentifierDt> theValue)Sets the value(s) for identifier (id)GoalsetNote(List<AnnotationDt> theValue)Sets the value(s) for note ()GoalsetOutcome(List<Goal.Outcome> theValue)Sets the value(s) for outcome ()GoalsetPriority(BoundCodeableConceptDt<GoalPriorityEnum> theValue)Sets the value(s) for priority ()GoalsetPriority(GoalPriorityEnum theValue)Sets the value(s) for priority ()GoalsetStart(ca.uhn.fhir.model.api.IDatatype theValue)Sets the value(s) for start[x] ()GoalsetStatus(GoalStatusEnum theValue)Sets the value(s) for status (status)GoalsetStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<GoalStatusEnum> theValue)Sets the value(s) for status (status)GoalsetStatusDate(ca.uhn.fhir.model.primitive.DateDt theValue)Sets the value(s) for statusDate (when.recorded)GoalsetStatusDate(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for statusDate (when.recorded)GoalsetStatusDateWithDayPrecision(Date theDate)Sets the value for statusDate (when.recorded)GoalsetStatusReason(CodeableConceptDt theValue)Sets the value(s) for statusReason ()GoalsetSubject(ResourceReferenceDt theValue)Sets the value(s) for subject (who.focus)GoalsetTarget(ca.uhn.fhir.model.api.IDatatype theValue)Sets the value(s) for target[x] ()-
Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
-
-
-
Field Detail
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter constant for patientDescription:
Type: reference
Path: Goal.subject
- See Also:
- Constant Field Values
-
PATIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Fluent Client search parameter constant for patientDescription:
Type: reference
Path: Goal.subject
-
SP_SUBJECT
public static final String SP_SUBJECT
Search parameter constant for subjectDescription:
Type: reference
Path: Goal.subject
- See Also:
- Constant Field Values
-
SUBJECT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
Fluent Client search parameter constant for subjectDescription:
Type: reference
Path: Goal.subject
-
SP_CATEGORY
public static final String SP_CATEGORY
Search parameter constant for categoryDescription:
Type: token
Path: Goal.category
- See Also:
- Constant Field Values
-
CATEGORY
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY
Fluent Client search parameter constant for categoryDescription:
Type: token
Path: Goal.category
-
SP_TARGETDATE
public static final String SP_TARGETDATE
Search parameter constant for targetdateDescription:
Type: date
Path: Goal.targetDate
- See Also:
- Constant Field Values
-
TARGETDATE
public static final ca.uhn.fhir.rest.gclient.DateClientParam TARGETDATE
Fluent Client search parameter constant for targetdateDescription:
Type: date
Path: Goal.targetDate
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter constant for identifierDescription:
Type: token
Path: Goal.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription:
Type: token
Path: Goal.identifier
-
SP_STATUS
public static final String SP_STATUS
Search parameter constant for statusDescription:
Type: token
Path: Goal.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription:
Type: token
Path: Goal.status
-
INCLUDE_PATIENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Goal:patient".
-
INCLUDE_SUBJECT
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Goal:subject".
-
-
Constructor Detail
-
Goal
public Goal()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
- Specified by:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getIdentifier
public List<IdentifierDt> getIdentifier()
Gets the value(s) for identifier (id). creating it if it does not exist. Will not returnnull.Definition: This records identifiers associated with this care plan that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
-
setIdentifier
public Goal setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier (id)Definition: This records identifiers associated with this care plan that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
-
addIdentifier
public IdentifierDt addIdentifier()
Adds and returns a new value for identifier (id)Definition: This records identifiers associated with this care plan that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
-
addIdentifier
public Goal addIdentifier(IdentifierDt theValue)
Adds a given new value for identifier (id)Definition: This records identifiers associated with this care plan that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
- Parameters:
theValue- The identifier to add (must not benull)
-
getIdentifierFirstRep
public IdentifierDt getIdentifierFirstRep()
Gets the first repetition for identifier (id), creating it if it does not already exist.Definition: This records identifiers associated with this care plan that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
-
getSubject
public ResourceReferenceDt getSubject()
Gets the value(s) for subject (who.focus). creating it if it does not exist. Will not returnnull.Definition: Identifies the patient, group or organization for whom the goal is being established.
-
setSubject
public Goal setSubject(ResourceReferenceDt theValue)
Sets the value(s) for subject (who.focus)Definition: Identifies the patient, group or organization for whom the goal is being established.
-
getStart
public ca.uhn.fhir.model.api.IDatatype getStart()
Gets the value(s) for start[x] (). creating it if it does not exist. Will not returnnull.Definition: The date or event after which the goal should begin being pursued
-
setStart
public Goal setStart(ca.uhn.fhir.model.api.IDatatype theValue)
Sets the value(s) for start[x] ()Definition: The date or event after which the goal should begin being pursued
-
getTarget
public ca.uhn.fhir.model.api.IDatatype getTarget()
Gets the value(s) for target[x] (). creating it if it does not exist. Will not returnnull.Definition: Indicates either the date or the duration after start by which the goal should be met
-
setTarget
public Goal setTarget(ca.uhn.fhir.model.api.IDatatype theValue)
Sets the value(s) for target[x] ()Definition: Indicates either the date or the duration after start by which the goal should be met
-
getCategory
public List<CodeableConceptDt> getCategory()
Gets the value(s) for category (). creating it if it does not exist. Will not returnnull.Definition: Indicates a category the goal falls within
-
setCategory
public Goal setCategory(List<CodeableConceptDt> theValue)
Sets the value(s) for category ()Definition: Indicates a category the goal falls within
-
addCategory
public CodeableConceptDt addCategory()
Adds and returns a new value for category ()Definition: Indicates a category the goal falls within
-
addCategory
public Goal addCategory(CodeableConceptDt theValue)
Adds a given new value for category ()Definition: Indicates a category the goal falls within
- Parameters:
theValue- The category to add (must not benull)
-
getCategoryFirstRep
public CodeableConceptDt getCategoryFirstRep()
Gets the first repetition for category (), creating it if it does not already exist.Definition: Indicates a category the goal falls within
-
getDescriptionElement
public ca.uhn.fhir.model.primitive.StringDt getDescriptionElement()
Gets the value(s) for description (). creating it if it does not exist. Will not returnnull.Definition: Human-readable description of a specific desired objective of care.
-
getDescription
public String getDescription()
Gets the value(s) for description (). creating it if it does not exist. This method may returnnull.Definition: Human-readable description of a specific desired objective of care.
-
setDescription
public Goal setDescription(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for description ()Definition: Human-readable description of a specific desired objective of care.
-
setDescription
public Goal setDescription(String theString)
Sets the value for description ()Definition: Human-readable description of a specific desired objective of care.
-
getStatusElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<GoalStatusEnum> getStatusElement()
Gets the value(s) for status (status). creating it if it does not exist. Will not returnnull.Definition: Indicates whether the goal has been reached and is still considered relevant
-
getStatus
public String getStatus()
Gets the value(s) for status (status). creating it if it does not exist. This method may returnnull.Definition: Indicates whether the goal has been reached and is still considered relevant
-
setStatus
public Goal setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<GoalStatusEnum> theValue)
Sets the value(s) for status (status)Definition: Indicates whether the goal has been reached and is still considered relevant
-
setStatus
public Goal setStatus(GoalStatusEnum theValue)
Sets the value(s) for status (status)Definition: Indicates whether the goal has been reached and is still considered relevant
-
getStatusDateElement
public ca.uhn.fhir.model.primitive.DateDt getStatusDateElement()
Gets the value(s) for statusDate (when.recorded). creating it if it does not exist. Will not returnnull.Definition: Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.
-
getStatusDate
public Date getStatusDate()
Gets the value(s) for statusDate (when.recorded). creating it if it does not exist. This method may returnnull.Definition: Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.
-
setStatusDate
public Goal setStatusDate(ca.uhn.fhir.model.primitive.DateDt theValue)
Sets the value(s) for statusDate (when.recorded)Definition: Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.
-
setStatusDate
public Goal setStatusDate(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
Sets the value for statusDate (when.recorded)Definition: Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.
-
setStatusDateWithDayPrecision
public Goal setStatusDateWithDayPrecision(Date theDate)
Sets the value for statusDate (when.recorded)Definition: Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.
-
getStatusReason
public CodeableConceptDt getStatusReason()
Gets the value(s) for statusReason (). creating it if it does not exist. Will not returnnull.Definition: Captures the reason for the current status.
-
setStatusReason
public Goal setStatusReason(CodeableConceptDt theValue)
Sets the value(s) for statusReason ()Definition: Captures the reason for the current status.
-
getAuthor
public ResourceReferenceDt getAuthor()
Gets the value(s) for author (who.actor). creating it if it does not exist. Will not returnnull.Definition: Indicates whose goal this is - patient goal, practitioner goal, etc.
-
setAuthor
public Goal setAuthor(ResourceReferenceDt theValue)
Sets the value(s) for author (who.actor)Definition: Indicates whose goal this is - patient goal, practitioner goal, etc.
-
getPriority
public BoundCodeableConceptDt<GoalPriorityEnum> getPriority()
Gets the value(s) for priority (). creating it if it does not exist. Will not returnnull.Definition: Identifies the mutually agreed level of importance associated with reaching/sustaining the goal
-
setPriority
public Goal setPriority(BoundCodeableConceptDt<GoalPriorityEnum> theValue)
Sets the value(s) for priority ()Definition: Identifies the mutually agreed level of importance associated with reaching/sustaining the goal
-
setPriority
public Goal setPriority(GoalPriorityEnum theValue)
Sets the value(s) for priority ()Definition: Identifies the mutually agreed level of importance associated with reaching/sustaining the goal
-
getAddresses
public List<ResourceReferenceDt> getAddresses()
Gets the value(s) for addresses (). creating it if it does not exist. Will not returnnull.Definition: The identified conditions and other health record elements that are intended to be addressed by the goal
-
setAddresses
public Goal setAddresses(List<ResourceReferenceDt> theValue)
Sets the value(s) for addresses ()Definition: The identified conditions and other health record elements that are intended to be addressed by the goal
-
addAddresses
public ResourceReferenceDt addAddresses()
Adds and returns a new value for addresses ()Definition: The identified conditions and other health record elements that are intended to be addressed by the goal
-
getNote
public List<AnnotationDt> getNote()
Gets the value(s) for note (). creating it if it does not exist. Will not returnnull.Definition: Any comments related to the goal
-
setNote
public Goal setNote(List<AnnotationDt> theValue)
Sets the value(s) for note ()Definition: Any comments related to the goal
-
addNote
public AnnotationDt addNote()
Adds and returns a new value for note ()Definition: Any comments related to the goal
-
addNote
public Goal addNote(AnnotationDt theValue)
Adds a given new value for note ()Definition: Any comments related to the goal
- Parameters:
theValue- The note to add (must not benull)
-
getNoteFirstRep
public AnnotationDt getNoteFirstRep()
Gets the first repetition for note (), creating it if it does not already exist.Definition: Any comments related to the goal
-
getOutcome
public List<Goal.Outcome> getOutcome()
Gets the value(s) for outcome (). creating it if it does not exist. Will not returnnull.Definition: Identifies the change (or lack of change) at the point where the goal was deepmed to be cancelled or achieved.
-
setOutcome
public Goal setOutcome(List<Goal.Outcome> theValue)
Sets the value(s) for outcome ()Definition: Identifies the change (or lack of change) at the point where the goal was deepmed to be cancelled or achieved.
-
addOutcome
public Goal.Outcome addOutcome()
Adds and returns a new value for outcome ()Definition: Identifies the change (or lack of change) at the point where the goal was deepmed to be cancelled or achieved.
-
addOutcome
public Goal addOutcome(Goal.Outcome theValue)
Adds a given new value for outcome ()Definition: Identifies the change (or lack of change) at the point where the goal was deepmed to be cancelled or achieved.
- Parameters:
theValue- The outcome to add (must not benull)
-
getOutcomeFirstRep
public Goal.Outcome getOutcomeFirstRep()
Gets the first repetition for outcome (), creating it if it does not already exist.Definition: Identifies the change (or lack of change) at the point where the goal was deepmed to be cancelled or achieved.
-
getResourceName
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-