Skip to content

Commit

Permalink
exclusive breastfeeding condition add for select option
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmud6390 committed Jan 17, 2019
1 parent 16fd486 commit 4d21c13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=1.4.2-SNAPSHOT
VERSION_CODE=2
VERSION_NAME=1.4.3-SNAPSHOT
VERSION_CODE=3
GROUP=org.smartregister
POM_SETTING_DESCRIPTION=OpenSRP Client Immunization
POM_SETTING_URL=https://github.com/OpenSRP/opensrp-client-immunization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class RecurringIntentService extends IntentService {
private static final String TAG = RecurringIntentService.class.getCanonicalName();
public static final String ITN_PROVIDED = "ITN_Provided";
public static final String CHILD_HAS_NET = "Child_Has_Net";

private static final String EXCLUSIVE_BREASTFEEDING = "Exclusive breastfeeding";
public static final String EVENT_TYPE = "Recurring Service";
public static final String ENTITY_TYPE = "recurring_service";
private RecurringServiceTypeRepository recurringServiceTypeRepository;
Expand Down Expand Up @@ -100,6 +100,9 @@ protected void onHandleIntent(Intent intent) {
jsonObject.put(JsonFormUtils.VALUE, NO);
itnHasNet = true;
}
if (serviceType.getType().equalsIgnoreCase(EXCLUSIVE_BREASTFEEDING) && StringUtils.isNotBlank(serviceRecord.getValue()) && serviceRecord.getValue().equalsIgnoreCase(NO)) {
jsonObject.put(JsonFormUtils.VALUE, NO);
}
addYesNoChoices(jsonObject);
jsonArray.put(jsonObject);

Expand Down

0 comments on commit 4d21c13

Please sign in to comment.