Skip to content

Commit d324b8b

Browse files
authoredMar 13, 2025
O3-4528: Separate save vitals action (#81)
1 parent ee754bf commit d324b8b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

‎src/test/java/org/openmrs/performance/registries/DoctorRegistry.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,11 @@ public ChainBuilder openVitalsAndBiometricsTab(String patientUuid) {
7373
MID_UPPER_ARM_CIRCUMFERENCE
7474
);
7575
return exec(httpService.getPatientObservations(patientUuid, vitals))
76-
.exec(httpService.getPatientObservations(patientUuid, biometrics))
77-
.exec(httpService.saveVitalsData(patientUuid));
76+
.exec(httpService.getPatientObservations(patientUuid, biometrics));
77+
}
78+
79+
public ChainBuilder recordVitals(String patientUuid){
80+
return exec(httpService.saveVitalsData(patientUuid));
7881
}
7982

8083
public ChainBuilder openMedicationsTab(String patientUuid) {

‎src/test/java/org/openmrs/performance/scenarios/VisitPatientScenario.java

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public ScenarioBuilder getScenarioBuilder() {
3030
.pause(2)
3131
.exec(registry.openVitalsAndBiometricsTab("#{patient_uuid}"))
3232
.pause(5)
33+
.exec(registry.recordVitals("#{patient_uuid}"))
34+
.pause(5)
3335
.exec(registry.openMedicationsTab("#{patient_uuid}"))
3436
.pause(5)
3537
.exec(registry.openOrdersTab("#{patient_uuid}"))

0 commit comments

Comments
 (0)
Failed to load comments.