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-4357: Add Allergy Recording to Patient Visit Scenario #54

Merged
merged 8 commits into from
Jan 22, 2025
Merged
Prev Previous commit
Next Next commit
O3-4357:fix some tab spacing issue
  • Loading branch information
Bawanthathilan committed Jan 21, 2025
commit 3149a6cd6128beae8ddb21a4e815066e6d73c470
Original file line number Diff line number Diff line change
@@ -154,9 +154,9 @@ public HttpRequestActionBuilder getDrugOrders(String patientUuid) {
"&careSetting=" + CARE_SETTING_UUID +
"&status=any&orderType=" + DRUG_ORDER +
"&v=" + customRepresentation);
}
}

public HttpRequestActionBuilder GetAllergies(String patientUuid) {
public HttpRequestActionBuilder getAllergies(String patientUuid) {
return http("Get Allergies of Patient")
.get("/openmrs/ws/fhir2/R4/AllergyIntolerance?patient=" + patientUuid + "&_summary=data");
}
@@ -193,7 +193,7 @@ public HttpRequestActionBuilder saveAllergy(String patientUuid) {
payload.put("reactions", reactions);

try{
return http("Save an Allergies")
return http("Save an Allergy")
.post("/openmrs/ws/rest/v1/patient/"+ patientUuid +"/allergy")
.body(StringBody(new ObjectMapper().writeValueAsString(payload)));
}catch (JsonProcessingException e) {
Original file line number Diff line number Diff line change
@@ -98,7 +98,7 @@ public ChainBuilder openLabResultsTab(String patientUuid) {
}

public ChainBuilder openAllergiesTab(String patientUuid) {
return exec(httpService.GetAllergies(patientUuid));
return exec(httpService.getAllergies(patientUuid));
}

public ChainBuilder OpenAllergiesForm(){