Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
owais-vd committed Jul 13, 2022
1 parent 26e3ba0 commit 022ef7e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
2 changes: 1 addition & 1 deletion opensrp-chw/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ dependencies {
exclude group: 'com.rengwuxian.materialedittext', module: 'library'
exclude group: 'org.smartregister', module: 'opensrp-client-native-form'
}
implementation('org.smartregister:opensrp-client-native-form:2.1.13-SNAPSHOT@aar') {
implementation('org.smartregister:opensrp-client-native-form:2.1.14-SNAPSHOT@aar') {
transitive = true
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'com.android.support', module: 'cardview-v7'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,13 @@ condition: "true"
actions:
- "calculation = step1_gest_age + ' weeks'"

---
name: step1_edd
description: Edd calculated
priority: 1
condition: "true"
actions:
- "calculation = step1_last_menstrual_period != '' ? helper.addDuration(step1_last_menstrual_period,'280d') : ''"

---
name: step1_gravida
description: gravida calculated
priority: 1
condition: "true"
actions:
- "calculation = step1_no_prev_preg + 1"
---
name: step1_last_menstrual_period
description: last_menstrual_period calculated
priority: 1
condition: "true"
actions:
- "calculation = helper.subtractDuration(step1_edd,'280d')"

---
name: step1_edd_note
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,6 @@ private void initializeLibraries() {
// set up processor
FamilyLibrary.getInstance().setClientProcessorForJava(ChwClientProcessor.getInstance(getApplicationContext()));

// Set display date format for date pickers in native forms
Form form = new Form();
form.setDatePickerDisplayFormat("dd MMM yyyy");

NativeFormLibrary.getInstance().setClientFormDao(CoreLibrary.getInstance().context().getClientFormRepository());
}

Expand Down

0 comments on commit 022ef7e

Please sign in to comment.