Package org.hl7.fhir

Class Goal

All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

public class Goal extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have either a @value, an @id, or extensions

Java class for Goal complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Goal">
   <complexContent>
     <extension base="{http://hl7.org/fhir}DomainResource">
       <sequence>
         <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
         <element name="subject" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <choice minOccurs="0">
           <element name="startDate" type="{http://hl7.org/fhir}date"/>
           <element name="startCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
         </choice>
         <choice minOccurs="0">
           <element name="targetDate" type="{http://hl7.org/fhir}date"/>
           <element name="targetQuantity" type="{http://hl7.org/fhir}Duration"/>
         </choice>
         <element name="category" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
         <element name="description" type="{http://hl7.org/fhir}string"/>
         <element name="status" type="{http://hl7.org/fhir}GoalStatus"/>
         <element name="statusDate" type="{http://hl7.org/fhir}date" minOccurs="0"/>
         <element name="statusReason" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
         <element name="author" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <element name="priority" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
         <element name="addresses" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
         <element name="note" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/>
         <element name="outcome" type="{http://hl7.org/fhir}Goal.Outcome" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Goal

      public Goal()
  • Method Details

    • getIdentifier

      public List<Identifier> getIdentifier()
      Gets the value of the identifier property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the identifier property.

      For example, to add a new item, do as follows:

          getIdentifier().add(newItem);
       

      Objects of the following type(s) are allowed in the list Identifier

    • getSubject

      public Reference getSubject()
      Gets the value of the subject property.
      Returns:
      possible object is Reference
    • setSubject

      public void setSubject(Reference value)
      Sets the value of the subject property.
      Parameters:
      value - allowed object is Reference
    • getStartDate

      public Date getStartDate()
      Gets the value of the startDate property.
      Returns:
      possible object is Date
    • setStartDate

      public void setStartDate(Date value)
      Sets the value of the startDate property.
      Parameters:
      value - allowed object is Date
    • getStartCodeableConcept

      public CodeableConcept getStartCodeableConcept()
      Gets the value of the startCodeableConcept property.
      Returns:
      possible object is CodeableConcept
    • setStartCodeableConcept

      public void setStartCodeableConcept(CodeableConcept value)
      Sets the value of the startCodeableConcept property.
      Parameters:
      value - allowed object is CodeableConcept
    • getTargetDate

      public Date getTargetDate()
      Gets the value of the targetDate property.
      Returns:
      possible object is Date
    • setTargetDate

      public void setTargetDate(Date value)
      Sets the value of the targetDate property.
      Parameters:
      value - allowed object is Date
    • getTargetQuantity

      public Duration getTargetQuantity()
      Gets the value of the targetQuantity property.
      Returns:
      possible object is Duration
    • setTargetQuantity

      public void setTargetQuantity(Duration value)
      Sets the value of the targetQuantity property.
      Parameters:
      value - allowed object is Duration
    • getCategory

      public List<CodeableConcept> getCategory()
      Gets the value of the category property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the category property.

      For example, to add a new item, do as follows:

          getCategory().add(newItem);
       

      Objects of the following type(s) are allowed in the list CodeableConcept

    • getDescription

      public String getDescription()
      Gets the value of the description property.
      Returns:
      possible object is String
    • setDescription

      public void setDescription(String value)
      Sets the value of the description property.
      Parameters:
      value - allowed object is String
    • getStatus

      public GoalStatus getStatus()
      Gets the value of the status property.
      Returns:
      possible object is GoalStatus
    • setStatus

      public void setStatus(GoalStatus value)
      Sets the value of the status property.
      Parameters:
      value - allowed object is GoalStatus
    • getStatusDate

      public Date getStatusDate()
      Gets the value of the statusDate property.
      Returns:
      possible object is Date
    • setStatusDate

      public void setStatusDate(Date value)
      Sets the value of the statusDate property.
      Parameters:
      value - allowed object is Date
    • getStatusReason

      public CodeableConcept getStatusReason()
      Gets the value of the statusReason property.
      Returns:
      possible object is CodeableConcept
    • setStatusReason

      public void setStatusReason(CodeableConcept value)
      Sets the value of the statusReason property.
      Parameters:
      value - allowed object is CodeableConcept
    • getAuthor

      public Reference getAuthor()
      Gets the value of the author property.
      Returns:
      possible object is Reference
    • setAuthor

      public void setAuthor(Reference value)
      Sets the value of the author property.
      Parameters:
      value - allowed object is Reference
    • getPriority

      public CodeableConcept getPriority()
      Gets the value of the priority property.
      Returns:
      possible object is CodeableConcept
    • setPriority

      public void setPriority(CodeableConcept value)
      Sets the value of the priority property.
      Parameters:
      value - allowed object is CodeableConcept
    • getAddresses

      public List<Reference> getAddresses()
      Gets the value of the addresses property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the addresses property.

      For example, to add a new item, do as follows:

          getAddresses().add(newItem);
       

      Objects of the following type(s) are allowed in the list Reference

    • getNote

      public List<Annotation> getNote()
      Gets the value of the note property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the note property.

      For example, to add a new item, do as follows:

          getNote().add(newItem);
       

      Objects of the following type(s) are allowed in the list Annotation

    • getOutcome

      public List<GoalOutcome> getOutcome()
      Gets the value of the outcome property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the outcome property.

      For example, to add a new item, do as follows:

          getOutcome().add(newItem);
       

      Objects of the following type(s) are allowed in the list GoalOutcome

    • withIdentifier

      public Goal withIdentifier(Identifier... values)
    • withIdentifier

      public Goal withIdentifier(Collection<Identifier> values)
    • withSubject

      public Goal withSubject(Reference value)
    • withStartDate

      public Goal withStartDate(Date value)
    • withStartCodeableConcept

      public Goal withStartCodeableConcept(CodeableConcept value)
    • withTargetDate

      public Goal withTargetDate(Date value)
    • withTargetQuantity

      public Goal withTargetQuantity(Duration value)
    • withCategory

      public Goal withCategory(CodeableConcept... values)
    • withCategory

      public Goal withCategory(Collection<CodeableConcept> values)
    • withDescription

      public Goal withDescription(String value)
    • withStatus

      public Goal withStatus(GoalStatus value)
    • withStatusDate

      public Goal withStatusDate(Date value)
    • withStatusReason

      public Goal withStatusReason(CodeableConcept value)
    • withAuthor

      public Goal withAuthor(Reference value)
    • withPriority

      public Goal withPriority(CodeableConcept value)
    • withAddresses

      public Goal withAddresses(Reference... values)
    • withAddresses

      public Goal withAddresses(Collection<Reference> values)
    • withNote

      public Goal withNote(Annotation... values)
    • withNote

      public Goal withNote(Collection<Annotation> values)
    • withOutcome

      public Goal withOutcome(GoalOutcome... values)
    • withOutcome

      public Goal withOutcome(Collection<GoalOutcome> values)
    • withText

      public Goal withText(Narrative value)
      Overrides:
      withText in class DomainResource
    • withContained

      public Goal withContained(ResourceContainer... values)
      Overrides:
      withContained in class DomainResource
    • withContained

      public Goal withContained(Collection<ResourceContainer> values)
      Overrides:
      withContained in class DomainResource
    • withExtension

      public Goal withExtension(Extension... values)
      Overrides:
      withExtension in class DomainResource
    • withExtension

      public Goal withExtension(Collection<Extension> values)
      Overrides:
      withExtension in class DomainResource
    • withModifierExtension

      public Goal withModifierExtension(Extension... values)
      Overrides:
      withModifierExtension in class DomainResource
    • withModifierExtension

      public Goal withModifierExtension(Collection<Extension> values)
      Overrides:
      withModifierExtension in class DomainResource
    • withId

      public Goal withId(Id value)
      Overrides:
      withId in class DomainResource
    • withMeta

      public Goal withMeta(Meta value)
      Overrides:
      withMeta in class DomainResource
    • withImplicitRules

      public Goal withImplicitRules(Uri value)
      Overrides:
      withImplicitRules in class DomainResource
    • withLanguage

      public Goal withLanguage(Code value)
      Overrides:
      withLanguage in class DomainResource
    • equals

      public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
      Specified by:
      equals in interface org.jvnet.jaxb2_commons.lang.Equals2
      Overrides:
      equals in class DomainResource
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class DomainResource
    • hashCode

      public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
      Specified by:
      hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
      Overrides:
      hashCode in class DomainResource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DomainResource
    • toString

      public String toString()
      Overrides:
      toString in class DomainResource
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      append in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      append in class DomainResource
    • appendFields

      public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      appendFields in class DomainResource
    • setIdentifier

      public void setIdentifier(List<Identifier> value)
    • setCategory

      public void setCategory(List<CodeableConcept> value)
    • setAddresses

      public void setAddresses(List<Reference> value)
    • setNote

      public void setNote(List<Annotation> value)
    • setOutcome

      public void setOutcome(List<GoalOutcome> value)