You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For determining which rows are ICU/ED/etc., the best way is to do the following:
Load the FEMR database of patients via: femr_db = femr.datasets.PatientDatabase("../EHRSHOT_ASSETS/femr/extract")
Retrieve a specific patient via: patient = femr_db[patient_id]
Retrieve all the ICU events for this patient via: femr.get_icu_events(patient, ontology) to get the list of ICU events for a specific patient
Loop through every event for this patient (i.e. for event in femr_db[patient_id].events). Every event that falls within the (start, end) of an ICU event can be considered to have occurred within an ICU event.
TODO -- confirm this works
The text was updated successfully, but these errors were encountered:
For determining which rows are ICU/ED/etc., the best way is to do the following:
femr_db = femr.datasets.PatientDatabase("../EHRSHOT_ASSETS/femr/extract")
patient = femr_db[patient_id]
femr.get_icu_events(patient, ontology)
to get the list of ICU events for a specific patientfor event in femr_db[patient_id].events
). Every event that falls within the (start, end) of an ICU event can be considered to have occurred within an ICU event.TODO -- confirm this works
The text was updated successfully, but these errors were encountered: