Package org.hl7.fhir

Class CarePlan

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

    public class CarePlan
    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 CarePlan complex type.

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

     <complexType name="CarePlan">
       <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"/>
             <element name="status" type="{http://hl7.org/fhir}CarePlanStatus"/>
             <element name="context" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
             <element name="period" type="{http://hl7.org/fhir}Period" minOccurs="0"/>
             <element name="author" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
             <element name="modified" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
             <element name="category" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
             <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
             <element name="addresses" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
             <element name="support" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
             <element name="relatedPlan" type="{http://hl7.org/fhir}CarePlan.RelatedPlan" maxOccurs="unbounded" minOccurs="0"/>
             <element name="participant" type="{http://hl7.org/fhir}CarePlan.Participant" maxOccurs="unbounded" minOccurs="0"/>
             <element name="goal" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
             <element name="activity" type="{http://hl7.org/fhir}CarePlan.Activity" maxOccurs="unbounded" minOccurs="0"/>
             <element name="note" type="{http://hl7.org/fhir}Annotation" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • CarePlan

        public CarePlan()
    • 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
      • setStatus

        public void setStatus​(CarePlanStatus value)
        Sets the value of the status property.
        Parameters:
        value - allowed object is CarePlanStatus
      • getContext

        public Reference getContext()
        Gets the value of the context property.
        Returns:
        possible object is Reference
      • setContext

        public void setContext​(Reference value)
        Sets the value of the context property.
        Parameters:
        value - allowed object is Reference
      • getPeriod

        public Period getPeriod()
        Gets the value of the period property.
        Returns:
        possible object is Period
      • setPeriod

        public void setPeriod​(Period value)
        Sets the value of the period property.
        Parameters:
        value - allowed object is Period
      • getAuthor

        public java.util.List<Reference> getAuthor()
        Gets the value of the author 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 author property.

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

            getAuthor().add(newItem);
         

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

      • getModified

        public DateTime getModified()
        Gets the value of the modified property.
        Returns:
        possible object is DateTime
      • setModified

        public void setModified​(DateTime value)
        Sets the value of the modified property.
        Parameters:
        value - allowed object is DateTime
      • 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
      • 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

      • getSupport

        public java.util.List<Reference> getSupport()
        Gets the value of the support 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 support property.

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

            getSupport().add(newItem);
         

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

      • getRelatedPlan

        public java.util.List<CarePlanRelatedPlan> getRelatedPlan()
        Gets the value of the relatedPlan 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 relatedPlan property.

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

            getRelatedPlan().add(newItem);
         

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

      • getParticipant

        public java.util.List<CarePlanParticipant> getParticipant()
        Gets the value of the participant 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 participant property.

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

            getParticipant().add(newItem);
         

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

      • getGoal

        public java.util.List<Reference> getGoal()
        Gets the value of the goal 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 goal property.

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

            getGoal().add(newItem);
         

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

      • getActivity

        public java.util.List<CarePlanActivity> getActivity()
        Gets the value of the activity 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 activity property.

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

            getActivity().add(newItem);
         

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

      • getNote

        public Annotation getNote()
        Gets the value of the note property.
        Returns:
        possible object is Annotation
      • setNote

        public void setNote​(Annotation value)
        Sets the value of the note property.
        Parameters:
        value - allowed object is Annotation
      • withIdentifier

        public CarePlan withIdentifier​(java.util.Collection<Identifier> values)
      • withAuthor

        public CarePlan withAuthor​(java.util.Collection<Reference> values)
      • withAddresses

        public CarePlan withAddresses​(java.util.Collection<Reference> values)
      • withSupport

        public CarePlan withSupport​(java.util.Collection<Reference> 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