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

      • Condition

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

      • 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
      • 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
      • 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
      • setStage

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

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

        public Condition withDateRecorded​(Date value)
      • withClinicalStatus

        public Condition withClinicalStatus​(Code value)
      • withOnsetQuantity

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