Skip to content

Commit

Permalink
Run spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
sharon2719 committed Nov 21, 2024
1 parent e3507e3 commit 8997f1c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,17 +372,17 @@ static String populateMode(String questionnaireData, String fhir_base_url, Strin
String.join("/", fhir_base_url, resourceType, questionnaire_id, "$populate");
List<String> result = HttpClient.postRequest(params.toString(), populate_endpoint, null);


JSONObject questionnaire_response = new JSONObject(result.get(1));
FctUtils.printInfo("Debug: questionnaire_response before line 379: " + questionnaire_response.toString(2));
FctUtils.printInfo(
"Debug: questionnaire_response before line 379: " + questionnaire_response.toString(2));

if (questionnaire_response.has("contained")) {
questionnaire_response.remove("contained");
}
JSONArray response = (JSONArray) questionnaire_response.get("item");
JSONArray questions = resource.getJSONArray("item");
FctUtils.printInfo("Debug: questionnaire_response before line 379: " + questionnaire_response.toString(2));

FctUtils.printInfo(
"Debug: questionnaire_response before line 379: " + questionnaire_response.toString(2));

JSONArray response_with_answers = getAnswers(questions, response, extras);
questionnaire_response.put("item", response_with_answers);
Expand Down

0 comments on commit 8997f1c

Please sign in to comment.