-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load resources like Questionnaire, StructureMap,PlanDefinition from r…
…esources folder when using appId with `/debug` (#3065) * Update loading on resources locally * Load SMS, PD and Qs locally from configJson * Add resources to DB * Run spotlessApply * Update resources to DB * Fix resource addition to DB * Fix some resources not updated * Add tests for loading local resources * Add docs * Fix spotless errors * Beautify docs * Fix coverage * Test exception --------- Co-authored-by: SebaMutuku <[email protected]> Co-authored-by: Sebastian <[email protected]>
- Loading branch information
1 parent
f64baa8
commit ee6d05e
Showing
12 changed files
with
359 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
87 changes: 87 additions & 0 deletions
87
android/engine/src/test/assets/configs/app/resources/questionnaire/sample_questionnaire.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"resourceType": "Questionnaire", | ||
"id": "3440", | ||
"language": "en", | ||
"name": "G6PD Test Photo Result", | ||
"title": "G6PD Test Photo Result", | ||
"status": "active", | ||
"subjectType": [ | ||
"Patient" | ||
], | ||
"publisher": "ONA-Systems", | ||
"useContext": [ | ||
{ | ||
"code": { | ||
"system": "http://hl7.org/fhir/codesystem-usage-context-type.html", | ||
"code": "focus" | ||
}, | ||
"valueCodeableConcept": { | ||
"coding": [ | ||
{ | ||
"system": "http://fhir.ona.io", | ||
"code": "000002", | ||
"display": "G6PD Test Photo Results" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"extension": [ | ||
{ | ||
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", | ||
"valueCanonical": "https://fhir.labs.smartregister.org/StructureMap/5875" | ||
}, | ||
{ | ||
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library", | ||
"valueCanonical": "Library/46831" | ||
}, | ||
{ | ||
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library", | ||
"valueCanonical": "Library/46823" | ||
} | ||
], | ||
"item": [ | ||
{ | ||
"extension": [ | ||
{ | ||
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-observationExtract", | ||
"valueBoolean": true | ||
} | ||
], | ||
"linkId": "result_type", | ||
"code": [ | ||
{ | ||
"system": "http://fhir.ona.io", | ||
"code": "000001", | ||
"display": "G6PD Result Type" | ||
} | ||
], | ||
"text": "G6PD Result Type", | ||
"type": "choice", | ||
"required": true, | ||
"answerOption": [ | ||
{ | ||
"valueCoding": { | ||
"system": "http://snomed.info/sct", | ||
"code": "410680006", | ||
"display": "Number" | ||
} | ||
}, | ||
{ | ||
"valueCoding": { | ||
"system": "http://snomed.info/sct", | ||
"code": "405358009", | ||
"display": "Error" | ||
} | ||
}, | ||
{ | ||
"valueCoding": { | ||
"system": "http://snomed.info/sct", | ||
"code": "385432009", | ||
"display": "N/A" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.