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>
     
    • Constructor Detail

      • Goal

        public Goal()
    • Method Detail

      • getIdentifier

        public java.util.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 JAXB 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 java.util.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 JAXB 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
      • 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
      • setPriority

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

        public java.util.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 JAXB 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 java.util.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 JAXB 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 java.util.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 JAXB 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​(java.util.Collection<Identifier> values)
      • withStartDate

        public Goal withStartDate​(Date value)
      • withTargetDate

        public Goal withTargetDate​(Date value)
      • withTargetQuantity

        public Goal withTargetQuantity​(Duration value)
      • withDescription

        public Goal withDescription​(String value)
      • withStatusDate

        public Goal withStatusDate​(Date value)
      • withAddresses

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

        public Goal withAddresses​(java.util.Collection<Reference> values)
      • withNote

        public Goal withNote​(java.util.Collection<Annotation> values)
      • withOutcome

        public Goal withOutcome​(java.util.Collection<GoalOutcome> values)
      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              java.lang.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​(java.lang.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
      • append

        public java.lang.StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                              java.lang.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 java.lang.StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                                    java.lang.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