-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MHV-63085: Added api endpoint for getting a user's treatment faciliti…
…es (#19484) * MHV-63085: Added api endpoint for getting a user's treatment facilities * MHV-63085: Changed the api endpoint to get patient * MHV-63085: Unit test fix --------- Co-authored-by: Matthew Wright <matwright2010@gmail.com>
- Loading branch information
1 parent
da46155
commit 9ff4ff7
Showing
6 changed files
with
194 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
modules/my_health/app/controllers/my_health/v1/medical_records/patient_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
module MyHealth | ||
module V1 | ||
module MedicalRecords | ||
class PatientController < MrController | ||
# Gets a user's treatment facilities | ||
# @return [Array] of treatment facilities and related user info | ||
def index | ||
resource = bb_client.get_patient | ||
render json: resource.to_json | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
129 changes: 50 additions & 79 deletions
129
spec/support/vcr_cassettes/mr_client/bb_internal/get_patient.yml
Large diffs are not rendered by default.
Oops, something went wrong.
81 changes: 81 additions & 0 deletions
81
spec/support/vcr_cassettes/mr_client/bb_internal/session_auth.yml
Large diffs are not rendered by default.
Oops, something went wrong.