Hello Epic team,
I’m currently integrating EPIC for my project and have a question regarding the appointment API.
Requirement: Using backend service account for a provider, I want to able to fetch all upcoming patients scheduled for a surgery in a given timeframe, so I can onboard the patients to Stabl platform and guide them for some exercises before the surgery.
Problem: By looking at FHIR/R4/Appointment endpoint, I see that it requires a patient id, which I don’t have at this point.
Is there a way:
- Either I can fetch all patients being treated by a provider?
- Or get all patients scheduled for a surgery by appointment API?
- Maybe another approach to get the required result?
It would be super helpful if someone can guide me with the problem, newbie to the FHIR world - so help would be appreciated.