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

Upstream merge and ec_client migrations #951

Open
wants to merge 385 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
385 commits
Select commit Hold shift + click to select a range
6ef1354
Merge remote-tracking branch 'origin/fix-issue-687' into optibp/merge…
hamza-vd Nov 12, 2021
89b6ffa
Merge branch 'general-app-updates' into optibp/merge-gen-app-updates
hamza-vd Nov 18, 2021
0b509af
Merge branch 'merge/general-app-updates' into optibp/merge-gen-app-up…
hamza-vd Nov 18, 2021
235c139
Fix OptiBP App version
hamza-vd Nov 18, 2021
0980911
Merge branch 'merge/general-app-updates' into optibp/merge-gen-app-up…
hamza-vd Nov 18, 2021
1094aa5
Merge branch 'merge/general-app-updates' into optibp/merge-gen-app-up…
hamza-vd Nov 22, 2021
0198444
Solved missing Task List
SebaMutuku Dec 9, 2021
1e14227
Merge branch 'merge/general-app-updates' into optibp/merge-gen-app-up…
junaidwarsivd Dec 14, 2021
8012a79
Merge branch 'merge/general-app-updates' into optibp/merge-gen-app-up…
junaidwarsivd Dec 22, 2021
9b84d36
version updated for the debug release
junaidwarsivd Dec 23, 2021
d8cd7a4
update the optibp widget on remeasurement prompt
junaidwarsivd Jan 7, 2022
aad9204
Rules Engine Factory performance improvement
SebaMutuku Jan 12, 2022
6e1307e
Merge remote-tracking branch 'origin/optibp/merge-gen-app-updates' in…
SebaMutuku Jan 12, 2022
d94cf65
OPtiBP Delayed reponse on test page
SebaMutuku Jan 13, 2022
617b75e
upgraded native form library to 2.1.15
junaidwarsivd Jan 14, 2022
58676cb
Merge remote-tracking branch 'origin/optibp/merge-gen-app-updates' in…
junaidwarsivd Jan 14, 2022
477acef
unique source id updated to 1
junaidwarsivd Jan 18, 2022
f448e4a
Read data
SebaMutuku Jan 19, 2022
eea063b
Get text from JSON Object in Previous contact repository
SebaMutuku Jan 20, 2022
d6f519c
Fragment refactoring
SebaMutuku Jan 24, 2022
c9c68f7
Profile Fragment Amendment
SebaMutuku Jan 24, 2022
a2883da
JSON Form Utils radio buttons amendment
SebaMutuku Jan 24, 2022
51c4506
JSON Forms refactoring
SebaMutuku Jan 25, 2022
502b337
Added ultra sound test translation
SebaMutuku Jan 26, 2022
9e39752
QA Release
SebaMutuku Jan 27, 2022
49cc892
Merge branch 'translations/general-app-updates' into optibp/transaltions
SebaMutuku Feb 3, 2022
15ae2c1
CheckBox get previous values -1
SebaMutuku Feb 8, 2022
86c54bb
Mobile Number
SebaMutuku Feb 10, 2022
cf85906
Final commit of translated Checkboxes
SebaMutuku Feb 11, 2022
71f8a7d
QA release
SebaMutuku Feb 14, 2022
09df3ca
value ,text for Tests
SebaMutuku Feb 14, 2022
9534e50
Attention Flags allergies
SebaMutuku Feb 16, 2022
7b9bc10
Spinners
SebaMutuku Feb 18, 2022
b1c9ac4
Merge pull request #787 from opensrp/MobileNumberLimit
SebaMutuku Feb 18, 2022
4be367f
Merge branch 'merge/general-app-updates' into optibp/merge-gen-app-up…
junaidwarsivd Feb 18, 2022
7287fec
Maincontact refactoring
SebaMutuku Feb 21, 2022
2d7e9e0
Refactoring Key Value converter
SebaMutuku Feb 21, 2022
2edc3fa
Generate Translation value refactoring
SebaMutuku Feb 21, 2022
6ca85b9
Addition of JSON Array checker
SebaMutuku Feb 21, 2022
27f87d4
Codacy checks
SebaMutuku Feb 22, 2022
acf6ec8
Process Value ANCFormUtils
SebaMutuku Feb 22, 2022
21a2d2a
NativeForm Lang Utils
SebaMutuku Feb 23, 2022
75780df
CleanValue Read key from json object
SebaMutuku Feb 23, 2022
0a30c28
Reading key and text from JsonFormConstant
SebaMutuku Feb 24, 2022
fe29284
ANC String translations
SebaMutuku Feb 24, 2022
2123c15
version upgrade
junaidwarsivd Feb 25, 2022
0513575
Resource Bundle error
SebaMutuku Feb 25, 2022
5d66c90
Creating a uniform translate function in utils based on object
SebaMutuku Feb 25, 2022
74e9efa
Misisng overview values
SebaMutuku Mar 1, 2022
0a868b9
Pairing session
SebaMutuku Mar 1, 2022
39d71f0
Attention Flag not updating
SebaMutuku Mar 2, 2022
feeac12
Updating Danger signs on form global Vavlues
SebaMutuku Mar 2, 2022
169c7ff
Attention Flags not updating
SebaMutuku Mar 3, 2022
b784640
attention flags updates 1
SebaMutuku Mar 4, 2022
f37da28
Overview data missing
SebaMutuku Mar 8, 2022
ef679d7
data inconsistency issue resolved issue# 729
junaidwarsivd Feb 18, 2022
c571bc8
Null Safety of method returnTranslatedStringJoinedValue
SebaMutuku Mar 9, 2022
0daee72
Merge branch 'optibp/merge-gen-app-updates' into optibp/transaltions
SebaMutuku Mar 10, 2022
cc800ba
Merge branch 'merge/general-app-updates' into optibp/merge-gen-app-up…
junaidwarsivd Mar 14, 2022
2d842b8
Merge branch 'optibp/transaltions' into optibp/merge-gen-app-updates
junaidwarsivd Mar 14, 2022
40603dc
Merge branch 'merge/general-app-updates' into optibp/merge-gen-app-up…
junaidwarsivd Mar 14, 2022
188e24b
Merge branch 'merge/general-app-updates' into optibp/merge-gen-app-up…
junaidwarsivd Mar 15, 2022
4cb3182
Merge remote-tracking branch 'origin/optibp/transaltions' into optibp…
junaidwarsivd Mar 15, 2022
b127e5f
merged translations along with the fixes #776 #791 and # 729
junaidwarsivd Mar 15, 2022
c60b513
Version 15
SebaMutuku Mar 15, 2022
06dbd89
Preview URL update
SebaMutuku Mar 15, 2022
7190e2c
updated client native form
junaidwarsivd Mar 31, 2022
70bb18d
updated the main contact activity for the optibp widget
junaidwarsivd Mar 31, 2022
1214053
Merge branch 'pdf_naming' into optibp/main-gen-app-merge
junaidwarsivd Apr 25, 2022
ea53f67
upgraded version to 16
junaidwarsivd Apr 25, 2022
3357494
Merge pull request #810 from opensrp/optibp/main-gen-app-merge
dubdabasoduba May 20, 2022
bb29050
saving new calibration data
SebaMutuku Jul 25, 2022
8a0834d
previousContactBPValue querying
SebaMutuku Jul 27, 2022
8f21958
QA release
SebaMutuku Aug 7, 2022
b482e05
amending exceptions
SebaMutuku Aug 16, 2022
f4faf71
added fix in issue #883 radio button not working
junaidwarsivd Sep 20, 2022
4d7827a
Merge remote-tracking branch 'origin/master' into issue-fix/883
junaidwarsivd Sep 20, 2022
e813640
Merge branch 'issue-fix/883' into optibp_main
junaidwarsivd Sep 20, 2022
11a1e44
added null check in extractValuefromJsonObject
junaidwarsivd Sep 20, 2022
3cff6f8
Merge branch 'issue-fix/883' into optibp_main
junaidwarsivd Sep 20, 2022
4bf6be7
added native form published version 3.1.0-PREVIEW-SNAPSHOT
junaidwarsivd Sep 22, 2022
6547d04
Merge branch 'issue-fix/883' into optibp_main
junaidwarsivd Sep 22, 2022
f7027ad
ignore annotation removed
junaidwarsivd Sep 22, 2022
e32c336
changed runnable to anonymous class
junaidwarsivd Sep 22, 2022
b3ae32e
Build gradle change
SebaMutuku Sep 23, 2022
29a606d
Codacy
SebaMutuku Sep 23, 2022
91dd624
Merge pull request #893 from opensrp/issue-fix/883-optibp
dubdabasoduba Sep 26, 2022
d4323cc
Merge branch 'optibp_main' into optibp_calibration
SebaMutuku Sep 26, 2022
4cd4571
Merge branch 'android_12_support' into optibp-11-12-android-fix
junaidwarsivd Oct 27, 2022
1dfe951
fixed the failing tests
junaidwarsivd Oct 27, 2022
328dc80
Merge pull request #912 from opensrp/optibp-11-12-android-fix
SebaMutuku Nov 9, 2022
f3bb72a
Remove unused languages
Nov 26, 2022
c1cd863
Restructure & translate strings to Bahasa Indonesia
Nov 26, 2022
3a63d99
Set default language to Bahasa Indonesia
Nov 26, 2022
94886a3
Update app preference to use values in strings.xml
Nov 26, 2022
4473a4b
Merge pull request #1 from ariadng/translations
ariadng Nov 26, 2022
c94bc76
Set opensrp_url to Indonesian development server
ariadng Nov 26, 2022
36b67ee
Merge pull request #2 from ariadng/indonesia_dev
ariadng Nov 26, 2022
a79eb44
Merge pull request #3 from ariadng/translations
ariadng Nov 26, 2022
2e374d3
Change the app name to 'Bunda'
Nov 26, 2022
b360a10
Merge pull request #4 from ariadng/indonesia
ariadng Nov 26, 2022
830ea2f
Add Context param to defaultRegisterConfiguration
Nov 26, 2022
b93d373
Set minimum SDK version to 24
Nov 26, 2022
1412716
Add resConfig parameter
Nov 26, 2022
5af1a83
Add Context param to createSearchString
Nov 26, 2022
379b504
Change "dob" and "mobile_phone_number" strings
Nov 26, 2022
e1687ba
Update "age_text" and "ga_text" strings
Nov 26, 2022
945d2f6
Add "attention_flags_title" string
Nov 26, 2022
903e74d
Remove unsused form translation languages
Nov 26, 2022
c781802
Remove unsused form translation languages
Nov 26, 2022
0adac14
Translate attention flags to Bahasa Indonesia
Nov 26, 2022
9a542f8
Modify attention flags dialog to use strings.xml
Nov 26, 2022
6b64d57
Modify date/time strings in Bahasa Indonesia
Nov 26, 2022
ebb27c5
Change app name to 'Bunda'
Nov 26, 2022
8f8b528
Apply opensrp_url value from local.properties file
Nov 28, 2022
f58b980
Integrate strings.xml from opensrp-client-native-form library
Nov 28, 2022
6142a79
Merge pull request #6 from ariadng/translations
ariadng Nov 28, 2022
bb9f2d3
Upgrade version (patch) to 1.6.16
Nov 28, 2022
a74607b
Customize registration form fields
Nov 29, 2022
732e812
Fix typo in registration relevance rules file
Nov 29, 2022
cb6a178
Add openmrs_entity to uid field and fix RegEx on ssn field
Nov 29, 2022
60716ae
ANC Registration Form translation to Bahasa Indonesia
Nov 29, 2022
874109e
Refactor to suppress IDE's error message
Dec 1, 2022
a568960
Refactor mainColumns() for better readability
Dec 1, 2022
ce7ef44
Add fields for local Client requirements
Dec 1, 2022
04cae6a
Merge pull request #7 from ariadng/form_registration
ariadng Dec 2, 2022
24117dd
Add "dont_bring" option to "uid_unknown_reason" field
Dec 2, 2022
70240d9
Merge pull request #8 from ariadng/form_registration
ariadng Dec 2, 2022
02d6d64
Merge pull request #9 from ariadng/indonesia_dev
ariadng Dec 2, 2022
add51dd
Refactored Quick Check form & properties files for better readability
Dec 2, 2022
787ce6b
Complete relevance rules for Quick Check form
Dec 2, 2022
caf4095
Translated Quick Check properties to Bahasa Indonesia
Dec 2, 2022
b662441
Merge pull request #10 from ariadng/form_quick_check
ariadng Dec 2, 2022
071e4d5
Merge pull request #11 from ariadng/indonesia_dev
ariadng Dec 2, 2022
6eb956c
Create app configuration file & locale constants
Dec 2, 2022
cd3deb6
Implement more robust locale settings & language switching
Dec 2, 2022
3af8282
Remove unused strings
Dec 2, 2022
e4c68e3
Merge pull request #12 from ariadng/translations
ariadng Dec 2, 2022
9d55435
Merge pull request #13 from ariadng/indonesia_dev
ariadng Dec 2, 2022
8f9cae6
Add "visit_date" field
Dec 3, 2022
64e73a6
Merge pull request #14 from ariadng/form_quick_check
ariadng Dec 6, 2022
5e12789
Merge pull request #15 from ariadng/indonesia_dev
ariadng Dec 6, 2022
8bba2e7
Fix issue #924 caused by memory leak
Dec 8, 2022
d593cb1
Improve algorithm efficiency
Dec 9, 2022
fa0a6da
Change boolean check to use .equals()
Dec 9, 2022
51658ae
Merge pull request #16 from ariadng/issue-924_fix
ariadng Dec 9, 2022
1615462
Merge pull request #17 from ariadng/indonesia_dev
ariadng Dec 9, 2022
8ab200f
Started profile contact form customization
Dec 9, 2022
c6e16eb
Merge pull request #18 from ariadng/form_contact
ariadng Dec 9, 2022
b0e9e12
Bump version to 1.6.17
Dec 9, 2022
76f0b27
Update Site Characteristics form
ariadng Jan 26, 2023
2412dd4
Add setDefaultLocale function
ariadng Jan 26, 2023
17cff74
Changed the app icon to SID logo
ariadng Jan 26, 2023
2ef674a
Login screen redesign
ariadng Jan 26, 2023
c66a6ad
Merge pull request #19 from ariadng/style
ariadng Jan 27, 2023
e1dd359
Add BPJS status field (ssn_status)
ariadng Jan 27, 2023
924943c
Fix contact required fields count bug
ariadng Jan 27, 2023
a606d24
Update client list row design
ariadng Jan 27, 2023
c90ae15
Profile contact form
ariadng Jan 27, 2023
d2078e5
Fix due button click listener
ariadng Jan 27, 2023
6df78cc
Physical Exam contact form
ariadng Jan 27, 2023
00a332e
Fix form error
ariadng Jan 27, 2023
e11c4eb
Symptoms and Follow Up contact form
ariadng Jan 27, 2023
1fc40b5
Counseling & Treatment contact form
ariadng Jan 27, 2023
19e8099
Test contact forms
ariadng Jan 27, 2023
4d64b60
Fix Physical Exam form steps count
ariadng Jan 27, 2023
15accf2
Update build.gradle
ariadng Feb 15, 2023
a038a1d
update minimum visit_date value
ariadng Feb 16, 2023
4603b64
Set due button to use visit_date value
ariadng Feb 16, 2023
443c0b8
Update GA in client list to reflect the visit_date
ariadng Feb 16, 2023
833e643
update client profile header
ariadng Feb 17, 2023
473363f
Merge pull request #21 from ariadng/location_dev
ariadng Feb 17, 2023
6b235d1
USG & SFH calculation to include encounter date
ariadng Feb 27, 2023
2e51460
adjust GA to reflect visit date on contact form
ariadng Mar 2, 2023
7ac290b
visit date up to 480d from today
ariadng Mar 2, 2023
def72fc
change SSN and UID input type to number
ariadng Mar 2, 2023
704de12
adjust furthest date selectors for USG, SFH, and visit date to 14 mon…
ariadng Mar 2, 2023
7d74132
fix error when loading client profile data
ariadng Mar 2, 2023
4b5fdbf
Merge pull request #26 from opensrp/master
ariadng Mar 2, 2023
bfeaa55
change "Bunda" to "BUNDA"
ariadng Mar 4, 2023
bcf02c1
add ºC
ariadng Mar 4, 2023
ebde132
Show SFH input only when not USG and not LMP
ariadng Mar 4, 2023
8bc161c
Fix SFH calculation rule
ariadng Mar 4, 2023
5b0b272
Merge pull request #28 from opensrp/optibp_main
ariadng Mar 5, 2023
6ab5aa1
Merge branch 'optibp_calibration' of https://github.com/opensrp/opens…
ariadng Mar 5, 2023
527bf6a
Merge pull request #30 from ariadng/opensrp-optibp_calibration
ariadng Mar 5, 2023
a2de585
Merge branch 'optibp' into indonesia_dev
ariadng Mar 5, 2023
f67ee74
Merge pull request #31 from ariadng/indonesia_dev
ariadng Mar 5, 2023
e718c54
Update MainContactActivity.java
ariadng Mar 5, 2023
e01938e
Fix danger sign toaster
ariadng Mar 5, 2023
ec90032
Merge pull request #32 from ariadng/optibp
ariadng Mar 5, 2023
0cb3904
Fix GA to reflect last contact (profile page)
ariadng Mar 5, 2023
a48c3b1
Fix GA to reflect last contact (home list page)
ariadng Mar 5, 2023
8d6f265
ANC Close Record translation
ariadng Mar 5, 2023
db14dc9
Visit date validation #1
ariadng Mar 5, 2023
af45545
Use \u2103 temperature unit symbol
ariadng Mar 5, 2023
e36cf41
Update client profile page
ariadng Mar 5, 2023
1fe8ee6
Contact summary strings processing
ariadng Mar 5, 2023
293b3c1
Fix getRequiredCountTotal function that caused contact cannot be fina…
ariadng Mar 5, 2023
d42c748
add last_visit_date to contact detail table
ariadng Mar 5, 2023
fcfb96a
Fix next visit date
ariadng Mar 6, 2023
11164dd
Fix GA calculation on due button processing
ariadng Mar 6, 2023
7bf518b
Contact visit date on Profile popup menu
ariadng Mar 6, 2023
fae828e
Update TFU option logic
ariadng Mar 7, 2023
5c8b30f
Update contact-rules.yml
ariadng Mar 7, 2023
3b5a382
Merge branch 'optibp_main' into optibp_calibration
SebaMutuku Mar 7, 2023
0d5e5e3
Merge pull request #871 from opensrp/optibp_calibration
SebaMutuku Mar 7, 2023
8b14899
Final release 1.6.18
ariadng Mar 7, 2023
99e8b59
Merge remote-tracking branch 'upstream/optibp_main' into ona-fixes-fo…
junaidwarsivd Mar 10, 2023
9613aa2
fixed optibp Calibration
junaidwarsivd Mar 13, 2023
cf3515d
Merge pull request #38 from ariadng/ona-fixes-for-sid
ariadng Mar 14, 2023
3809be7
Clean-up
ariadng Mar 15, 2023
123a24c
add fix for encounter date issues
hilpitome Mar 27, 2023
47c03b1
Merge pull request #41 from ariadng/fix-gestation-age-miscalculation
hilpitome Mar 27, 2023
1803338
Merge pull request #23 from ariadng/indonesia_dev
ariadng Mar 29, 2023
e892409
added fix for encounter date
junaidwarsivd Apr 21, 2023
7b12b0c
updated encounter date
junaidwarsivd Apr 28, 2023
9ab4575
Capitalize metode and fix reversed date
hilpitome May 4, 2023
6d72535
use required pallor value key
hilpitome May 10, 2023
477de21
added fixes related to encounter date
junaidwarsivd May 12, 2023
c6a35ab
translation and date changes
hilpitome May 14, 2023
4b4a285
more translations in contact summary and overview pages
hilpitome May 16, 2023
a8e7234
added fixes for the crash for PDf and search
junaidwarsivd May 19, 2023
f1663e2
correct more templates
hilpitome May 22, 2023
44ee4f6
additional translation and letter case fixes
hilpitome May 25, 2023
3434734
date translations
hilpitome May 29, 2023
72d79e4
translate yes or no in site_xtcs page
hilpitome Jun 2, 2023
8eaec79
fix date issue and p2p crash
hilpitome Jun 7, 2023
2484457
prescribed medications test fix
hilpitome Jun 7, 2023
28594c0
added and finalized fixes for the encounter date
junaidwarsivd Jun 8, 2023
9ceaefa
branch conflict merge
junaidwarsivd Jun 8, 2023
79cbd2a
update the rules for previous dates
junaidwarsivd Jun 8, 2023
a8b1891
version updated
junaidwarsivd Jun 9, 2023
ba80c6a
fixed the bug of contact number not being updated on ContactSummaryFi…
junaidwarsivd Jun 9, 2023
2979da4
updated the offline logging
junaidwarsivd Jun 13, 2023
7fc4b23
add missing translations
hilpitome Jun 14, 2023
e65e4f7
init align mefragment with master
hilpitome Jun 14, 2023
9770ea9
Merge branch 'translation-fix' into contact_number_update
hilpitome Jun 14, 2023
55de395
language switch fix
hilpitome Jun 15, 2023
6cf50f7
fixed crash on contact completion
junaidwarsivd Jun 16, 2023
00236d5
fix hardcoded string and json form texts
hilpitome Jun 21, 2023
21458b1
Merge branch 'contact_number_update' of github.com:sid-indonesia/open…
hilpitome Jun 21, 2023
38554a4
contact summary translation values fix
hilpitome Jun 23, 2023
afcb4f3
added field confirmation feature
junaidwarsivd Jun 26, 2023
c057b5d
Merge branch 'contact_number_update' of https://github.com/sid-indone…
junaidwarsivd Jun 26, 2023
3e56e5d
added fix related to repeating contact number in contact summary
junaidwarsivd Jun 27, 2023
d2539e9
added fix for issue #944 (Re ad English) and #940 (When one clicks on…
junaidwarsivd Jun 27, 2023
fa2bff1
add pop xtics string properties
hilpitome Jun 29, 2023
dcd7630
Merge branch 'contact_number_update' of github.com:sid-indonesia/open…
hilpitome Jun 29, 2023
67830ee
add migrations and disable optibp
hilpitome Jun 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ subprojects {

ext.androidToolsBuildGradle = '30.0.3'
ext.androidBuildToolsVersion = '30.0.3'
ext.androidMinSdkVersion = 21
ext.androidMinSdkVersion = 26
ext.androidCompileSdkVersion = 31
ext.androidTargetSdkVersion = 31
ext.androidAnnotationsVersion = '3.0.1'
Expand Down
10 changes: 6 additions & 4 deletions opensrp-anc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
// classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.android.tools.build:gradle:7.0.4'
classpath 'gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.12.0'
classpath 'com.google.gms:google-services:4.3.14'
}
Expand Down Expand Up @@ -181,7 +182,7 @@ tasks.withType(Test) {

dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation('org.smartregister:opensrp-client-native-form:3.1.1-SNAPSHOT@aar') {
implementation('org.smartregister:opensrp-client-native-form:3.1.3-SNAPSHOT@aar') {
transitive = true
exclude group: 'com.android.support', module: 'recyclerview-v7'
exclude group: 'com.android.support', module: 'appcompat-v7'
Expand All @@ -192,7 +193,7 @@ dependencies {
exclude group: 'org.yaml', module: 'snakeyaml'
exclude group: 'io.ona.rdt-capture', module: 'lib'
}
implementation('org.smartregister:opensrp-client-core:6.0.0-SNAPSHOT@aar') {
implementation('org.smartregister:opensrp-client-core:6.1.2-SNAPSHOT@aar') {
transitive = true
exclude group: 'com.github.bmelnychuk', module: 'atv'
exclude group: 'com.google.guava', module: 'guava'
Expand All @@ -208,7 +209,7 @@ dependencies {
exclude group: 'org.smartregister', module: 'android-p2p-sync'
}

api("org.smartregister:android-p2p-sync:0.4.0-DEV-SNAPSHOT") {
api("org.smartregister:android-p2p-sync:0.4.3-DEV-SNAPSHOT") {
transitive = true
exclude group: 'org.smartregister', module: 'opensrp-client-core'
exclude group: 'com.android.support', module: 'appcompat-v7'
Expand All @@ -229,6 +230,7 @@ dependencies {
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.9'
implementation 'junit:junit:4.12'
implementation 'androidx.test:core:1.4.0'
testImplementation project(path: ':opensrp-anc')
annotationProcessor 'com.jakewharton:butterknife:10.2.3'
implementation 'net.zetetic:android-database-sqlcipher:4.4.0@aar'
implementation 'commons-validator:commons-validator:1.7'
Expand Down
88 changes: 45 additions & 43 deletions opensrp-anc/src/main/assets/config/attention-flags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,34 @@ fields:
relevance: "!prev_preg_comps.isEmpty() && !prev_preg_comps.contains('none') && !prev_preg_comps.contains('dont_know')"

- template: "{{attention_flags.yellow.past_alcohol_substances_used}}: {substances_used_value}"
relevance: "substances_used != null && !substances_used.isEmpty() && (!substances_used.contains('none') && !substances_used.contains('None'))"
relevance: "!substances_used.isEmpty() && !substances_used.contains('none')"

- template: "{{attention_flags.yellow.pre_eclampsia_risk}}"
- template: "{{attention_flags.yellow.pre_eclampsia_risk}}: {{attention_flags.yes}}"
relevance: "preeclampsia_risk == 1"

- template: "{{attention_flags.yellow.diabetes_risk}}"
- template: "{{attention_flags.yellow.diabetes_risk}}: {{attention_flags.yes}}"
relevance: "gdm_risk == 1"

- template: "{{attention_flags.yellow.surgeries}}: {surgeries_value}"
relevance: "!surgeries.isEmpty() && !surgeries.contains('none')"

- template: "{{attention_flags.yellow.chronic_health_conditions}}: {health_conditions_value}"
relevance: "!health_conditions.isEmpty() && !health_conditions.contains('none') && !health_conditions.contains('None') && !health_conditions.contains('dont_know')"
relevance: "!health_conditions.isEmpty() && !health_conditions.contains('none') && !health_conditions.contains('dont_know')"

- template: "{{attention_flags.yellow.high_daily_consumption_of_caffeine}}"
- template: "{{attention_flags.yellow.high_daily_consumption_of_caffeine}}: {{attention_flags.yes}}"
relevance: "!caffeine_intake.isEmpty() && !caffeine_intake.contains('none')"

- template: "{{attention_flags.yellow.second_hand_exposure_to_tobacco_smoke}}"
relevance: "!shs_exposure.isEmpty() && shs_exposure.contains('yes')"
- template: "{{attention_flags.yellow.second_hand_exposure_to_tobacco_smoke}}: {shs_exposure_value}"
relevance: "shs_exposure == 'yes'"

- template: "{{attention_flags.yellow.persistent_physiological_symptoms}}: {phys_symptoms_persist_value}"
relevance: "!phys_symptoms_persist.isEmpty() && !phys_symptoms_persist.contains('none')"

- template: "{{attention_flags.yellow.reduced_or_no_fetal_movement_perceived_by_woman}}"
relevance: "!mat_percept_fetal_move.isEmpty() && mat_percept_fetal_move.contains('normal_fetal_move')"
- template: "{{attention_flags.yellow.reduced_or_no_fetal_movement_perceived_by_woman}}: {mat_percept_fetal_move_value}"
relevance: "mat_percept_fetal_move != '' && mat_percept_fetal_move != 'normal_fetal_move'"

- template: "{{attention_flags.yellow.weight_category}}: {weight_cat_value}"
relevance: "!weight_cat.isEmpty() && (weight_cat.contains('underweight') || weight_cat.contains('Underweight') || weight_cat.contains('overweight') || weight_cat.contains('Overweight') || weight_cat.contains('obese') || weight_cat.contains('Obese'))"
relevance: "weight_cat != '' && (weight_cat == 'underweight' || weight_cat == 'overweight' || weight_cat == 'obese')"

- template: "{{attention_flags.yellow.abnormal_breast_exam}}: {breast_exam_abnormal_value}"
relevance: "!breast_exam_abnormal.contains('none') && !breast_exam_abnormal.isEmpty()"
Expand All @@ -54,20 +54,20 @@ fields:
- template: "{{attention_flags.yellow.abnormal_pelvic_exam}}: {pelvic_exam_abnormal_value}"
relevance: "!pelvic_exam_abnormal.contains('none') && !pelvic_exam_abnormal.isEmpty()"

- template: "{{attention_flags.yellow.oedema_present}}"
relevance: "!oedema.isEmpty() && oedema.contains('yes')"
- template: "{{attention_flags.yellow.oedema_present}}: {oedema_value}"
relevance: "oedema == 'yes'"

- template: "{{attention_flags.yellow.rh_factor_negative}}"
relevance: "!rh_factor.isEmpty() && rh_factor.contains('negative')"
- template: "{{attention_flags.yellow.rh_factor_negative}}: {rh_factor_value}"
relevance: "rh_factor == 'negative'"
---
group: red_attention_flag
fields:

- template: "{{attention_flags.red.danger_sign}}: {danger_signs_value}"
relevance: "!danger_signs.isEmpty() && !danger_signs.contains('none') && !danger_signs.contains('None') && !danger_signs.contains('danger_none')"
relevance: "!danger_signs.isEmpty() && !danger_signs.contains('danger_none')"

- template: "{{attention_flags.red.occupation_informal_employment_sex_worker}}"
relevance: "!occupation.isEmpty() && occupation.contains('informal_employment_sex_worker')"
- template: "{{attention_flags.red.occupation_informal_employment_sex_worker}}: {{attention_flags.yes}}"
relevance: "occupation.contains('informal_employment_sex_worker')"

- template: "{{attention_flags.red.no_of_pregnancies_lost_ended}}: {miscarriages_abortions}"
relevance: "miscarriages_abortions >= 2"
Expand All @@ -79,17 +79,16 @@ fields:
relevance: "{c_sections} >= 1"

- template: "{{attention_flags.red.allergies}}: {allergies_value}"
relevance: "!allergies.isEmpty() && (!allergies.contains('none') || allergies.contains('None'))"
relevance: "!allergies.isEmpty() && !allergies.contains('none')"

- template: "{{attention_flags.red.tobacco_user_or_recently_quit}}"
relevance: "!tobacco_user.isEmpty() &&
(tobacco_user.contains('yes') || tobacco_user.contains('Yes') || tobacco_user.contains('recently_quit'))"
- template: "{{attention_flags.red.tobacco_user_or_recently_quit}}: {{attention_flags.yes}}"
relevance: "tobacco_user == 'yes' || tobacco_user == 'recently_quit'"

- template: "{{attention_flags.red.woman_and_her_partner_do_not_use_condoms}}"
relevance: "!condom_use.isEmpty() && (condom_use.contains('no') || condom_use.contains('No'))"
- template: "{{attention_flags.red.woman_and_her_partner_do_not_use_condoms}}: {{attention_flags.yes}}"
relevance: "condom_use == 'no'"

- template: "{{attention_flags.red.alcohol_substances_currently_using}}: {alcohol_substance_use_value}"
relevance: "!alcohol_substance_use.isEmpty() && (!alcohol_substance_use.contains('none') && !alcohol_substance_use.contains('None'))"
relevance: "!alcohol_substance_use.isEmpty() && !alcohol_substance_use.contains('none')"

- template: "{{attention_flags.red.hypertension_diagnosis}}"
relevance: "hypertension == 1"
Expand All @@ -109,10 +108,10 @@ fields:
- template: "{{attention_flags.red.fever}}: {body_temp_repeat}ºC"
relevance: "body_temp_repeat >= 38"

- template: "{{attention_flags.red.abnormal_pulse_rate}}: {pulse_rate_repeat}bpm"
- template: "{{attention_flags.red.abnormal_pulse_rate}}: {pulse_rate_repeat}kpm"
relevance: "pulse_rate_repeat < 60 || pulse_rate_repeat > 100"

- template: "{{attention_flags.red.anaemia_diagnosis}}"
- template: "{{attention_flags.red.anaemia_diagnosis}} : {{attention_flags.yes}}"
relevance: "anaemic == 1"

- template: "{{attention_flags.red.respiratory_distress}}: {respiratory_exam_abnormal_value}"
Expand All @@ -128,48 +127,51 @@ fields:
relevance: "dilation_cm > 2"

- template: "{{attention_flags.red.no_fetal_heartbeat_observed}}"
relevance: "fetal_heartbeat.contains('no') && gest_age > 20"
relevance: "fetal_heartbeat == 'no' && gest_age >= 16"

- template: "{{attention_flags.red.abnormal_fetal_heart_rate}}: {fetal_heart_rate_repeat}bpm"
- template: "{{attention_flags.red.abnormal_fetal_heart_rate}}: {fetal_heart_rate_repeat}kpm"
relevance: "fetal_heart_rate_repeat < 100 || fetal_heart_rate_repeat > 180"

- template: "{{attention_flags.red.no_of_fetuses}}: {no_of_fetuses}"
relevance: "no_of_fetuses > 1"

- template: "{{attention_flags.red.fetal_presentation}}: {fetal_presentation} "
relevance: "gest_age >= 28 && fetal_presentation.contains('transverse')"
relevance: "gest_age >= 28 && fetal_presentation == 'transverse'"

- template: "{{attention_flags.red.amniotic_fluid}}: {amniotic_fluid}"
relevance: "!amniotic_fluid.isEmpty() && (amniotic_fluid.contains('reduced') || amniotic_fluid.contains('increased'))"
- template: "{{attention_flags.red.amniotic_fluid}}: {{attention_flags.amniotic_fluid.reduced}}"
relevance: "amniotic_fluid == 'reduced'"

- template: "{{attention_flags.red.amniotic_fluid}}: {{attention_flags.amniotic_fluid.increased}}"
relevance: "amniotic_fluid == 'increased'"

- template: "{{attention_flags.red.placenta_location}}: {placenta_location_value}"
relevance: "!placenta_location.isEmpty() && placenta_location.contains('praevia')"
relevance: "placenta_location == 'praevia'"

- template: "{{attention_flags.red.hiv_risk}}"
- template: "{{attention_flags.red.hiv_risk}}: {{attention_flags.yes}}"
relevance: "hiv_risk == 1"

- template: "{{attention_flags.red.hiv_positive}}"
- template: "{{attention_flags.red.hiv_positive}}: {{attention_flags.yes}}"
relevance: "hiv_positive == 1"

- template: "{{attention_flags.red.hepatitis_b_positive}}"
- template: "{{attention_flags.red.hepatitis_b_positive}}: {{attention_flags.yes}}"
relevance: "hepb_positive == 1"

- template: "{{attention_flags.red.hepatitis_c_positive}}"
- template: "{{attention_flags.red.hepatitis_c_positive}}: {{attention_flags.yes}}"
relevance: "hepc_positive == 1"

- template: "{{attention_flags.red.syphilis_positive}}"
- template: "{{attention_flags.red.syphilis_positive}}: {{attention_flags.yes}}"
relevance: "syphilis_positive == 1"

- template: "{{attention_flags.red.asymptomatic_bacteriuria_asb_diagnosis}}"
- template: "{{attention_flags.red.asymptomatic_bacteriuria_asb_diagnosis}}: {{attention_flags.yes}}"
relevance: "asb_positive == 1"

- template: "{{attention_flags.red.group_b_streptococcus_gbs_diagnosis}}"
relevance: "!urine_culture.isEmpty() && (urine_culture.contains('positive - group b streptococcus (gbs)') || urine_culture.contains('positive_gbs'))"
- template: "{{attention_flags.red.group_b_streptococcus_gbs_diagnosis}}: {{attention_flags.yes}}"
relevance: "urine_culture == 'positive - group b streptococcus (gbs)'"

- template: "{{attention_flags.red.gestational_diabetes_mellitus_gdm_diagnosis}}"
- template: "{{attention_flags.red.gestational_diabetes_mellitus_gdm_diagnosis}}: {{attention_flags.yes}}"
relevance: "gdm == 1"

- template: "{{attention_flags.red.diabetes_mellitus_dm_in_pregnancy_diagnosis}}"
- template: "{{attention_flags.red.diabetes_mellitus_dm_in_pregnancy_diagnosis}}: {{attention_flags.yes}}"
relevance: "dm_in_preg == 1"

- template: "{{attention_flags.red.hematocrit_ht}}: {ht}"
Expand All @@ -182,4 +184,4 @@ fields:
relevance: "platelets < 100000"

- template: "{{attention_flags.red.tb_screening_positive}}"
relevance: "!tb_screening_result.isEmpty() && tb_screening_result.contains('positive')"
relevance: "tb_screening_result == 'positive'"
6 changes: 6 additions & 0 deletions opensrp-anc/src/main/assets/config/contact-globals.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
form: anc_quick_check
fields:
- "entity_id"
---
form: anc_counselling_treatment
fields:
- "visit_date"
- "hepc_positive"
- "danger_signs"
- "danger_signs_value"
Expand Down Expand Up @@ -122,6 +127,7 @@ fields:
---
form: anc_profile
fields:
- "visit_date"
- "contact_no"
- "no_of_fetuses"
- "bmi"
Expand Down
Loading