Class Condition

  • All Implemented Interfaces:
    ca.uhn.fhir.model.api.ICompositeElement, ca.uhn.fhir.model.api.IElement, ca.uhn.fhir.model.api.IResource, ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseResource

    public class Condition
    extends BaseResource
    implements ca.uhn.fhir.model.api.IResource
    HAPI/FHIR Condition Resource ()

    Definition: 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.

    Requirements:

    Profile Definition: http://hl7.org/fhir/profiles/Condition

    See Also:
    Serialized Form
    • Field Detail

      • SP_CODE

        public static final String SP_CODE
        Search parameter constant for code

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

        See Also:
        Constant Field Values
      • 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_IDENTIFIER

        public static final String SP_IDENTIFIER
        Search parameter constant for 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

      • SP_CLINICALSTATUS

        public static final String SP_CLINICALSTATUS
        Search parameter constant for 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_SEVERITY

        public static final String SP_SEVERITY
        Search parameter constant for 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

      • SP_CATEGORY

        public static final String SP_CATEGORY
        Search parameter constant for 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_ONSET

        public static final String SP_ONSET
        Search parameter constant for 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]

      • SP_ONSET_INFO

        public static final String SP_ONSET_INFO
        Search parameter constant for 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]

      • ENCOUNTER

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

        Description:
        Type: reference
        Path: Condition.encounter

      • ASSERTER

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

        Description:
        Type: reference
        Path: Condition.asserter

      • SP_DATE_RECORDED

        public static final String SP_DATE_RECORDED
        Search parameter constant for 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

      • EVIDENCE

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

        Description:
        Type: token
        Path: Condition.evidence.code

      • BODY_SITE

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

        Description:
        Type: token
        Path: Condition.bodySite

      • STAGE

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

        Description:
        Type: token
        Path: Condition.stage.summary

      • PATIENT

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

        Description:
        Type: reference
        Path: Condition.patient

      • 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".
      • 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".
      • 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".
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      • getAllPopulatedChildElementsOfType

        public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType​(Class<T> theType)
        Specified by:
        getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElement
      • getIdentifier

        public List<IdentifierDtgetIdentifier()
        Gets the value(s) for identifier (). creating it if it does not exist. Will not return null.

        Definition: 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)

      • setIdentifier

        public Condition setIdentifier​(List<IdentifierDt> theValue)
        Sets the value(s) for identifier ()

        Definition: 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 IdentifierDt addIdentifier()
        Adds and returns a new value for identifier ()

        Definition: 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 Condition addIdentifier​(IdentifierDt theValue)
        Adds a given new value for identifier ()

        Definition: 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)

        Parameters:
        theValue - The identifier to add (must not be null)
      • getIdentifierFirstRep

        public IdentifierDt getIdentifierFirstRep()
        Gets the first repetition for identifier (), creating it if it does not already exist.

        Definition: 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 ResourceReferenceDt getPatient()
        Gets the value(s) for patient (). creating it if it does not exist. Will not return null.

        Definition: Indicates the patient who the condition record is associated with

      • getEncounter

        public ResourceReferenceDt getEncounter()
        Gets the value(s) for encounter (). creating it if it does not exist. Will not return null.

        Definition: Encounter during which the condition was first asserted

      • getAsserter

        public ResourceReferenceDt getAsserter()
        Gets the value(s) for asserter (). creating it if it does not exist. Will not return null.

        Definition: Individual who is making the condition statement

      • getDateRecordedElement

        public ca.uhn.fhir.model.primitive.DateDt getDateRecordedElement()
        Gets the value(s) for dateRecorded (). creating it if it does not exist. Will not return null.

        Definition: A date, when the Condition statement was documented

      • getDateRecorded

        public Date getDateRecorded()
        Gets the value(s) for dateRecorded (). creating it if it does not exist. This method may return null.

        Definition: A date, when the Condition statement was documented

      • setDateRecorded

        public Condition setDateRecorded​(ca.uhn.fhir.model.primitive.DateDt theValue)
        Sets the value(s) for dateRecorded ()

        Definition: A date, when the Condition statement was documented

      • setDateRecorded

        public Condition setDateRecorded​(Date theDate,
                                         ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
        Sets the value for dateRecorded ()

        Definition: A date, when the Condition statement was documented

      • getCode

        public CodeableConceptDt getCode()
        Gets the value(s) for code (). creating it if it does not exist. Will not return null.

        Definition: Identification of the condition, problem or diagnosis.

      • setCode

        public Condition setCode​(CodeableConceptDt theValue)
        Sets the value(s) for code ()

        Definition: Identification of the condition, problem or diagnosis.

      • getClinicalStatusElement

        public ca.uhn.fhir.model.primitive.BoundCodeDt<ConditionClinicalStatusCodesEnumgetClinicalStatusElement()
        Gets the value(s) for clinicalStatus (). creating it if it does not exist. Will not return null.

        Definition: The clinical status of the condition.

      • getClinicalStatus

        public String getClinicalStatus()
        Gets the value(s) for clinicalStatus (). creating it if it does not exist. This method may return null.

        Definition: The clinical status of the condition.

      • getVerificationStatusElement

        public ca.uhn.fhir.model.primitive.BoundCodeDt<ConditionVerificationStatusEnumgetVerificationStatusElement()
        Gets the value(s) for verificationStatus (). creating it if it does not exist. Will not return null.

        Definition: The verification status to support the clinical status of the condition.

      • getVerificationStatus

        public String getVerificationStatus()
        Gets the value(s) for verificationStatus (). creating it if it does not exist. This method may return null.

        Definition: The verification status to support the clinical status of the condition.

      • getSeverity

        public CodeableConceptDt getSeverity()
        Gets the value(s) for severity (). creating it if it does not exist. Will not return null.

        Definition: A subjective assessment of the severity of the condition as evaluated by the clinician.

      • setSeverity

        public Condition setSeverity​(CodeableConceptDt theValue)
        Sets the value(s) for severity ()

        Definition: A subjective assessment of the severity of the condition as evaluated by the clinician.

      • getOnset

        public ca.uhn.fhir.model.api.IDatatype getOnset()
        Gets the value(s) for onset[x] (). creating it if it does not exist. Will not return null.

        Definition: Estimated or actual date or date-time the condition began, in the opinion of the clinician

      • setOnset

        public Condition setOnset​(ca.uhn.fhir.model.api.IDatatype theValue)
        Sets the value(s) for onset[x] ()

        Definition: Estimated or actual date or date-time the condition began, in the opinion of the clinician

      • getAbatement

        public ca.uhn.fhir.model.api.IDatatype getAbatement()
        Gets the value(s) for abatement[x] (). creating it if it does not exist. Will not return null.

        Definition: 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.

      • setAbatement

        public Condition setAbatement​(ca.uhn.fhir.model.api.IDatatype theValue)
        Sets the value(s) for abatement[x] ()

        Definition: 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.

      • getStage

        public Condition.Stage getStage()
        Gets the value(s) for stage (). creating it if it does not exist. Will not return null.

        Definition: Clinical stage or grade of a condition. May include formal severity assessments

      • setStage

        public Condition setStage​(Condition.Stage theValue)
        Sets the value(s) for stage ()

        Definition: Clinical stage or grade of a condition. May include formal severity assessments

      • getEvidence

        public List<Condition.EvidencegetEvidence()
        Gets the value(s) for evidence (). creating it if it does not exist. Will not return null.

        Definition: Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed

      • setEvidence

        public Condition setEvidence​(List<Condition.Evidence> theValue)
        Sets the value(s) for evidence ()

        Definition: Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed

      • addEvidence

        public Condition.Evidence addEvidence()
        Adds and returns a new value for evidence ()

        Definition: Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed

      • addEvidence

        public Condition addEvidence​(Condition.Evidence theValue)
        Adds a given new value for evidence ()

        Definition: Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed

        Parameters:
        theValue - The evidence to add (must not be null)
      • getEvidenceFirstRep

        public Condition.Evidence getEvidenceFirstRep()
        Gets the first repetition for evidence (), creating it if it does not already exist.

        Definition: Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed

      • getBodySite

        public List<CodeableConceptDtgetBodySite()
        Gets the value(s) for bodySite (). creating it if it does not exist. Will not return null.

        Definition: The anatomical location where this condition manifests itself

      • addBodySite

        public CodeableConceptDt addBodySite()
        Adds and returns a new value for bodySite ()

        Definition: The anatomical location where this condition manifests itself

      • addBodySite

        public Condition addBodySite​(CodeableConceptDt theValue)
        Adds a given new value for bodySite ()

        Definition: The anatomical location where this condition manifests itself

        Parameters:
        theValue - The bodySite to add (must not be null)
      • getBodySiteFirstRep

        public CodeableConceptDt getBodySiteFirstRep()
        Gets the first repetition for bodySite (), creating it if it does not already exist.

        Definition: The anatomical location where this condition manifests itself

      • getNotesElement

        public ca.uhn.fhir.model.primitive.StringDt getNotesElement()
        Gets the value(s) for notes (). creating it if it does not exist. Will not return null.

        Definition: Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis

      • getNotes

        public String getNotes()
        Gets the value(s) for notes (). creating it if it does not exist. This method may return null.

        Definition: 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​(ca.uhn.fhir.model.primitive.StringDt theValue)
        Sets the value(s) for notes ()

        Definition: 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 theString)
        Sets the value for notes ()

        Definition: Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis

      • getResourceName

        public String getResourceName()
        Specified by:
        getResourceName in interface ca.uhn.fhir.model.api.IResource
      • getStructureFhirVersionEnum

        public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
        Specified by:
        getStructureFhirVersionEnum in interface org.hl7.fhir.instance.model.api.IBaseResource
        Specified by:
        getStructureFhirVersionEnum in interface ca.uhn.fhir.model.api.IResource