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
Prev Previous commit
Next Next commit
O3-4357:fix save allergies endpoint
  • Loading branch information
Bawanthathilan committed Jan 21, 2025
commit 6f986456709030f7f3cdad268d7c2e925f6c3fa8
Original file line number Diff line number Diff line change
@@ -192,10 +192,14 @@ public HttpRequestActionBuilder saveAllergy(String patientUuid) {
payload.put("comment", "test");
payload.put("reactions", reactions);


try{
return http("Save an Allergies")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return http("Save an Allergies")
return http("Save an Allergy")

.post("/openmrs/ws/rest/v1/patient/"+ patientUuid +"/allergy")
.body(StringBody(payload.toString()));
.body(StringBody(new ObjectMapper().writeValueAsString(payload)));
}catch (JsonProcessingException e) {
throw new RuntimeException(e);
}



}
Loading
Oops, something went wrong.