Skip to content

Commit

Permalink
Add troubleshooting snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
sharon2719 committed Nov 21, 2024
1 parent cb8f61c commit e3507e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion efsity/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repositories {

group = "org.smartregister"

version = "2.3.10-SNAPSHOT"
version = "2.3.11-SNAPSHOT"

description = "fhircore-tooling (efsity)"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +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));

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));


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

0 comments on commit e3507e3

Please sign in to comment.