Skip to content

Commit 1e632fc

Browse files
authored
Merge pull request #312 from OpenSRP/immunization_refactor
Immunization refactor
2 parents c555867 + 3d54245 commit 1e632fc

File tree

54 files changed

+1714
-4956
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1714
-4956
lines changed

opensrp-chw/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ android {
3030
minSdkVersion androidMinSdkVersion
3131
targetSdkVersion androidTargetSdkVersion
3232
versionCode 1
33-
versionName "0.1.3"
33+
versionName "0.1.4"
3434
multiDexEnabled true
3535
buildConfigField "long", "MAX_SERVER_TIME_DIFFERENCE", "1800000l"
3636
buildConfigField "boolean", "TIME_CHECK", "false"
@@ -149,11 +149,13 @@ dependencies {
149149
exclude group: 'com.android.support', module: 'appcompat-v7'
150150
}
151151

152+
/*
152153
implementation('org.smartregister:opensrp-client-reporting:1.0.6-SNAPSHOT@aar') {
153154
transitive = true
154155
exclude group: 'org.smartregister', module: 'opensrp-client-core'
155156
exclude group: 'com.android.support', module: 'appcompat-v7'
156157
}
158+
*/
157159

158160
implementation 'com.android.support:appcompat-v7:28.0.0'
159161
implementation 'com.android.support:support-v4:28.0.0'
29.3 MB
Binary file not shown.

opensrp-chw/release/output.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"0.1.4","enabled":true,"outputFile":"opensrp-chw-release.apk","fullName":"release","baseName":"release"},"path":"opensrp-chw-release.apk","properties":{}}]

opensrp-chw/src/main/assets/ec_client_fields.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
"type": "Event",
364364
"json_mapping": {
365365
"field": "obs.fieldCode",
366-
"formSubmissionField": "birth_cert"
366+
"concept": "165406AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
367367
}
368368
},
369369
{
@@ -387,7 +387,7 @@
387387
"type": "Event",
388388
"json_mapping": {
389389
"field": "obs.fieldCode",
390-
"formSubmissionField": "birth_notification"
390+
"concept": "165405AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
391391
}
392392
},
393393
{

opensrp-chw/src/main/assets/recurring_service_types.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"expiry": {
2525
"reference": "dob",
26-
"offset": "+1m"
26+
"offset": "+30d"
2727
}
2828
}
2929
},
@@ -33,11 +33,11 @@
3333
"schedule": {
3434
"due": {
3535
"reference": "dob",
36-
"offset": "+1m"
36+
"offset": "+31d"
3737
},
3838
"expiry": {
3939
"reference": "dob",
40-
"offset": "+2m"
40+
"offset": "+60d"
4141
}
4242
}
4343
},
@@ -47,11 +47,11 @@
4747
"schedule": {
4848
"due": {
4949
"reference": "dob",
50-
"offset": "+2m"
50+
"offset": "+61d"
5151
},
5252
"expiry": {
5353
"reference": "dob",
54-
"offset": "+3m"
54+
"offset": "+90d"
5555
}
5656
}
5757
},
@@ -61,11 +61,11 @@
6161
"schedule": {
6262
"due": {
6363
"reference": "dob",
64-
"offset": "+3m"
64+
"offset": "+91d"
6565
},
6666
"expiry": {
6767
"reference": "dob",
68-
"offset": "+4m"
68+
"offset": "+120d"
6969
}
7070
}
7171
},
@@ -75,11 +75,11 @@
7575
"schedule": {
7676
"due": {
7777
"reference": "dob",
78-
"offset": "+4m"
78+
"offset": "+121d"
7979
},
8080
"expiry": {
8181
"reference": "dob",
82-
"offset": "+5m"
82+
"offset": "+150d"
8383
}
8484
}
8585
},
@@ -89,11 +89,11 @@
8989
"schedule": {
9090
"due": {
9191
"reference": "dob",
92-
"offset": "+5m"
92+
"offset": "+151d"
9393
},
9494
"expiry": {
9595
"reference": "dob",
96-
"offset": "+6m"
96+
"offset": "+180d"
9797
}
9898
}
9999
}

opensrp-chw/src/main/java/org/smartregister/chw/activity/UpcomingServicesActivity.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
public class UpcomingServicesActivity extends SecuredActivity {
2424

2525

26-
private UpcomingServicesFragmentView upcomingServicesView;
2726
private ProgressBar progressBar;
2827
private String name;
2928

@@ -41,22 +40,20 @@ protected void onCreation() {
4140
CommonPersonObjectClient childClient = (CommonPersonObjectClient) getIntent().getSerializableExtra(Constants.INTENT_KEY.CHILD_COMMON_PERSON);
4241
name = getValue(childClient.getColumnmaps(), "first_name", true) + " " +
4342
getValue(childClient.getColumnmaps(), "last_name", true);
44-
upcomingServicesView = (UpcomingServicesFragmentView) findViewById(R.id.upcomingServicesHolder);
45-
upcomingServicesView.setActivity(this);
46-
upcomingServicesView.setChildClient(childClient);
43+
UpcomingServicesFragmentView upcomingServicesView = findViewById(R.id.upcomingServicesHolder);
44+
upcomingServicesView.setChildClient(this, childClient);
4745

4846
setUpActionBar();
49-
50-
5147
}
48+
5249
@Override
5350
public boolean onCreateOptionsMenu(Menu menu) {
54-
return false;
51+
return false;
5552
}
5653

5754
@Override
5855
protected void onResumption() {
59-
upcomingServicesView.updateImmunizationState();
56+
// upcomingServicesView.updateImmunizationState();
6057
}
6158

6259
private void setUpActionBar() {
@@ -84,8 +81,9 @@ public void onClick(View v) {
8481
}
8582

8683
}
87-
public void progressBarVisibility(boolean flag){
88-
if(flag) progressBar.setVisibility(View.VISIBLE);
84+
85+
public void progressBarVisibility(boolean flag) {
86+
if (flag) progressBar.setVisibility(View.VISIBLE);
8987
else progressBar.setVisibility(View.GONE);
9088
}
9189

0 commit comments

Comments
 (0)