Skip to content

Commit

Permalink
Implement debug suffix config loader (#1271)
Browse files Browse the repository at this point in the history
* Refactor AppSettingActivity.kt

* Add debug mode parser

* Load local Composition and Binary configs

* Refactor AppSettingActivity

* Rename method to hasDebugSuffix

* Use only a single FHIR parser

* Move Quest configs to Assets

* Move G6PD configs to Assets

* Use .first() to get appId

* Move ANC configs to Assets

* Move eCBIS configs to Assets

* Delete unused configs

* Move COVAX configs to Assets

* Move JNJ configs to Assets

* Fix bugs

* spotlessApply

* Update CHANGELOG.md

* Move sample configs to Assets

* Rename sample configs

* Update sample default theme

* Fix bug

* Add test

* Fix engine failing test

* Fix Quest failing test

* Remove unnecessary comments

* spotlessApply

* Fix Quest failing test
  • Loading branch information
FikriMilano authored May 17, 2022
1 parent 8ac11e7 commit 67e2f0f
Show file tree
Hide file tree
Showing 73 changed files with 465 additions and 308 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Engine | Implement language switcher on profile page
- Engine | Add tasking abstraction
- Engine | Performance improvement when openning questionnaires and saving QRs
- Engine | Add debug mode to optionally load local config

### Fixed
- ANC | Resolved a bug on measure reporting : App crash when All patient selected
Expand Down
92 changes: 0 additions & 92 deletions android/anc/src/test/resources/configs/ecbis/config_sync.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"appId": "default",
"classification": "application",
"theme": "DefaultAppTheme",
"languages": [
"en",
"sw"
],
"applicationName": "Sample App",
"appLogoIconResourceFile": "ic_launcher",
"count": "100"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"resourceType": "Composition",
"id": "71728",
"status": "final",
"date": "2022-02-08",
"type": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "1156600005",
"display": "Device setting parameter"
}
]
},
"identifier": {
"use": "official",
"value": "default"
},
"title": "Device configurations",
"confidentiality": "L",
"section": [
{
"title": "App configuration",
"mode": "working",
"focus": {
"reference": "Binary/62938",
"identifier": { "value": "application" }
}
},
{
"title": "Login configuration",
"mode": "working",
"focus": {
"reference": "Binary/62940",
"identifier": { "value": "login" }
}
},
{
"title": "Patient Register configuration",
"mode": "working",
"focus": {
"reference": "Binary/62952",
"identifier": { "value": "patient_register" }
}
},
{
"title": "Patient Task Register View configuration",
"mode": "working",
"focus": {
"reference": "Binary/87021",
"identifier": { "value": "patient_task_register" }
}
},
{
"title": "Pin View configuration",
"mode": "working",
"focus": {
"reference": "Binary/63003",
"identifier": { "value": "pin" }
}
},
{
"title": "Patient Details View configuration",
"mode": "working",
"focus": {
"reference": "Binary/63011",
"identifier": { "value": "patient_details_view" }
}
},
{
"title": "Result Details Navigation configuration",
"mode": "working",
"focus": {
"reference": "Binary/63007",
"identifier": { "value": "result_details_navigation" }
}
},
{
"title": "Sync configuration",
"mode": "working",
"focus": {
"reference": "Binary/56181",
"identifier": { "value": "sync" }
}
}
]
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"appId": "appId",
"appId": "default",
"classification": "login",
"applicationName": "Sample App",
"applicationVersion": "0.0.1",
"darkMode": false,
"showLogo": false
"showLogo": false,
"enablePin": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"appId": "default",
"classification": "patient_details_view",
"contentTitle": "Responses",
"dynamicRows": [],
"questionnaireFilter": {
"key": "context",
"code": "000002",
"system": "http://fhir.ona.io"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"appId": "default",
"classification": "patient_register",
"appTitle": "Clients",
"filterText": "Show overdue",
"searchBarHint": "Search for ID or client name",
"newClientButtonText": "Register new client",
"newClientButtonStyle": "rounded_corner",
"showSearchBar": true,
"showFilter": false,
"showScanQRCode": false,
"showNewClientButton": true,
"showSideMenu": false,
"showBottomMenu": true,
"registrationForm": "3435",
"primaryFilter": {
"key": "_tag",
"system": "http://fhir.ona.io",
"code": "000003"
},
"bottomNavigationOptions": [
{
"id": "menu_item_clients",
"title": "Clients",
"icon" : "ic_users",
"action": {
"type": "switch_fragment",
"tag": "PatientRegisterFragment",
"isRegisterFragment": true,
"isFilterVisible": false,
"toolbarTitle": null
}
},
{
"id": "menu_item_tasks",
"title": "Tasks",
"icon" : "ic_tasks",
"action": {
"type": "switch_fragment",
"tag": "PatientTaskFragment",
"isRegisterFragment": false,
"isFilterVisible": false,
"toolbarTitle": "Tasks"
}
},
{
"id": "menu_item_settings",
"title": "Settings",
"icon" : "ic_settings",
"action": {
"type": "switch_fragment",
"tag": "UserProfileFragment",
"isRegisterFragment": false,
"isFilterVisible": false,
"toolbarTitle": "Settings"
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"appId": "default",
"classification": "patient_task_register",
"showHeader": false,
"showFooter": false,
"useLabel": false
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"appId": "appId",
"appId": "default",
"classification": "pin",
"applicationName": "Sample App",
"appLogoIconResourceFile": "ic_launcher",
"enablePin": true,
"showLogo": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"appId": "deafult",
"classification": "result_details_navigation",
"navigationOptions": [
{
"id": "open_questionnaire",
"title": "Questionnaire",
"icon": "",
"action": {
"type": "questionnaire",
"form": "",
"readOnly": true
}
}
]
}
Loading

0 comments on commit 67e2f0f

Please sign in to comment.