Class Condition

  • All Implemented Interfaces:
    ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IAnyResource, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions, org.hl7.fhir.instance.model.api.IBaseResource, org.hl7.fhir.instance.model.api.IDomainResource

    public class Condition
    extends DomainResource
    Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a diagnosis during an encounter; populating a problem list or a summary statement, such as a discharge summary.
    See Also:
    Serialized Form
    • Field Detail

      • identifier

        protected List<Identifier> identifier
        This records identifiers associated with this condition that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).
      • patient

        protected Reference patient
        Indicates the patient who the condition record is associated with.
      • patientTarget

        protected Patient patientTarget
        The actual object that is the target of the reference (Indicates the patient who the condition record is associated with.)
      • encounter

        protected Reference encounter
        Encounter during which the condition was first asserted.
      • encounterTarget

        protected Encounter encounterTarget
        The actual object that is the target of the reference (Encounter during which the condition was first asserted.)
      • asserter

        protected Reference asserter
        Individual who is making the condition statement.
      • asserterTarget

        protected Resource asserterTarget
        The actual object that is the target of the reference (Individual who is making the condition statement.)
      • dateRecorded

        protected DateType dateRecorded
        A date, when the Condition statement was documented.
      • severity

        protected CodeableConcept severity
        A subjective assessment of the severity of the condition as evaluated by the clinician.
      • onset

        protected Type onset
        Estimated or actual date or date-time the condition began, in the opinion of the clinician.
      • abatement

        protected Type abatement
        The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.
      • notes

        protected StringType notes
        Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis.
      • SP_DATE_RECORDED

        public static final String SP_DATE_RECORDED
        Search parameter: date-recorded

        Description: A date, when the Condition statement was documented
        Type: date
        Path: Condition.dateRecorded

        See Also:
        Constant Field Values
      • DATE_RECORDED

        public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE_RECORDED
        Fluent Client search parameter constant for date-recorded

        Description: A date, when the Condition statement was documented
        Type: date
        Path: Condition.dateRecorded

      • SP_ASSERTER

        public static final String SP_ASSERTER
        Search parameter: asserter

        Description: Person who asserts this condition
        Type: reference
        Path: Condition.asserter

        See Also:
        Constant Field Values
      • ASSERTER

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ASSERTER
        Fluent Client search parameter constant for asserter

        Description: Person who asserts this condition
        Type: reference
        Path: Condition.asserter

      • INCLUDE_ASSERTER

        public static final ca.uhn.fhir.model.api.Include INCLUDE_ASSERTER
        Constant for fluent queries to be used to add include statements. Specifies the path value of "Condition:asserter".
      • SP_ONSET

        public static final String SP_ONSET
        Search parameter: onset

        Description: Date related onsets (dateTime and Period)
        Type: date
        Path: Condition.onset[x]

        See Also:
        Constant Field Values
      • ONSET

        public static final ca.uhn.fhir.rest.gclient.DateClientParam ONSET
        Fluent Client search parameter constant for onset

        Description: Date related onsets (dateTime and Period)
        Type: date
        Path: Condition.onset[x]

      • EVIDENCE

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam EVIDENCE
        Fluent Client search parameter constant for evidence

        Description: Manifestation/symptom
        Type: token
        Path: Condition.evidence.code

      • SP_BODY_SITE

        public static final String SP_BODY_SITE
        Search parameter: body-site

        Description: Anatomical location, if relevant
        Type: token
        Path: Condition.bodySite

        See Also:
        Constant Field Values
      • BODY_SITE

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam BODY_SITE
        Fluent Client search parameter constant for body-site

        Description: Anatomical location, if relevant
        Type: token
        Path: Condition.bodySite

      • SP_ONSET_INFO

        public static final String SP_ONSET_INFO
        Search parameter: onset-info

        Description: Other onsets (boolean, age, range, string)
        Type: string
        Path: Condition.onset[x]

        See Also:
        Constant Field Values
      • ONSET_INFO

        public static final ca.uhn.fhir.rest.gclient.StringClientParam ONSET_INFO
        Fluent Client search parameter constant for onset-info

        Description: Other onsets (boolean, age, range, string)
        Type: string
        Path: Condition.onset[x]

      • SP_SEVERITY

        public static final String SP_SEVERITY
        Search parameter: severity

        Description: The severity of the condition
        Type: token
        Path: Condition.severity

        See Also:
        Constant Field Values
      • SEVERITY

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam SEVERITY
        Fluent Client search parameter constant for severity

        Description: The severity of the condition
        Type: token
        Path: Condition.severity

      • CODE

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
        Fluent Client search parameter constant for code

        Description: Code for the condition
        Type: token
        Path: Condition.code

      • SP_ENCOUNTER

        public static final String SP_ENCOUNTER
        Search parameter: encounter

        Description: Encounter when condition first asserted
        Type: reference
        Path: Condition.encounter

        See Also:
        Constant Field Values
      • ENCOUNTER

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER
        Fluent Client search parameter constant for encounter

        Description: Encounter when condition first asserted
        Type: reference
        Path: Condition.encounter

      • INCLUDE_ENCOUNTER

        public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER
        Constant for fluent queries to be used to add include statements. Specifies the path value of "Condition:encounter".
      • SP_STAGE

        public static final String SP_STAGE
        Search parameter: stage

        Description: Simple summary (disease specific)
        Type: token
        Path: Condition.stage.summary

        See Also:
        Constant Field Values
      • STAGE

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam STAGE
        Fluent Client search parameter constant for stage

        Description: Simple summary (disease specific)
        Type: token
        Path: Condition.stage.summary

      • SP_CATEGORY

        public static final String SP_CATEGORY
        Search parameter: category

        Description: The category of the condition
        Type: token
        Path: Condition.category

        See Also:
        Constant Field Values
      • CATEGORY

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY
        Fluent Client search parameter constant for category

        Description: The category of the condition
        Type: token
        Path: Condition.category

      • SP_PATIENT

        public static final String SP_PATIENT
        Search parameter: patient

        Description: Who has the condition?
        Type: reference
        Path: Condition.patient

        See Also:
        Constant Field Values
      • PATIENT

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
        Fluent Client search parameter constant for patient

        Description: Who has the condition?
        Type: reference
        Path: Condition.patient

      • INCLUDE_PATIENT

        public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
        Constant for fluent queries to be used to add include statements. Specifies the path value of "Condition:patient".
      • SP_CLINICALSTATUS

        public static final String SP_CLINICALSTATUS
        Search parameter: clinicalstatus

        Description: The clinical status of the condition
        Type: token
        Path: Condition.clinicalStatus

        See Also:
        Constant Field Values
      • CLINICALSTATUS

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam CLINICALSTATUS
        Fluent Client search parameter constant for clinicalstatus

        Description: The clinical status of the condition
        Type: token
        Path: Condition.clinicalStatus

      • SP_IDENTIFIER

        public static final String SP_IDENTIFIER
        Search parameter: identifier

        Description: A unique identifier of the condition record
        Type: token
        Path: Condition.identifier

        See Also:
        Constant Field Values
      • IDENTIFIER

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
        Fluent Client search parameter constant for identifier

        Description: A unique identifier of the condition record
        Type: token
        Path: Condition.identifier

    • Method Detail

      • getIdentifier

        public List<IdentifiergetIdentifier()
        Returns:
        identifier (This records identifiers associated with this condition that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).)
      • addIdentifier

        public Identifier addIdentifier()
        Returns:
        identifier (This records identifiers associated with this condition that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).)
      • getPatient

        public Reference getPatient()
        Returns:
        patient (Indicates the patient who the condition record is associated with.)
      • getPatientTarget

        public Patient getPatientTarget()
        Returns:
        patient The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Indicates the patient who the condition record is associated with.)
      • setPatientTarget

        public Condition setPatientTarget​(Patient value)
        Parameters:
        value - patient The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Indicates the patient who the condition record is associated with.)
      • getEncounterTarget

        public Encounter getEncounterTarget()
        Returns:
        encounter The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Encounter during which the condition was first asserted.)
      • setEncounterTarget

        public Condition setEncounterTarget​(Encounter value)
        Parameters:
        value - encounter The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Encounter during which the condition was first asserted.)
      • getAsserterTarget

        public Resource getAsserterTarget()
        Returns:
        asserter The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Individual who is making the condition statement.)
      • setAsserterTarget

        public Condition setAsserterTarget​(Resource value)
        Parameters:
        value - asserter The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Individual who is making the condition statement.)
      • getDateRecordedElement

        public DateType getDateRecordedElement()
        Returns:
        dateRecorded (A date, when the Condition statement was documented.). This is the underlying object with id, value and extensions. The accessor "getDateRecorded" gives direct access to the value
      • setDateRecordedElement

        public Condition setDateRecordedElement​(DateType value)
        Parameters:
        value - dateRecorded (A date, when the Condition statement was documented.). This is the underlying object with id, value and extensions. The accessor "getDateRecorded" gives direct access to the value
      • getDateRecorded

        public Date getDateRecorded()
        Returns:
        A date, when the Condition statement was documented.
      • setDateRecorded

        public Condition setDateRecorded​(Date value)
        Parameters:
        value - A date, when the Condition statement was documented.
      • hasCode

        public boolean hasCode()
      • getClinicalStatusElement

        public CodeType getClinicalStatusElement()
        Returns:
        clinicalStatus (The clinical status of the condition.). This is the underlying object with id, value and extensions. The accessor "getClinicalStatus" gives direct access to the value
      • setClinicalStatusElement

        public Condition setClinicalStatusElement​(CodeType value)
        Parameters:
        value - clinicalStatus (The clinical status of the condition.). This is the underlying object with id, value and extensions. The accessor "getClinicalStatus" gives direct access to the value
      • getOnset

        public Type getOnset()
        Returns:
        onset (Estimated or actual date or date-time the condition began, in the opinion of the clinician.)
      • getOnsetDateTimeType

        public DateTimeType getOnsetDateTimeType()
                                          throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        onset (Estimated or actual date or date-time the condition began, in the opinion of the clinician.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getOnsetAge

        public Age getOnsetAge()
                        throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        onset (Estimated or actual date or date-time the condition began, in the opinion of the clinician.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getOnsetPeriod

        public Period getOnsetPeriod()
                              throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        onset (Estimated or actual date or date-time the condition began, in the opinion of the clinician.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getOnsetRange

        public Range getOnsetRange()
                            throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        onset (Estimated or actual date or date-time the condition began, in the opinion of the clinician.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getOnsetStringType

        public StringType getOnsetStringType()
                                      throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        onset (Estimated or actual date or date-time the condition began, in the opinion of the clinician.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • setOnset

        public Condition setOnset​(Type value)
        Parameters:
        value - onset (Estimated or actual date or date-time the condition began, in the opinion of the clinician.)
      • getAbatement

        public Type getAbatement()
        Returns:
        abatement (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
      • getAbatementDateTimeType

        public DateTimeType getAbatementDateTimeType()
                                              throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        abatement (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAbatementAge

        public Age getAbatementAge()
                            throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        abatement (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAbatementBooleanType

        public BooleanType getAbatementBooleanType()
                                            throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        abatement (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAbatementPeriod

        public Period getAbatementPeriod()
                                  throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        abatement (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAbatementRange

        public Range getAbatementRange()
                                throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        abatement (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAbatementStringType

        public StringType getAbatementStringType()
                                          throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        abatement (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • setAbatement

        public Condition setAbatement​(Type value)
        Parameters:
        value - abatement (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
      • getNotesElement

        public StringType getNotesElement()
        Returns:
        notes (Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis.). This is the underlying object with id, value and extensions. The accessor "getNotes" gives direct access to the value
      • setNotesElement

        public Condition setNotesElement​(StringType value)
        Parameters:
        value - notes (Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis.). This is the underlying object with id, value and extensions. The accessor "getNotes" gives direct access to the value
      • getNotes

        public String getNotes()
        Returns:
        Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis.
      • setNotes

        public Condition setNotes​(String value)
        Parameters:
        value - Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis.
      • getProperty

        public Base[] getProperty​(int hash,
                                  String name,
                                  boolean checkValid)
                           throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        getProperty in class DomainResource
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • makeProperty

        public Base makeProperty​(int hash,
                                 String name)
                          throws org.hl7.fhir.exceptions.FHIRException
        Description copied from class: Base
        make an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property
        Overrides:
        makeProperty in class DomainResource
        Returns:
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.hl7.fhir.instance.model.api.IBase
        Overrides:
        isEmpty in class DomainResource