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

O3-4537 : Add Appointments Tab to Visit Patient Scenario #83

Merged
merged 3 commits into from
Mar 15, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update the file
  • Loading branch information
dilankavishka committed Mar 14, 2025
commit 2cb7a749e6c535c83ac975c38718d3bb18a600f3
Original file line number Diff line number Diff line change
@@ -261,11 +261,6 @@ public HttpRequestActionBuilder getImmunizations(String patientUuid) {
.get("/openmrs/ws/fhir2/R4/Immunization?patient=" + patientUuid + "&_summary=data");
}

public HttpRequestActionBuilder getAppointments() {
return http("Get Appointments of Patient")
.post("/openmrs/ws/rest/v1/appointments/search");
}

public HttpRequestActionBuilder searchForDrug(String searchQuery) {
String customRepresentation = """
custom:(uuid,display,name,strength,
Original file line number Diff line number Diff line change
@@ -144,8 +144,8 @@ public ChainBuilder openVisitsTab(String patientUuid) {
return exec(httpService.getVisitsOfPatient(patientUuid));
}

public ChainBuilder openAppointmentsTab() {
return exec(httpService.getAppointments());
public ChainBuilder openAppointmentsTab(String patientUuid) {
return exec(httpService.getAppointments(patientUuid));
}

public ChainBuilder addDrugOrder(String patientUuid, String visitUuid, String currentUserUuid) {
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ public ScenarioBuilder getScenarioBuilder() {
.pause(5)
.exec(registry.addAttachment("#{patient_uuid}"))
.pause(5)
.exec(registry.openAppointmentsTab())
.exec(registry.openAppointmentsTab("#{patient_uuid}"))
.pause(5)
.exec(registry.addDrugOrder("#{patient_uuid}", "#{visitUuid}", "#{currentUserUuid}"))
.pause(5)