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

Adding the translatable text attribute to several widgets #835

Open
wants to merge 47 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
cd6e988
Attention flags issue #811 done
junaidwarsivd Apr 25, 2022
b5ebc28
Attention flags count corrected
junaidwarsivd May 16, 2022
efd4949
missing keys fix added
junaidwarsivd May 17, 2022
a29c45f
:wrench: Adding the new anc physical exam json
dubdabasoduba May 20, 2022
d7d4db4
Develop Code refactoring 1
SebaMutuku May 23, 2022
9709d83
develop subform issue
SebaMutuku May 24, 2022
1e393f4
Final release of subform issue
SebaMutuku May 25, 2022
e40f185
Native form 2.1.18-PREVIEW-RELEASE
SebaMutuku May 25, 2022
6e7bf9b
Addition of property files
SebaMutuku May 25, 2022
1c229bf
Merge pull request #843 from opensrp/issue-fix-811
SebaMutuku May 26, 2022
108473a
Merge branch 'add_translation_strings' into pdf_naming
junaidwarsivd May 26, 2022
204d436
Merge pull request #844 from opensrp/pdf_naming
junaidwarsivd May 26, 2022
5c40ec3
Merge branch 'develop' into add_translation_strings
dubdabasoduba May 26, 2022
2af2606
Strings addition
SebaMutuku May 26, 2022
f6650ad
Merge pull request #841 from opensrp/develop_subforms_issue
SebaMutuku May 26, 2022
daf90ca
Merge remote-tracking branch 'origin/add_translation_strings' into ad…
SebaMutuku May 26, 2022
608c833
p2p sync android 12
SebaMutuku Jun 7, 2022
fedf715
Resolved missing strings in physical exams
SebaMutuku Jun 10, 2022
f6e9427
physical exam
SebaMutuku Jun 13, 2022
db81dc6
search by mobile number
SebaMutuku Jun 15, 2022
ca2effa
Finalize contact
SebaMutuku Jun 16, 2022
194e76e
Merge pull request #854 from opensrp/search_by_alt_name
SebaMutuku Jun 16, 2022
995fad2
Merge pull request #853 from opensrp/P2P_Sync_Android_12
dubdabasoduba Jun 20, 2022
3db2d3e
lambda expression
SebaMutuku Jun 27, 2022
5e69ac5
Fix Failing Finalize Contact
SebaMutuku Jun 29, 2022
f7857cf
alt _name
SebaMutuku Jun 29, 2022
801d952
addition of phone number to attributes
SebaMutuku Jun 29, 2022
4dc7d03
Merge branch 'add_translation_strings' of https://github.com/opensrp/…
SebaMutuku Jun 30, 2022
b6c592a
Fix develop branch biuld errors
hamza-vd Jul 1, 2022
9c9e5ce
Fix failing tests
hamza-vd Jul 1, 2022
0b4aac1
Fix failing testa 2
hamza-vd Jul 4, 2022
872ce45
Maximum dates for dob and edd
SebaMutuku Jul 4, 2022
0c0f083
adding tests
SebaMutuku Jul 4, 2022
7f7be2e
Add tests
SebaMutuku Jul 4, 2022
f61ecb1
Add tests
SebaMutuku Jul 4, 2022
52715fd
Codacy
SebaMutuku Jul 4, 2022
231e3ec
build issues
SebaMutuku Jul 4, 2022
68aea0f
codacy
SebaMutuku Jul 4, 2022
73993d4
Utils class
SebaMutuku Jul 4, 2022
b0447c3
Register Fragment Model Test
SebaMutuku Jul 4, 2022
cefd902
Register model Tests
SebaMutuku Jul 4, 2022
a4a0a57
Profile activity
SebaMutuku Jul 4, 2022
61977a5
Profile activity
SebaMutuku Jul 4, 2022
8c9d160
codacy -1
SebaMutuku Jul 4, 2022
75c1b3a
resolve buidling errors
SebaMutuku Jul 4, 2022
64a92a9
resolving build errors
SebaMutuku Jul 4, 2022
103299c
Merge pull request #862 from opensrp/search_by_alt_name
SebaMutuku Jul 5, 2022
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
4 changes: 2 additions & 2 deletions opensrp-anc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ tasks.withType(Test) {

dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation('org.smartregister:opensrp-client-native-form:2.1.17-SNAPSHOT@aar') {
implementation('org.smartregister:opensrp-client-native-form:2.1.18-PREVIEW-SNAPSHOT@aar') {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please publish the library from master

transitive = true
exclude group: 'com.android.support', module: 'recyclerview-v7'
exclude group: 'com.android.support', module: 'appcompat-v7'
Expand All @@ -189,7 +189,7 @@ dependencies {
exclude group: 'org.yaml', module: 'snakeyaml'
exclude group: 'io.ona.rdt-capture', module: 'lib'
}
implementation('org.smartregister:opensrp-client-core:4.3.26-SNAPSHOT@aar') {
implementation('org.smartregister:opensrp-client-core:5.0.3-PREVIEW-SNAPSHOT@aar') {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please publish the library from master

transitive = true
exclude group: 'com.github.bmelnychuk', module: 'atv'
exclude group: 'com.google.guava', module: 'guava'
Expand Down
37 changes: 19 additions & 18 deletions opensrp-anc/src/main/assets/config/attention-flags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ 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.isEmpty() && !substances_used.contains('none')"
relevance: "substances_used != null && !substances_used.isEmpty() && (!substances_used.contains('none') && !substances_used.contains('None'))"

- template: "{{attention_flags.yellow.pre_eclampsia_risk}}"
relevance: "preeclampsia_risk == 1"
Expand All @@ -28,22 +28,22 @@ fields:
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('dont_know')"
relevance: "!health_conditions.isEmpty() && !health_conditions.contains('none') && !health_conditions.contains('None') && !health_conditions.contains('dont_know')"

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

- template: "{{attention_flags.yellow.second_hand_exposure_to_tobacco_smoke}}"
relevance: "shs_exposure == 'yes'"
relevance: "!shs_exposure.isEmpty() && shs_exposure.contains('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 != '' && mat_percept_fetal_move != 'normal_fetal_move'"
relevance: "!mat_percept_fetal_move.isEmpty() && mat_percept_fetal_move.contains('normal_fetal_move')"

- template: "{{attention_flags.yellow.weight_category}}: {weight_cat_value}"
relevance: "weight_cat != '' && (weight_cat == 'underweight' || weight_cat == 'overweight' || weight_cat == 'obese')"
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'))"

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

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

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

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

- template: "{{attention_flags.red.occupation_informal_employment_sex_worker}}"
relevance: "!occupation.isEmpty() && occupation.contains('informal_employment_sex_worker')"
Expand All @@ -79,16 +79,17 @@ fields:
relevance: "{c_sections} >= 1"

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

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

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

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

- template: "{{attention_flags.red.hypertension_diagnosis}}"
relevance: "hypertension == 1"
Expand Down Expand Up @@ -127,7 +128,7 @@ fields:
relevance: "dilation_cm > 2"

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

- template: "{{attention_flags.red.abnormal_fetal_heart_rate}}: {fetal_heart_rate_repeat}bpm"
relevance: "fetal_heart_rate_repeat < 100 || fetal_heart_rate_repeat > 180"
Expand All @@ -136,13 +137,13 @@ fields:
relevance: "no_of_fetuses > 1"

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

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

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

- template: "{{attention_flags.red.hiv_risk}}"
relevance: "hiv_risk == 1"
Expand All @@ -163,7 +164,7 @@ fields:
relevance: "asb_positive == 1"

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

- template: "{{attention_flags.red.gestational_diabetes_mellitus_gdm_diagnosis}}"
relevance: "gdm == 1"
Expand All @@ -181,4 +182,4 @@ fields:
relevance: "platelets < 100000"

- template: "{{attention_flags.red.tb_screening_positive}}"
relevance: "tb_screening_result == 'positive'"
relevance: "!tb_screening_result.isEmpty() && tb_screening_result.contains('positive')"
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fields:
- template: "{{profile_contact_test.syphilis_test.syphilis_test_type}}: {syph_test_type}"
relevance: "syph_test_type != ''"

- template: "{{profile_contact_test.syphilis_test.syphilis_test_type}}: {rapid_syphilis_test}"
- template: "{{profile_contact_test.syphilis_test.rapid_syphilis_test}}: {rapid_syphilis_test}"
relevance: "rapid_syphilis_test != ''"

- template: "{{profile_contact_test.syphilis_test.rapid_plasma_reagin_rpr_test_result}}: {rpr_syphilis_test}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fields:
- template: "{{profile_contact_test.syphilis_test.syphilis_test_type}}: {syph_test_type}"
relevance: "syph_test_type != '' && helper.compareDateAgainstContactDate(syphilis_test_date, contact_date)"

- template: "{{profile_contact_test.syphilis_test.syphilis_test_type}}: {rapid_syphilis_test}"
- template: "{{profile_contact_test.syphilis_test.rapid_syphilis_test}}: {rapid_syphilis_test}"
relevance: "rapid_syphilis_test != '' && helper.compareDateAgainstContactDate(syphilis_test_date, contact_date)"

- template: "{{profile_contact_test.syphilis_test.rapid_plasma_reagin_rpr_test_result}}: {rpr_syphilis_test}"
Expand Down
Loading