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
{{ message }}
This repository was archived by the owner on Jun 26, 2025. It is now read-only.
At present, only Appointment.SeenDate is made available through this function, so we need to add a new argument that allows a user to select the column they wish to query. Precedents:
Several functions, such as patients.address_as_of, accept a returning argument that allows a user to select a column.
patients.with_these_decision_support_values accepts an algorithm argument, which allows the user to select an algorithm (spoiler: only the Electronic Frailty Index is available).
We need to make
Appointment.BookedDateandAppointment.StartDateavailable throughpatients.with_gp_consultationsfor an upcoming study that @LisaHopcroft is coordinating.At present, only
Appointment.SeenDateis made available through this function, so we need to add a new argument that allows a user to select the column they wish to query. Precedents:patients.address_as_of, accept areturningargument that allows a user to select a column.patients.with_these_decision_support_valuesaccepts analgorithmargument, which allows the user to select an algorithm (spoiler: only the Electronic Frailty Index is available).Lisa and I have undertaken some curation work on these columns; a notebook has been released to the
appointments-short-data-reportworkspace. However, I see that we restrict the values in the status column to thesecohort-extractor/cohortextractor/tpp_backend.py
Lines 2105 to 2113 in faca1e5
from these
cohort-extractor/cohortextractor/tpp_backend.py
Lines 3813 to 3828 in faca1e5
in cohort-extractor. Our curation work hasn't explored the status column, so I'd tentatively advocate allowing a user to disable this restriction.