Class Condition

java.lang.Object
ca.uhn.fhir.model.api.BaseElement
ca.uhn.fhir.model.dstu2.resource.BaseResource
ca.uhn.fhir.model.dstu2.resource.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:
  • Field Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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_ENCOUNTER

      public static final String SP_ENCOUNTER
      Search parameter constant for encounter

      Description:
      Type: reference
      Path: Condition.encounter

      See Also:
    • ENCOUNTER

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

      Description:
      Type: reference
      Path: Condition.encounter

    • SP_ASSERTER

      public static final String SP_ASSERTER
      Search parameter constant for asserter

      Description:
      Type: reference
      Path: Condition.asserter

      See Also:
    • 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:
    • 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_EVIDENCE

      public static final String SP_EVIDENCE
      Search parameter constant for evidence

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

      See Also:
    • 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

    • SP_BODY_SITE

      public static final String SP_BODY_SITE
      Search parameter constant for body-site

      Description:
      Type: token
      Path: Condition.bodySite

      See Also:
    • 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

    • SP_STAGE

      public static final String SP_STAGE
      Search parameter constant for stage

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

      See Also:
    • 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

    • SP_PATIENT

      public static final String SP_PATIENT
      Search parameter constant for patient

      Description:
      Type: reference
      Path: Condition.patient

      See Also:
    • 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".
  • Constructor Details

  • Method Details

    • 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

      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

      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

      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

      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

      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

      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

    • setPatient

      Sets the value(s) for patient ()

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

    • 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

    • setEncounter

      Sets the value(s) for encounter ()

      Definition: Encounter during which the condition was first asserted

    • 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

    • setAsserter

      Sets the value(s) for asserter ()

      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

      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

    • setDateRecordedWithDayPrecision

      Sets the value 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

      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.

    • getCategory

      Gets the value(s) for category (). creating it if it does not exist. Will not return null.

      Definition: A category assigned to the condition.

    • setCategory

      Sets the value(s) for category ()

      Definition: A category assigned to the condition.

    • setCategory

      Sets the value(s) for category ()

      Definition: A category assigned to the condition.

    • getClinicalStatusElement

      public ca.uhn.fhir.model.primitive.BoundCodeDt<ConditionClinicalStatusCodesEnum> getClinicalStatusElement()
      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

      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.

    • setClinicalStatus

      public Condition setClinicalStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<ConditionClinicalStatusCodesEnum> theValue)
      Sets the value(s) for clinicalStatus ()

      Definition: The clinical status of the condition.

    • setClinicalStatus

      Sets the value(s) for clinicalStatus ()

      Definition: The clinical status of the condition.

    • getVerificationStatusElement

      public ca.uhn.fhir.model.primitive.BoundCodeDt<ConditionVerificationStatusEnum> getVerificationStatusElement()
      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

      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.

    • setVerificationStatus

      public Condition setVerificationStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<ConditionVerificationStatusEnum> theValue)
      Sets the value(s) for verificationStatus ()

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

    • setVerificationStatus

      Sets the value(s) for verificationStatus ()

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

    • 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

      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

      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

      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

      Sets the value(s) for evidence ()

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

    • 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

      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

      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

      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

    • setBodySite

      Sets the value(s) for bodySite ()

      Definition: The anatomical location where this condition manifests itself

    • addBodySite

      Adds and returns a new value for bodySite ()

      Definition: The anatomical location where this condition manifests itself

    • addBodySite

      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

      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

      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