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 AppointmentsController#create method #98251

Open
loripusey opened this issue Dec 3, 2024 · 3 comments
Open

Update AppointmentsController#create method #98251

loripusey opened this issue Dec 3, 2024 · 3 comments
Assignees
Labels

Comments

@loripusey
Copy link
Contributor

loripusey commented Dec 3, 2024

Update the AppointmentsController#create method to create the appointment in EPS. It uses the #submit_appointment method in EPS::AppointmentService. needs the appointment_id from the draft appointment call (which should already have been called in prior steps), and other parameters (network_id, provider, slot, referral etc).

AC:

  • add a new route (if we decide to create a new method)
  • add/update #create method
  • add request specs, and VCR cassettes as needed

TBD: should we update the existing #create method, or create a new route and method for EPS specific 'create appointment' functionality.

@loripusey
Copy link
Contributor Author

@lee-delarm6 @kanchanasuriya @randomsync this ticket needs AC

@lee-delarm6
Copy link
Contributor

Appointment controller method to create draft appointment using:

/care-navigation/v1/appointments (EPS, check Swagger https://wellhive.github.io/api-docs/#/Appointment/Appointment%23create)

Which passes through to EPS service layer:

def create_draft_appointment(referral_id:)

@randomsync
Copy link
Member

@loripusey added AC

@lee-delarm6 I believe this one is for final appointment submission. I'm working on draft functionality as part of #98249

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

4 participants