devices
The patient's devices, from FHIR R4 Device resources.
Classes
DevicesReader
class DevicesReader():Reads the patient's devices.
Subclasses
Methods
get_patient_devices
def get_patient_devices(self) ‑> list[Device]:Get device information for this patient.
Fetched unfiltered (no code list to search by): device lists are
small enough per patient to fetch whole and match against a
criteria_tree leaf's own code/system afterwards. type
(Device's own top-level CodeableConcept, 0..1) can itself
carry more than one coding; codings holds every one of them. One
Device is returned per FHIR resource. A type with no coding at
all (or absent entirely) still leaves code_system/code_code/
code_display and codings empty. A device whose status is
entered-in-error is left out.
Returns
A list of Device objects relevant for the patient, sorted by
code for deterministic output (FHIR R4 Device has no field
meaning "when this became relevant to the patient" to sort by).
Raises
FHIRR4GetPatientInfoError: If unable to retrieve patient device information.