Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update status of appointment #12

Closed
kchapple opened this issue Aug 17, 2016 · 1 comment
Closed

Update status of appointment #12

kchapple opened this issue Aug 17, 2016 · 1 comment
Labels
Milestone

Comments

@kchapple
Copy link
Collaborator

No description provided.

@kchapple kchapple added this to the Sprint 1 milestone Aug 17, 2016
@kchapple kchapple added the Story label Aug 17, 2016
kchapple added a commit that referenced this issue Aug 23, 2016
Patients By Appointment, Slots and Update Appointment [#11] [#3] [#12]
@kchapple
Copy link
Collaborator Author

@tmccormi @Leo24 for Appointment status, can you return and update status through list_options table? We have a new requirement for a new mapping. So when you get an appointment status through FHIR, look at the status, compare with list_options table mapping column, and then store the appropriate option_id in the libreehr_calendar table. Conversely, when you send appointment data out through FHIR API, can you look at appointment status (which will be a symbol like @ or ~) look up appointment in list_options table, and return the value from the mapping column instead of option_id column?

To get appointment status SQL to provide to FHIR:
SELECT mapping FROM list_options WHERE list_id = 'apptstat' AND option_id ='@';
// Then return the mapping instead of the value stored in LibreEHR appointment table

To set appointment status SQL to receive from FHIR:
SELECT option_id FROM list_options WHERE list_id = 'apptstat' AND mapping ='available';
// Then set the option_id instead of the mapping inside LibreEHR appointment table

@kchapple kchapple closed this as completed Oct 6, 2016
kchapple added a commit that referenced this issue Jan 5, 2017
Patients By Appointment, Slots and Update Appointment [#11] [#3] [#12]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant