lifeomic / phc-sdk-py

The phc-sdk-py is a developer kit for interfacing with the PHC API on Python 3.8 and above.
https://lifeomic.github.io/phc-sdk-py/index.html
MIT License
1 stars 2 forks source link

Count by patient throws error when empty results #163

Open rcdilorenzo opened 2 years ago

rcdilorenzo commented 2 years ago

When using something like the following query where there are no results, the method throws an error since "subject.reference" doesn't exist:

phc.Observation.get_count_by_patient(patient_ids=["unknown-patient-id"])