conditions
The patient's conditions, from FHIR R4 Condition resources.
Classes
ConditionsReader
class ConditionsReader():Reads the patient's conditions.
Subclasses
Methods
get_patient_conditions
def get_patient_conditions( self, statuses_filter: list[ClinicalStatus] | None = None, code_types_filter: list[CodeSystems] | None = None,) ‑> list[Condition]:Get conditions related to this patient.
A condition whose verificationStatus is entered-in-error is left
out. A condition's onset date is its onsetDateTime, else its
onsetPeriod.start, else its recordedDate.
Arguments
statuses_filter: If provided, returns only conditions of that status e.g. ['active','recurrence']code_types_filter: If provided, returns only conditions with codes of a specific code system (ICD10, Snomed) e.g. ["icd10"]
Returns A list of Condition objects relevant for the patient, detailing its status and dates, sorted by condition onset date.
Raises
FHIRR4GetPatientInfoError: If unable to retrieve patient condition information.