Package org.hl7.fhir

Class Condition

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

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

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

 <complexType name="Condition">
   <complexContent>
     <extension base="{http://hl7.org/fhir}DomainResource">
       <sequence>
         <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
         <element name="patient" type="{http://hl7.org/fhir}Reference"/>
         <element name="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <element name="asserter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <element name="dateRecorded" type="{http://hl7.org/fhir}date" minOccurs="0"/>
         <element name="code" type="{http://hl7.org/fhir}CodeableConcept"/>
         <element name="category" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
         <element name="clinicalStatus" type="{http://hl7.org/fhir}code" minOccurs="0"/>
         <element name="verificationStatus" type="{http://hl7.org/fhir}ConditionVerificationStatus"/>
         <element name="severity" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
         <choice minOccurs="0">
           <element name="onsetDateTime" type="{http://hl7.org/fhir}dateTime"/>
           <element name="onsetQuantity" type="{http://hl7.org/fhir}Age"/>
           <element name="onsetPeriod" type="{http://hl7.org/fhir}Period"/>
           <element name="onsetRange" type="{http://hl7.org/fhir}Range"/>
           <element name="onsetString" type="{http://hl7.org/fhir}string"/>
         </choice>
         <choice minOccurs="0">
           <element name="abatementDateTime" type="{http://hl7.org/fhir}dateTime"/>
           <element name="abatementQuantity" type="{http://hl7.org/fhir}Age"/>
           <element name="abatementBoolean" type="{http://hl7.org/fhir}boolean"/>
           <element name="abatementPeriod" type="{http://hl7.org/fhir}Period"/>
           <element name="abatementRange" type="{http://hl7.org/fhir}Range"/>
           <element name="abatementString" type="{http://hl7.org/fhir}string"/>
         </choice>
         <element name="stage" type="{http://hl7.org/fhir}Condition.Stage" minOccurs="0"/>
         <element name="evidence" type="{http://hl7.org/fhir}Condition.Evidence" maxOccurs="unbounded" minOccurs="0"/>
         <element name="bodySite" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
         <element name="notes" type="{http://hl7.org/fhir}string" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Condition

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

    • getPatient

      public Reference getPatient()
      Gets the value of the patient property.
      Returns:
      possible object is Reference
    • setPatient

      public void setPatient(Reference value)
      Sets the value of the patient property.
      Parameters:
      value - allowed object is Reference
    • getEncounter

      public Reference getEncounter()
      Gets the value of the encounter property.
      Returns:
      possible object is Reference
    • setEncounter

      public void setEncounter(Reference value)
      Sets the value of the encounter property.
      Parameters:
      value - allowed object is Reference
    • getAsserter

      public Reference getAsserter()
      Gets the value of the asserter property.
      Returns:
      possible object is Reference
    • setAsserter

      public void setAsserter(Reference value)
      Sets the value of the asserter property.
      Parameters:
      value - allowed object is Reference
    • getDateRecorded

      public Date getDateRecorded()
      Gets the value of the dateRecorded property.
      Returns:
      possible object is Date
    • setDateRecorded

      public void setDateRecorded(Date value)
      Sets the value of the dateRecorded property.
      Parameters:
      value - allowed object is Date
    • getCode

      public CodeableConcept getCode()
      Gets the value of the code property.
      Returns:
      possible object is CodeableConcept
    • setCode

      public void setCode(CodeableConcept value)
      Sets the value of the code property.
      Parameters:
      value - allowed object is CodeableConcept
    • getCategory

      public CodeableConcept getCategory()
      Gets the value of the category property.
      Returns:
      possible object is CodeableConcept
    • setCategory

      public void setCategory(CodeableConcept value)
      Sets the value of the category property.
      Parameters:
      value - allowed object is CodeableConcept
    • getClinicalStatus

      public Code getClinicalStatus()
      Gets the value of the clinicalStatus property.
      Returns:
      possible object is Code
    • setClinicalStatus

      public void setClinicalStatus(Code value)
      Sets the value of the clinicalStatus property.
      Parameters:
      value - allowed object is Code
    • getVerificationStatus

      public ConditionVerificationStatus getVerificationStatus()
      Gets the value of the verificationStatus property.
      Returns:
      possible object is ConditionVerificationStatus
    • setVerificationStatus

      public void setVerificationStatus(ConditionVerificationStatus value)
      Sets the value of the verificationStatus property.
      Parameters:
      value - allowed object is ConditionVerificationStatus
    • getSeverity

      public CodeableConcept getSeverity()
      Gets the value of the severity property.
      Returns:
      possible object is CodeableConcept
    • setSeverity

      public void setSeverity(CodeableConcept value)
      Sets the value of the severity property.
      Parameters:
      value - allowed object is CodeableConcept
    • getOnsetDateTime

      public DateTime getOnsetDateTime()
      Gets the value of the onsetDateTime property.
      Returns:
      possible object is DateTime
    • setOnsetDateTime

      public void setOnsetDateTime(DateTime value)
      Sets the value of the onsetDateTime property.
      Parameters:
      value - allowed object is DateTime
    • getOnsetQuantity

      public Age getOnsetQuantity()
      Gets the value of the onsetQuantity property.
      Returns:
      possible object is Age
    • setOnsetQuantity

      public void setOnsetQuantity(Age value)
      Sets the value of the onsetQuantity property.
      Parameters:
      value - allowed object is Age
    • getOnsetPeriod

      public Period getOnsetPeriod()
      Gets the value of the onsetPeriod property.
      Returns:
      possible object is Period
    • setOnsetPeriod

      public void setOnsetPeriod(Period value)
      Sets the value of the onsetPeriod property.
      Parameters:
      value - allowed object is Period
    • getOnsetRange

      public Range getOnsetRange()
      Gets the value of the onsetRange property.
      Returns:
      possible object is Range
    • setOnsetRange

      public void setOnsetRange(Range value)
      Sets the value of the onsetRange property.
      Parameters:
      value - allowed object is Range
    • getOnsetString

      public String getOnsetString()
      Gets the value of the onsetString property.
      Returns:
      possible object is String
    • setOnsetString

      public void setOnsetString(String value)
      Sets the value of the onsetString property.
      Parameters:
      value - allowed object is String
    • getAbatementDateTime

      public DateTime getAbatementDateTime()
      Gets the value of the abatementDateTime property.
      Returns:
      possible object is DateTime
    • setAbatementDateTime

      public void setAbatementDateTime(DateTime value)
      Sets the value of the abatementDateTime property.
      Parameters:
      value - allowed object is DateTime
    • getAbatementQuantity

      public Age getAbatementQuantity()
      Gets the value of the abatementQuantity property.
      Returns:
      possible object is Age
    • setAbatementQuantity

      public void setAbatementQuantity(Age value)
      Sets the value of the abatementQuantity property.
      Parameters:
      value - allowed object is Age
    • getAbatementBoolean

      public Boolean getAbatementBoolean()
      Gets the value of the abatementBoolean property.
      Returns:
      possible object is Boolean
    • setAbatementBoolean

      public void setAbatementBoolean(Boolean value)
      Sets the value of the abatementBoolean property.
      Parameters:
      value - allowed object is Boolean
    • getAbatementPeriod

      public Period getAbatementPeriod()
      Gets the value of the abatementPeriod property.
      Returns:
      possible object is Period
    • setAbatementPeriod

      public void setAbatementPeriod(Period value)
      Sets the value of the abatementPeriod property.
      Parameters:
      value - allowed object is Period
    • getAbatementRange

      public Range getAbatementRange()
      Gets the value of the abatementRange property.
      Returns:
      possible object is Range
    • setAbatementRange

      public void setAbatementRange(Range value)
      Sets the value of the abatementRange property.
      Parameters:
      value - allowed object is Range
    • getAbatementString

      public String getAbatementString()
      Gets the value of the abatementString property.
      Returns:
      possible object is String
    • setAbatementString

      public void setAbatementString(String value)
      Sets the value of the abatementString property.
      Parameters:
      value - allowed object is String
    • getStage

      public ConditionStage getStage()
      Gets the value of the stage property.
      Returns:
      possible object is ConditionStage
    • setStage

      public void setStage(ConditionStage value)
      Sets the value of the stage property.
      Parameters:
      value - allowed object is ConditionStage
    • getEvidence

      public List<ConditionEvidence> getEvidence()
      Gets the value of the evidence 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 evidence property.

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

          getEvidence().add(newItem);
       

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

    • getBodySite

      public List<CodeableConcept> getBodySite()
      Gets the value of the bodySite 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 bodySite property.

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

          getBodySite().add(newItem);
       

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

    • getNotes

      public String getNotes()
      Gets the value of the notes property.
      Returns:
      possible object is String
    • setNotes

      public void setNotes(String value)
      Sets the value of the notes property.
      Parameters:
      value - allowed object is String
    • withIdentifier

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

      public Condition withIdentifier(Collection<Identifier> values)
    • withPatient

      public Condition withPatient(Reference value)
    • withEncounter

      public Condition withEncounter(Reference value)
    • withAsserter

      public Condition withAsserter(Reference value)
    • withDateRecorded

      public Condition withDateRecorded(Date value)
    • withCode

      public Condition withCode(CodeableConcept value)
    • withCategory

      public Condition withCategory(CodeableConcept value)
    • withClinicalStatus

      public Condition withClinicalStatus(Code value)
    • withVerificationStatus

      public Condition withVerificationStatus(ConditionVerificationStatus value)
    • withSeverity

      public Condition withSeverity(CodeableConcept value)
    • withOnsetDateTime

      public Condition withOnsetDateTime(DateTime value)
    • withOnsetQuantity

      public Condition withOnsetQuantity(Age value)
    • withOnsetPeriod

      public Condition withOnsetPeriod(Period value)
    • withOnsetRange

      public Condition withOnsetRange(Range value)
    • withOnsetString

      public Condition withOnsetString(String value)
    • withAbatementDateTime

      public Condition withAbatementDateTime(DateTime value)
    • withAbatementQuantity

      public Condition withAbatementQuantity(Age value)
    • withAbatementBoolean

      public Condition withAbatementBoolean(Boolean value)
    • withAbatementPeriod

      public Condition withAbatementPeriod(Period value)
    • withAbatementRange

      public Condition withAbatementRange(Range value)
    • withAbatementString

      public Condition withAbatementString(String value)
    • withStage

      public Condition withStage(ConditionStage value)
    • withEvidence

      public Condition withEvidence(ConditionEvidence... values)
    • withEvidence

      public Condition withEvidence(Collection<ConditionEvidence> values)
    • withBodySite

      public Condition withBodySite(CodeableConcept... values)
    • withBodySite

      public Condition withBodySite(Collection<CodeableConcept> values)
    • withNotes

      public Condition withNotes(String value)
    • withText

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

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

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

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

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

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

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

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

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

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

      public Condition 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)
    • setEvidence

      public void setEvidence(List<ConditionEvidence> value)
    • setBodySite

      public void setBodySite(List<CodeableConcept> value)