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>
 
  • Field Details

  • Constructor Details

    • CarePlan

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

      public CarePlanStatus getStatus()
      Gets the value of the status property.
      Returns:
      possible object is CarePlanStatus
    • 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 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 Jakarta XML Binding 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 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
    • 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

    • getSupport

      public 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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(Identifier... values)
    • withIdentifier

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

      public CarePlan withSubject(Reference value)
    • withStatus

      public CarePlan withStatus(CarePlanStatus value)
    • withContext

      public CarePlan withContext(Reference value)
    • withPeriod

      public CarePlan withPeriod(Period value)
    • withAuthor

      public CarePlan withAuthor(Reference... values)
    • withAuthor

      public CarePlan withAuthor(Collection<Reference> values)
    • withModified

      public CarePlan withModified(DateTime value)
    • withCategory

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

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

      public CarePlan withDescription(String value)
    • withAddresses

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

      public CarePlan withAddresses(Collection<Reference> values)
    • withSupport

      public CarePlan withSupport(Reference... values)
    • withSupport

      public CarePlan withSupport(Collection<Reference> values)
    • withRelatedPlan

      public CarePlan withRelatedPlan(CarePlanRelatedPlan... values)
    • withRelatedPlan

      public CarePlan withRelatedPlan(Collection<CarePlanRelatedPlan> values)
    • withParticipant

      public CarePlan withParticipant(CarePlanParticipant... values)
    • withParticipant

      public CarePlan withParticipant(Collection<CarePlanParticipant> values)
    • withGoal

      public CarePlan withGoal(Reference... values)
    • withGoal

      public CarePlan withGoal(Collection<Reference> values)
    • withActivity

      public CarePlan withActivity(CarePlanActivity... values)
    • withActivity

      public CarePlan withActivity(Collection<CarePlanActivity> values)
    • withNote

      public CarePlan withNote(Annotation value)
    • withText

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

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

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

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

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

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

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

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

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

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

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

      public void setAuthor(List<Reference> value)
    • setCategory

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

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

      public void setSupport(List<Reference> value)
    • setRelatedPlan

      public void setRelatedPlan(List<CarePlanRelatedPlan> value)
    • setParticipant

      public void setParticipant(List<CarePlanParticipant> value)
    • setGoal

      public void setGoal(List<Reference> value)
    • setActivity

      public void setActivity(List<CarePlanActivity> value)