Package org.hl7.fhir

Class Task

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

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

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

 <complexType name="Task">
   <complexContent>
     <extension base="{http://hl7.org/fhir}DomainResource">
       <sequence>
         <element name="identifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
         <element name="type" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
         <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
         <element name="performerType" type="{http://hl7.org/fhir}Coding" maxOccurs="unbounded" minOccurs="0"/>
         <element name="priority" type="{http://hl7.org/fhir}TaskPriority" minOccurs="0"/>
         <element name="status" type="{http://hl7.org/fhir}TaskStatus"/>
         <element name="failureReason" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
         <element name="subject" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <element name="for" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <element name="definition" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
         <element name="created" type="{http://hl7.org/fhir}dateTime"/>
         <element name="lastModified" type="{http://hl7.org/fhir}dateTime"/>
         <element name="creator" type="{http://hl7.org/fhir}Reference"/>
         <element name="owner" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <element name="parent" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <element name="input" type="{http://hl7.org/fhir}Task.Input" maxOccurs="unbounded" minOccurs="0"/>
         <element name="output" type="{http://hl7.org/fhir}Task.Output" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Task

      public Task()
  • Method Details

    • getIdentifier

      public Identifier getIdentifier()
      Gets the value of the identifier property.
      Returns:
      possible object is Identifier
    • setIdentifier

      public void setIdentifier(Identifier value)
      Sets the value of the identifier property.
      Parameters:
      value - allowed object is Identifier
    • getType

      public CodeableConcept getType()
      Gets the value of the type property.
      Returns:
      possible object is CodeableConcept
    • setType

      public void setType(CodeableConcept value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is 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
    • getPerformerType

      public List<Coding> getPerformerType()
      Gets the value of the performerType 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 performerType property.

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

          getPerformerType().add(newItem);
       

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

    • getPriority

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

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

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

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

      public CodeableConcept getFailureReason()
      Gets the value of the failureReason property.
      Returns:
      possible object is CodeableConcept
    • setFailureReason

      public void setFailureReason(CodeableConcept value)
      Sets the value of the failureReason property.
      Parameters:
      value - allowed object is CodeableConcept
    • 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
    • getFor

      public Reference getFor()
      Gets the value of the for property.
      Returns:
      possible object is Reference
    • setFor

      public void setFor(Reference value)
      Sets the value of the for property.
      Parameters:
      value - allowed object is Reference
    • getDefinition

      public Uri getDefinition()
      Gets the value of the definition property.
      Returns:
      possible object is Uri
    • setDefinition

      public void setDefinition(Uri value)
      Sets the value of the definition property.
      Parameters:
      value - allowed object is Uri
    • getCreated

      public DateTime getCreated()
      Gets the value of the created property.
      Returns:
      possible object is DateTime
    • setCreated

      public void setCreated(DateTime value)
      Sets the value of the created property.
      Parameters:
      value - allowed object is DateTime
    • getLastModified

      public DateTime getLastModified()
      Gets the value of the lastModified property.
      Returns:
      possible object is DateTime
    • setLastModified

      public void setLastModified(DateTime value)
      Sets the value of the lastModified property.
      Parameters:
      value - allowed object is DateTime
    • getCreator

      public Reference getCreator()
      Gets the value of the creator property.
      Returns:
      possible object is Reference
    • setCreator

      public void setCreator(Reference value)
      Sets the value of the creator property.
      Parameters:
      value - allowed object is Reference
    • getOwner

      public Reference getOwner()
      Gets the value of the owner property.
      Returns:
      possible object is Reference
    • setOwner

      public void setOwner(Reference value)
      Sets the value of the owner property.
      Parameters:
      value - allowed object is Reference
    • getParent

      public Reference getParent()
      Gets the value of the parent property.
      Returns:
      possible object is Reference
    • setParent

      public void setParent(Reference value)
      Sets the value of the parent property.
      Parameters:
      value - allowed object is Reference
    • getInput

      public List<TaskInput> getInput()
      Gets the value of the input 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 input property.

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

          getInput().add(newItem);
       

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

    • getOutput

      public List<TaskOutput> getOutput()
      Gets the value of the output 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 output property.

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

          getOutput().add(newItem);
       

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

    • withIdentifier

      public Task withIdentifier(Identifier value)
    • withType

      public Task withType(CodeableConcept value)
    • withDescription

      public Task withDescription(String value)
    • withPerformerType

      public Task withPerformerType(Coding... values)
    • withPerformerType

      public Task withPerformerType(Collection<Coding> values)
    • withPriority

      public Task withPriority(TaskPriority value)
    • withStatus

      public Task withStatus(TaskStatus value)
    • withFailureReason

      public Task withFailureReason(CodeableConcept value)
    • withSubject

      public Task withSubject(Reference value)
    • withFor

      public Task withFor(Reference value)
    • withDefinition

      public Task withDefinition(Uri value)
    • withCreated

      public Task withCreated(DateTime value)
    • withLastModified

      public Task withLastModified(DateTime value)
    • withCreator

      public Task withCreator(Reference value)
    • withOwner

      public Task withOwner(Reference value)
    • withParent

      public Task withParent(Reference value)
    • withInput

      public Task withInput(TaskInput... values)
    • withInput

      public Task withInput(Collection<TaskInput> values)
    • withOutput

      public Task withOutput(TaskOutput... values)
    • withOutput

      public Task withOutput(Collection<TaskOutput> values)
    • withText

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

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

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

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

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

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

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

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

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

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

      public Task 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
    • setPerformerType

      public void setPerformerType(List<Coding> value)
    • setInput

      public void setInput(List<TaskInput> value)
    • setOutput

      public void setOutput(List<TaskOutput> value)